My EA works in multiple time frames but data in backtest isn’t working
- Session trading
- I can't get the value of lower timeframe
- Works on the strategy tester but not on live trading
same thing happens if i try to set the indicators for any tf except for the tf that i am testing on. so the ea is not getting the data from other timeframe indicators to trade off of except for the one tf i am trading on.
this is a big issue for me as i need all the data to show up for all tf's for all indicators. i have been with tickstory a very long time and i would appreciate help on this matter...
if i run my ea with current broker data i don't face this issue, all the indicator values show up just fine for all tf's no matter what i am running on my ea on. i have been through two days of testing and trying to figure this out with my dev and its not an EA issue at all as the ea works just fine in live mode and in tester mode with non tickstory data. but the problem is when i get tickstory data then this all happens..
and i need tickstory data as it is reliable.
please help
just a suggestion: have you proven that you configured ts to download all of the tfs that your indicators require to work?, also: have you considered the starting date of your backtest? for several reasons, when i do any backtest in mt4, I use the start date that is at least a couple months after the first date that i downloaded ticks for.
Download history for all timeframes used, covering your test period.
If you don't have any history, here's how you can get all available from your broker.
- On MT4: Most brokers only have 32 or 65K bars of history per timeframe. That's 45 days of M1, 2.5 years on M15, etc.
- Quickly DL all available history from your broker: Problem loading historical data - MQL4 programming forum (2010)
Otherwise, you will have to download history from elsewhere. MT4 history: How to Start with Metatrader 5 - General - MQL5 programming forum - Page 94 #932 (2017)