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
10832Yes, all is working great! Thank you so much!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.
Re: MT4 Indicator requests and ideas
10833mrtools,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.
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);
}
Sincerely,
Sergei
Sergei
Re: MT4 Indicator requests and ideas
10834Sorry don't know.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); }
Re: MT4 Indicator requests and ideas
10835Hello
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?
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
10836nima2020 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?
Attachments
Re: MT4 Indicator requests and ideas
10837You never call it in OnTick()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); }
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);
}
- These users thanked the author mladen for the post (total 3):
- Csj179t, edg3end, pipsquirrel
Re: MT4 Indicator requests and ideas
10838mladen 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
Sincerely,
Sergei
Sergei
Re: MT4 Indicator requests and ideas
10839Can'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
10840Make 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.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