Historical() it not working in my strategy, it is always returning false as if I was always online.
The thing is when you first enable your strategy, it calls OnBarUpdate for the x past bars to calculate history. Although I enable strategy half hour before market starts , only when it starts that OnBarUpdate is call several times so history is built, and during all these calls Historical() is not returning true, so it is triggering orders even though that OnBarUpdate is not really the online market.
By bars are set to be calculated on every tick (CalculateOnBarClose False)
Would you guys know why I'm getting this behaviour?
Thanks,
Rodrigo

Comment