how to set up time frame on EA?
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.
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.