NO LINKS, SOURCE CODE REQUESTS OR MODIFICATION OF DECOMPILED INDICATORS. To avoid post deletion please follow the rules.

Re: MT4 Indicator requests and ideas

#10841
THE_ONE wrote:
Sun Aug 30, 2020 7:22 pm
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.
Hi Good Traders. Dont you have the mql code for the following indicator?VWAP - z score (alerts + arrows).ex4
Hi,
please go to this side:

No source code REQUESTS. If a source code (ie. MQ4 file) is not posted, please understand and accept the code as it is. Please do not ask for the source code and respect our coder's decision to protect their valuable work.

viewtopic.php?p=1295368880#p1295368880
Be patient and wait for your chance


Re: MT4 Indicator requests and ideas

#10844
mrtools wrote:
Sun Aug 30, 2020 5:38 pm
cinare wrote:
Sun Aug 30, 2020 4:10 pm


I am so happy! Thank you :In Love: Can't wait to try tomorrow. And you even found or made a histo :D And if that is't enough, it even has alerts and arrows! The arrows aren't showing though... Could I be missing a dependency file maybe?
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

#10845
mrtools wrote:
Sun Aug 30, 2020 1:02 pm
Csj179t wrote:
Fri Aug 28, 2020 8:53 pm
Hi mrtools and all them coders out here,

Firstly i posed this at "Coding help" .. two days ago. But probably no one checks that topic.

Im stuck with getting values in the EA from the indicator "waddah attar explosion averages nmc alerts 2_2.ex4" through iCustom() .
I did this before with others was not a big deal.
Here it just getting values on first bar and then just freezes... and values not changing while EA running...

I checked if i could iCustom() the same but renamed indicator in the main indicator, and comment its values... it worked...

Indicator and ea is attached.
Help me please!!!

Sincerely,
Sergei

Code: Select all

double one = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4",0,0);
double two = iCustom(NULL,0,"waddah attar explosion averages nmc alerts 2_2.ex4",1,0);

int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
  }

void OnTick()
  {
Comment(one, "  ", two);   
  }
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

#10846
Csj179t wrote:
Sun Aug 30, 2020 8:40 pm
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);
  }

Sorry don't know.

Re: MT4 Indicator requests and ideas

#10847
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

#10848
Five Candle Mastery indicator.jpg
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?
Five+Candle+Mastery+Trading+Strategy+Guide.pdf
(6.63 MiB) Downloaded 464 times
The Five Candle Mastery Indicator.pdf
(1.02 MiB) Downloaded 303 times
FiveCandle.ex4
(39.05 KiB) Downloaded 332 times

Re: MT4 Indicator requests and ideas

#10849
Csj179t wrote:
Sun Aug 30, 2020 8:40 pm
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);
  }

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

#10850
mladen wrote:
Mon Aug 31, 2020 7:18 am
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);
  }

mladen,

Thank you very much!

Sincerely,
Sergei


  1. Similar Topics

    1. Trade ideas on June 19

      1 Replies 2790 Views

      by ChuChu Rocket, Fri Jun 19, 2020 9:30 pm in Forex Fundamentals & News

      1 Replies
      2790 Views
    2. MT4 Expert advisors of the community, ideas

      3 Replies 2025 Views

      by VIDALOCA3, Thu Aug 20, 2020 2:51 am in New Members & Common Forex Q&A's

      3 Replies
      2025 Views
    3. Double Heading+Zigzag swing trading binary & forex ideas

      6 Replies 1622 Views

      by sal, Sun Dec 20, 2020 10:08 pm in Trading Systems

      6 Replies
      1622 Views
    4. 273 Replies
      33469 Views

Return to “MT4 Indicators”