I currently use two parameters, StartHour and EndHour to specify when I want trades to occur using hourly candles. Say I am looking at trades in FX which close for an hour at 22:00 until 23:00 GMT. However I seem to run into a problem when I want trades to occur at 23:00 (that is the opening price of the 00:00 candle, the candle that starts at 23:00 and end at 00:00). No matter what I set my parameters to I can't get trades to occur at this time. OnBarUpdate prints hourly updates at 21:00 then 22:00 and then 00:00 as expected, however my trade signal generated at the close of the 22:00 candle is not actioned on the open of the next candle that being at 23:00, the opening time of my 00:00 candle. What am I doing wrong here?
Thanks,
darmbk.
Comment