If I use his example strategy with the example timeframe of a 5 minute chart, I can see that trades are taken intrabar. However if I use a Tick based timeframe (e.g. 500t) with a smaller Tick based timeframe (e.g. 50t) coded in the example strategy, trades will not trigger intrabar.
In Josh's example code, I modified one line of code:
Add(PeriodType.Minute, 1);
to
Add(PeriodType.Tick, 50);
I then setup a backtest in the Strategy Analyzer with a timeframe of 500 ticks and executed a backtest using the Josh's example code. Using Tick charts, no intrabar trades were initiated. Attached is a snapshot of the Strategy Analyzer output chart.
Thus my question is: Can NinjaTrader Strategy Analyzer trigger trades intrabar as described in the reference code using Tick timeframes instead of minute timeframes? If so, how?
Thanks,
David
Comment