PDA

View Full Version : BarNext?


funk101
04-24-2007, 05:16 AM
If I had a strategy that once a condition is met in the current bar, a trade is executed in the next bar, how would I do that? ie: Low[-1] ? Since [0] is current, and [1] is previous, would [-1] be next?

NinjaTrader_Ray
04-24-2007, 05:26 AM
There is no concept of negative index values since we do not allow you to "peek" into the future.

If your strategy is run against historical data or its real-time with calculate on bar close set to true, then trades are always executed on the next bar.

Ray