- How To Add Time Period on Backtesting (Weekly)? MT4
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
- What Code Do I Use To Set EA To Only Work On 30M Chart?
yes, you should sure you have earlier time periods (30M, 15M, 5M)'s data, and used those data to calculat buy/sell signals.
Is it possible to attach an EA to an 1H chart and then use earlier time periods (30M, 15M, 5M) to confirm the formation of buy/sell signals? If so how could this be done?
I assume that you mean shorter timeframe not earlier, see the example below "int timeframe" allows you to specify a time frame(longer or shorter) than that of the chart to which the ea is attached to, this is typical of many if not most of the indicators in MT4.( "0" defaults to current chart time frame.)
double iMA( | string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift) |
HTH
Keith
I assume that you mean shorter timeframe not earlier, see the example below "int timeframe" allows you to specify a time frame(longer or shorter) than that of the chart to which the ea is attached to, this is typical of many if not most of the indicators in MT4.( "0" defaults to current chart time frame.)
double iMA( | string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift) |
HTH
Keith
ah that obvious? doh! cheers
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use