In all indicators that are timeframe sensitive, you can hard-code the timeframe in the function, rather than depend on 0 for the current chart timeframe, for eg:
double fast_1=iMA(Symbol(),PERIOD_M30,MA_Fast,0,MODE_EMA,PRICE_CLOSE,1);
Thank you blogzr3, I put it and will see how are the results.
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
Hi I want to try EA based on 2 moving avaerege, it will reverse, when cross is changed. But how to set up there a time frame I want to trade?
Many thanks.