I've been trying to code a strategy that uses a multi timeframe for the first time and have run into a problem:
For some reason, simply adding any "Add()" to my Initialize function seems to completely change my backtesting results.
In my OnBarUpdate(), I have
if(BarsInProgress > 0)
return;
else if (BarsInProgress == 0)
{
//everything else
}
However, if I'm understanding multi timeframes correctly, none of those Adds() should even do anything due to the "if(BarsInProgress > 0) return;" in my OnBarUpdate(), right?
Do you see something obvious I'm doing wrong, or do you need more information and for me to post the complete code?
By the way, is there a way to change the default Backtesting values in Strategy Analyzer, or to at least save my last used ones? Every time I start NinjaTrader and run backtesting in the Strategy Analyzer, I have to reset my session begins and ends times, account size, slippage, etc.
Thanks for any help you can provide,
Michael

Comment