What happens is that when you turn a strategy on mid candle that very first live tick you get is set to FTOB = true. In my specific case what happens is that I check for live candles plus FTOB in order to perform some stop propagation. So my condition is FTOB && !Historical. When price is below the point where it would move my stop up or down then those events are being triggered too early if I turn the strategy on at that moment.
Here's some output that makes me scratch my head:
Real Time = 5/13/2014 10:45:43 AM
System Time = 5/8/2014 5:46:48 AM
Historical = True // expected
FirstTickOfBar = True // ???
Real Time = 5/13/2014 10:45:44 AM
System Time = 5/13/2014 6:59:59 AM // expected
Historical = True // expected
FirstTickOfBar = True // ???
Real Time = 5/13/2014 10:45:44 AM
System Time = 5/13/2014 7:09:32 AM
Historical = True // expected
FirstTickOfBar = True // ??? that is silly
Real Time = 5/13/2014 11:02:53 AM
System Time = 5/13/2014 7:09:35 AM
Historical = False // expected - now it's live
FirstTickOfBar = False // expected
It's a complete mess and I never really know when FTOB is going to be triggered with NT7 - I have been dealing with this one for two years and although I have work arounds it's all very fragile. My request for NT8 is that FTOB should ONLY be true on the first tick of the bar, in both LIVE and HISTORICAL mode. If you guys need another variable for the first live tick then you should create a new one.

Comment