
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Problems ?? ..first ...it has not to be RED
Problems with first (it has not to be RED ),... well in the second
Problems with first is blue and has to be RED, well in the second one in red
Problems with first is blue and has to be RED, well in the second one in red
Thanks
bebeshel
Conditions are coded as following (a quote from your post)
whenbuy
Macd>0 and BearpowerBearPower[yesterday] and Force Index Force Index [yesterday]
Macd0 bat BullPower[today]0 bat Force Index [today]<Force Index [yesterday]Shell
:and it looks like this in code :
if (work[r][_macdv]0 && work[r][_bullp]0 && work[r][_force]<work[r-1][_force]) work[r][_trend] = -1;
So when those rules are applied, the result is what you get
Problems with first (it has not to be RED ),... well in the second
New Change
We must reduce the time and BearPower BullPower, and put a "filter gauss" in Macd o change to a "Dynamic", for Elder Triple Screen
bebeshel
You have a parameter called BullBearPeriod. Use it to change period for BullPower and BearPower calculation
We must reduce the time and BearPower BullPower, and put a "filter gauss" in Macd o change to a "Dynamic", for Elder Triple Screen
Higest [ 22] ( MacdHistogram)
Does anyone know how ... can encode in Metatrader Higest of 22 days MacdHistogram
Something like this :
Does anyone know how ... can encode in Metatrader Higest of 22 days MacdHistogram
Does anyone know how ... can encode in Metatrader Higest of 22 days MacdHistogram
If you dont want or dont know how to use arrays you can use this peace of code: (run on specified timeframe - for example if you wish to use daily bars then use on daily chart, or change second param - 0 in iMACD function to your timeframe number)
double max = 0;
for(int i = 0;i<X;i++)
{
double macd = iMACD(Symbol(),0,FAST_EMA_PERIOD,SLOW_EMA_PERIOD,SIGNAL_PERIOD,APPLIED_PRICE,0,i);
if(macd>max) max = macd;
}
Comment(DoubleToStr(max,Digits));However, macd gives you positive and negative results. If you would like to get max and min value of macd from X bars then you need to modify this function and add second variable double min initialized to 1000, and check if macd is < than min and is < 0.
Perdone hoy e visto tu mesaje sobre nuevas temas, estoy aprendiendo,...1 mes en Forex
double highest = macdArray[ArrayMaximum(macdArray,22,startFrom)];
como puedo introducirlo en nuestro "ElderTrepleScreen"
Te envie un email
gracias