This is a section of my EA. I developed a strategy on Forex Pro but wanted to automate my trading. the adx calculation on MetaTrader 4 seems to have more peaks and valleys and not as smooth. I know I can increase the number of periods to average it out but want to stay with 5 periods. I am assuming the adx on Forex Pro uses some sort of smoothing indicator in its calculation but don't know what.
(iADX(NULL,PERIOD_D1,5,PRICE_CLOSE,MODE_MAIN,1)>=25)
This is a section of my EA. I developed a strategy on Forex Pro but wanted to automate my trading. the adx calculation on MetaTrader 4 seems to have more peaks and valleys and not as smooth. I know I can increase the number of periods to average it out but want to stay with 5 periods. I am assuming the adx on Forex Pro uses some sort of smoothing indicator in its calculation but don't know what.
(iADX(NULL,PERIOD_D1,5,PRICE_CLOSE,MODE_MAIN,1)>=25)
only increasing the number of days, but this isn't what I wanted
My strategy is based on adx signal line on the 15min 30min and 1hr all above 20 and moving in the same direction. I don't see how this is possible with iMaOnarray over different time periods.
- No offense taken.
- simply combined: ADX + ATR = BS!
- Answer my question. Why do you think you need smoothing when your "strategy is based on adx signal line on the 15min 30min and 1hr all above 20"
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is it possible to combine the iadx with the atr in order to smooth out the signal lines?