Maybe that it is just some cache issue, but I found that in some case automated strategy has Historical == false even if it run on historical data.
Let's consider this simple strategy, which do nothing, only log message.
protected override void Initialize() { Add(PeriodType.Day, 1); } protected override void OnBarUpdate() { if( Historical ) { return; } Log( "FooBar", LogLevel.Information ); }
I also tried to SendMail at place where Log() is and NinjaTrader sent me hundred of email also from historical run.
Is this just bad usage of Historical attribute or real issue?
Dalibor
Comment