Page 1084 of 2045

Re: MT4 Indicator requests and ideas

Posted: Sun Aug 30, 2020 8:07 pm
by Lesnichiii
Dear programmers.
If possible, please add an alert arrow to the indicator.
Described in detail on the screenshot.
I would be very grateful.

Re: MT4 Indicator requests and ideas

Posted: Sun Aug 30, 2020 8:38 pm
by cinare
mrtools wrote: Sun Aug 30, 2020 5:38 pm

Fixed the arrows, and added an ob/os histo. Not able to verify, but all should be working.
:In Love: Yes, all is working great! Thank you so much!

Re: MT4 Indicator requests and ideas

Posted: Sun Aug 30, 2020 8:40 pm
by Csj179t
mrtools wrote: Sun Aug 30, 2020 1:02 pm

Unless I'm missing something looks like your code should work, unless you might need the external parameters.
mrtools,

Even with external parameters, values not changing while ea running. Problem stays the same.

Sincerely,
Sergei

Code: Select all

enum enPrices
{
   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_haclose,    // Heiken ashi close
   pr_haopen ,    // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased   // Heiken ashi trend biased price
};
enum maTypes
{
   ma_sma,     // simple moving average - SMA
   ma_ema,     // exponential moving average - EMA
   ma_dsema,   // double smoothed exponential moving average - DSEMA
   ma_dema,    // double exponential moving average - DEMA
   ma_tema,    // tripple exponential moving average - TEMA
   ma_smma,    // smoothed moving average - SMMA
   ma_lwma,    // linear weighted moving average - LWMA
   ma_pwma,    // parabolic weighted moving average - PWMA
   ma_alxma,   // Alexander moving average - ALXMA
   ma_vwma,    // volume weighted moving average - VWMA
   ma_hull,    // Hull moving average
   ma_tma,     // triangular moving average
   ma_sine,    // sine weighted moving average
   ma_linr,    // linear regression value
   ma_ie2,     // IE/2
   ma_nlma,    // non lag moving average
   ma_zlma,    // zero lag moving average
   ma_lead,    // leader exponential moving average
   ma_ssm,     // super smoother
   ma_smoo     // smoother
};

extern ENUM_TIMEFRAMES    TimeFrame       = PERIOD_CURRENT;
extern enPrices           Price           = pr_close; // Price to use 
extern int                FastMa          = 20;
extern int                SlowMa          = 40;
extern maTypes            MaMethod        = ma_ssm;
extern int                BandsLength     = 21;
extern ENUM_APPLIED_PRICE BandsPrice      = PRICE_CLOSE;
extern double             BandsDeviation  = 2.0;
extern int                Sensitive       = 50;
input int                 AtrPeriod       = 100; 
extern bool               alertsOn        = false;
extern bool               alertsOnCurrent = true;
extern bool               alertsMessage   = true;
extern bool               alertsSound     = false;
extern bool               alertsNotify    = false;
extern bool               alertsEmail     = false;
extern string             soundFile       = "alert2.wav";
extern bool               Interpolate     = true;

double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price,  FastMa, SlowMa 
             ,MaMethod , BandsLength , BandsPrice  , BandsDeviation , Sensitive,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price   ,  FastMa  ,SlowMa 
             ,MaMethod , BandsLength , BandsPrice  ,BandsDeviation ,Sensitive   ,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 1,0);

int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
Comment(one, "  ", two);
  }


Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 3:46 am
by mrtools
Csj179t wrote: Sun Aug 30, 2020 8:40 pm

mrtools,

Even with external parameters, values not changing while ea running. Problem stays the same.

Sincerely,
Sergei

Code: Select all

enum enPrices
{
   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_haclose,    // Heiken ashi close
   pr_haopen ,    // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased   // Heiken ashi trend biased price
};
enum maTypes
{
   ma_sma,     // simple moving average - SMA
   ma_ema,     // exponential moving average - EMA
   ma_dsema,   // double smoothed exponential moving average - DSEMA
   ma_dema,    // double exponential moving average - DEMA
   ma_tema,    // tripple exponential moving average - TEMA
   ma_smma,    // smoothed moving average - SMMA
   ma_lwma,    // linear weighted moving average - LWMA
   ma_pwma,    // parabolic weighted moving average - PWMA
   ma_alxma,   // Alexander moving average - ALXMA
   ma_vwma,    // volume weighted moving average - VWMA
   ma_hull,    // Hull moving average
   ma_tma,     // triangular moving average
   ma_sine,    // sine weighted moving average
   ma_linr,    // linear regression value
   ma_ie2,     // IE/2
   ma_nlma,    // non lag moving average
   ma_zlma,    // zero lag moving average
   ma_lead,    // leader exponential moving average
   ma_ssm,     // super smoother
   ma_smoo     // smoother
};

extern ENUM_TIMEFRAMES    TimeFrame       = PERIOD_CURRENT;
extern enPrices           Price           = pr_close; // Price to use 
extern int                FastMa          = 20;
extern int                SlowMa          = 40;
extern maTypes            MaMethod        = ma_ssm;
extern int                BandsLength     = 21;
extern ENUM_APPLIED_PRICE BandsPrice      = PRICE_CLOSE;
extern double             BandsDeviation  = 2.0;
extern int                Sensitive       = 50;
input int                 AtrPeriod       = 100; 
extern bool               alertsOn        = false;
extern bool               alertsOnCurrent = true;
extern bool               alertsMessage   = true;
extern bool               alertsSound     = false;
extern bool               alertsNotify    = false;
extern bool               alertsEmail     = false;
extern string             soundFile       = "alert2.wav";
extern bool               Interpolate     = true;

double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price,  FastMa, SlowMa 
             ,MaMethod , BandsLength , BandsPrice  , BandsDeviation , Sensitive,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price   ,  FastMa  ,SlowMa 
             ,MaMethod , BandsLength , BandsPrice  ,BandsDeviation ,Sensitive   ,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 1,0);

int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
Comment(one, "  ", two);
  }

Sorry don't know.

Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 4:23 am
by nima2020
Hello
I have an indicator that I do not have the mql4 file
But I have the strategy from which this indicator is made and also its help file
Is it possible to rewrite a copy of it and make it multi-time?

Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 4:47 am
by nima2020
nima2020 wrote: Mon Aug 31, 2020 4:23 am Hello
I have an indicator that I do not have the mql4 file
But I have the strategy from which this indicator is made and also its help file
Is it possible to rewrite a copy of it and make it multi-time?

Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 7:18 am
by mladen
Csj179t wrote: Sun Aug 30, 2020 8:40 pm

mrtools,

Even with external parameters, values not changing while ea running. Problem stays the same.

Sincerely,
Sergei

Code: Select all

enum enPrices
{
   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_haclose,    // Heiken ashi close
   pr_haopen ,    // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased   // Heiken ashi trend biased price
};
enum maTypes
{
   ma_sma,     // simple moving average - SMA
   ma_ema,     // exponential moving average - EMA
   ma_dsema,   // double smoothed exponential moving average - DSEMA
   ma_dema,    // double exponential moving average - DEMA
   ma_tema,    // tripple exponential moving average - TEMA
   ma_smma,    // smoothed moving average - SMMA
   ma_lwma,    // linear weighted moving average - LWMA
   ma_pwma,    // parabolic weighted moving average - PWMA
   ma_alxma,   // Alexander moving average - ALXMA
   ma_vwma,    // volume weighted moving average - VWMA
   ma_hull,    // Hull moving average
   ma_tma,     // triangular moving average
   ma_sine,    // sine weighted moving average
   ma_linr,    // linear regression value
   ma_ie2,     // IE/2
   ma_nlma,    // non lag moving average
   ma_zlma,    // zero lag moving average
   ma_lead,    // leader exponential moving average
   ma_ssm,     // super smoother
   ma_smoo     // smoother
};

extern ENUM_TIMEFRAMES    TimeFrame       = PERIOD_CURRENT;
extern enPrices           Price           = pr_close; // Price to use 
extern int                FastMa          = 20;
extern int                SlowMa          = 40;
extern maTypes            MaMethod        = ma_ssm;
extern int                BandsLength     = 21;
extern ENUM_APPLIED_PRICE BandsPrice      = PRICE_CLOSE;
extern double             BandsDeviation  = 2.0;
extern int                Sensitive       = 50;
input int                 AtrPeriod       = 100; 
extern bool               alertsOn        = false;
extern bool               alertsOnCurrent = true;
extern bool               alertsMessage   = true;
extern bool               alertsSound     = false;
extern bool               alertsNotify    = false;
extern bool               alertsEmail     = false;
extern string             soundFile       = "alert2.wav";
extern bool               Interpolate     = true;

double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price,  FastMa, SlowMa 
             ,MaMethod , BandsLength , BandsPrice  , BandsDeviation , Sensitive,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price   ,  FastMa  ,SlowMa 
             ,MaMethod , BandsLength , BandsPrice  ,BandsDeviation ,Sensitive   ,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 1,0);

int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
Comment(one, "  ", two);
  }

You never call it in OnTick()

Code: Select all

enum enPrices
{
   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_haclose,    // Heiken ashi close
   pr_haopen ,    // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased   // Heiken ashi trend biased price
};
enum maTypes
{
   ma_sma,     // simple moving average - SMA
   ma_ema,     // exponential moving average - EMA
   ma_dsema,   // double smoothed exponential moving average - DSEMA
   ma_dema,    // double exponential moving average - DEMA
   ma_tema,    // tripple exponential moving average - TEMA
   ma_smma,    // smoothed moving average - SMMA
   ma_lwma,    // linear weighted moving average - LWMA
   ma_pwma,    // parabolic weighted moving average - PWMA
   ma_alxma,   // Alexander moving average - ALXMA
   ma_vwma,    // volume weighted moving average - VWMA
   ma_hull,    // Hull moving average
   ma_tma,     // triangular moving average
   ma_sine,    // sine weighted moving average
   ma_linr,    // linear regression value
   ma_ie2,     // IE/2
   ma_nlma,    // non lag moving average
   ma_zlma,    // zero lag moving average
   ma_lead,    // leader exponential moving average
   ma_ssm,     // super smoother
   ma_smoo     // smoother
};

extern ENUM_TIMEFRAMES    TimeFrame       = PERIOD_CURRENT;
extern enPrices           Price           = pr_close; // Price to use 
extern int                FastMa          = 20;
extern int                SlowMa          = 40;
extern maTypes            MaMethod        = ma_ssm;
extern int                BandsLength     = 21;
extern ENUM_APPLIED_PRICE BandsPrice      = PRICE_CLOSE;
extern double             BandsDeviation  = 2.0;
extern int                Sensitive       = 50;
input int                 AtrPeriod       = 100; 
extern bool               alertsOn        = false;
extern bool               alertsOnCurrent = true;
extern bool               alertsMessage   = true;
extern bool               alertsSound     = false;
extern bool               alertsNotify    = false;
extern bool               alertsEmail     = false;
extern string             soundFile       = "alert2.wav";
extern bool               Interpolate     = true;


int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price,  FastMa, SlowMa 
             ,MaMethod , BandsLength , BandsPrice  , BandsDeviation , Sensitive,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price   ,  FastMa  ,SlowMa 
             ,MaMethod , BandsLength , BandsPrice  ,BandsDeviation ,Sensitive   ,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 1,0);
Comment(one, "  ", two);
  }

Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 8:00 am
by Csj179t
mladen wrote: Mon Aug 31, 2020 7:18 am

You never call it in OnTick()

Code: Select all

enum enPrices
{
   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_haclose,    // Heiken ashi close
   pr_haopen ,    // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased   // Heiken ashi trend biased price
};
enum maTypes
{
   ma_sma,     // simple moving average - SMA
   ma_ema,     // exponential moving average - EMA
   ma_dsema,   // double smoothed exponential moving average - DSEMA
   ma_dema,    // double exponential moving average - DEMA
   ma_tema,    // tripple exponential moving average - TEMA
   ma_smma,    // smoothed moving average - SMMA
   ma_lwma,    // linear weighted moving average - LWMA
   ma_pwma,    // parabolic weighted moving average - PWMA
   ma_alxma,   // Alexander moving average - ALXMA
   ma_vwma,    // volume weighted moving average - VWMA
   ma_hull,    // Hull moving average
   ma_tma,     // triangular moving average
   ma_sine,    // sine weighted moving average
   ma_linr,    // linear regression value
   ma_ie2,     // IE/2
   ma_nlma,    // non lag moving average
   ma_zlma,    // zero lag moving average
   ma_lead,    // leader exponential moving average
   ma_ssm,     // super smoother
   ma_smoo     // smoother
};

extern ENUM_TIMEFRAMES    TimeFrame       = PERIOD_CURRENT;
extern enPrices           Price           = pr_close; // Price to use 
extern int                FastMa          = 20;
extern int                SlowMa          = 40;
extern maTypes            MaMethod        = ma_ssm;
extern int                BandsLength     = 21;
extern ENUM_APPLIED_PRICE BandsPrice      = PRICE_CLOSE;
extern double             BandsDeviation  = 2.0;
extern int                Sensitive       = 50;
input int                 AtrPeriod       = 100; 
extern bool               alertsOn        = false;
extern bool               alertsOnCurrent = true;
extern bool               alertsMessage   = true;
extern bool               alertsSound     = false;
extern bool               alertsNotify    = false;
extern bool               alertsEmail     = false;
extern string             soundFile       = "alert2.wav";
extern bool               Interpolate     = true;


int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price,  FastMa, SlowMa 
             ,MaMethod , BandsLength , BandsPrice  , BandsDeviation , Sensitive,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4", TimeFrame, Price   ,  FastMa  ,SlowMa 
             ,MaMethod , BandsLength , BandsPrice  ,BandsDeviation ,Sensitive   ,
             AtrPeriod  ,alertsOn  ,alertsOnCurrent  ,alertsMessage  ,alertsSound  ,
             alertsNotify  , alertsEmail  , soundFile ,Interpolate, 1,0);
Comment(one, "  ", two);
  }

mladen,

Thank you very much!

Sincerely,
Sergei

Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 10:37 am
by RplusT
mrtools wrote: Sun Aug 30, 2020 12:58 pm

Try this one.
Can't use the indicator as it has got a "renamed" issue. Have seen this with some ohter inicators recently too. It also doesn't update.


Re: MT4 Indicator requests and ideas

Posted: Mon Aug 31, 2020 10:41 am
by mrtools
RplusT wrote: Mon Aug 31, 2020 10:37 am

Can't use the indicator as it has got a "renamed" issue. Have seen this with some ohter inicators recently too. It also doesn't update.


Renamed Indicator.JPG
Make sure when you download the name stays the same, also think I heard if you are using a firefox browser it somehow changes the name.