Running Ninjatrader 8.0.23.2 64-bit Multi-Broker
I am backtesting a strategy dealing with 2 granularities of the same instrument. I have:
BarsInProgress = 0 : CL 02-21 Last at 1440minutes with Trading Hours set to 9:15am till 8pm Paris time <--- to get my signal
BarsInProgress = 1 : CL 02-21 Last at 1minute with Trading Hours set to 9am till 8:15pm Paris time <---- to execute the orders and manage trades
On a partial holiday (like 21 jan 2019) the market closes early (7pm Paris time) so I have set 7pm Paris time in both my Trading Hours objects for that day
I also checked my historical data and I have minute bars downloaded until 7pm on 21 Jan 2019. So all is good.
When I run my strategy in the analyzer with "Break at EOD = True", on that special day, the OnBarUpdate event with BarsInProgress=0 is called at Times[0][0] = 21/1/2019 13:00 !!! instead of 19:00. On the other days it happens at 20:00 as expected.
Nowhere in my settings there is 1pm anywhere. This happens on every PartialHolidays only, my understanding is that something special is done on PartialHolidays and the EOD check may be done on the trading hours of the master instrument and not the trading hours or something like that, or a confusion in timezone. This 1pm OnBarUpdate really puzzles me and makes my results wrong.
could you help me figure out what is going on there ?
thanks in advance.
Guillaume
Comment