PDA

View Full Version : Bars.PercentComplete in backtest


stefy
11-26-2008, 09:12 AM
I'm using the Bars.PercentComplete function in a backtest, where for 80% of the bar I use a Limit Price (EnterLongLimit) and for the remaining 20% of the bar I switch to market order (EnterLong).
In the backtest, I always get executed at market (EnterLong), never with the Limit Price.
I guess it's because I'm backtesting and hence NT considers always Bars.PercentComplete = 100%, is that correct?

Thank you

NinjaTrader_Josh
11-26-2008, 09:13 AM
That is correct stefy. Try your code in real-time to see if it works as you expect.