読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

Error ReplacePendingOrders

2件の返信

オプティマス

カスタマー、bbp_participant、コミュニティ、26件の返信。.

プロフィールを表示

11年前 #114185

Hello, we have an strategy generated by SQ running on NinjaTrader. When we run the strategy in backtest, pending orders live one bar more than in the real market or in simulation. For instance, if we have a maximum of 11 bars for the pending order, then in backtest the pending order gets cancelled at the eleventh bar but in the real marked it gets cancelled at the tenth bar. How can this be possible? Is there any possible workaround?
 
ありがとうございます。.

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

11年前 #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

0

オプティマス

カスタマー、bbp_participant、コミュニティ、26件の返信。.

プロフィールを表示

11年前 #132633

Ok we are going to try setting CalculateOnBarClose to true. If this doesn’â„¢t work we will tell you.

 

ありがとう。.

0

2件の返信を表示中 - 1 - 2件目 (全2件中)