when backtesting EURUSD (tickstory export to mt4) e.g. in M5 the time from other timeframe is not set. Here is a example log comparing EURUSD to USA30.IDX:
Code: Select all
us.30+ (USA30.IDX):
M5 timeframe:
2023-01-03 07:15:00 Symbol(): US.30+
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M5, 0): 2023.01.03 07:15:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M15, 0): 2023.01.03 07:15:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M30, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H1, 0): 2023.01.03 07:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H4, 0): 2023.01.03 04:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_D1, 0): 2023.01.03 00:00:00
history:
US.30+1_0.fxt
US.30+5_0.fxt
US.30+15_0.fxt
US.30+60_0.fxt
US.30+240_0.fxt
eurusd+ (EURUSD):
M5 timeframe:
2023-01-03 07:15:00 Symbol(): EURUSD+
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M5, 0): 2023.01.03 07:15:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M15, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M30, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H1, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H4, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_D1, 0): 1970.01.01 00:00:00
history:
EURUSD+1_0.fxt
EURUSD+5_0.fxt
EURUSD+15_0.fxt
EURUSD+60_0.fxt
EURUSD+240_0.fxt
EURUSD+1440_0.fxt
M15 timeframe:
eurusd+ (EURUSD):
2023-01-03 07:15:00 Symbol(): EURUSD+
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M5, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M15, 0): 2023.01.03 07:15:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_M30, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H1, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_H4, 0): 1970.01.01 00:00:00
2023-01-03 07:15:00 iTime(Symbol(), PERIOD_D1, 0): 1970.01.01 00:00:00
How can I fix it so that EURUSD is working like USA30.IDX and getting time for other timeframes?
MT4 Version:
Metatrader
Version 4.00 build 1380
24 Mar 23
Best regards
Roland