Error ReplacePendingOrders
2 replies
Optimus
8 years ago #114185
tomas262
8 years ago #132606
Not sure what could cause this. Maybe it has something to do with “evaluate on bar close”. So in live/sim the order is deleted while the bar is being created but in backtest it’s evaluated once bar closes … that’s why there is 1 bar increment
See here “Running a Strategy at the Close of a Bar or Tick by Tick”
http://ninjatrader.com/support/helpGuides/nt7/?discrepancies_real_time_vs_bac.htm
¢ During backtest, strategies can ONLY be processed at the close of each bar
¢ During real-time operation, you have a choice to run a strategy tick by tick (CalculateOnBarClose set to false) which can produce different results
Optimus
8 years ago #132633
Ok we are going to try setting CalculateOnBarClose to true. If this doesn’â„¢t work we will tell you.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)