Thanks for clarification
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is there delay?
Collapse
X
-
Is there delay?
When we look at a strategy on the chart it shows event on the next bar after the bar where conditions being met. If we use Automated trading in real time, will it open position with this delay too?
Thanks for clarificationTags: None
-
Hello 2014Michael,
Thank you for writing in.
If you are running CalculateOnBarClose = true, running a backtest, or viewing the results on the historical data then the execution occurs on the bar following the condition.
Switching CalculateOnBarClose to false in your strategy will allow entries to occur intra-bar as your strategy will be running its logic in real-time.
For more information about the CalculateOnBarClose property, please take a look at this help guide link: https://ninjatrader.com/support/help...onbarclose.htm
Please, let us know if we may be of further assistance.Zachary G.NinjaTrader Customer Service
-
Thank you Zachary G.,
My strategy written with CalculateOnBarClose = false, and at Strategy Analyzer it still shows next bar event. So, are results will be different from real time results where execution will occurs immediately?
Comment
-
Hello 2014Michael,
Historical backtests/optimizations will always run as if CalculateOnBarClose is true.
Please take a look at this help guide link for more information about what discrepancies you can run into when testing your strategy historically vs real-time: https://ninjatrader.com/support/help...ime_vs_bac.htmZachary G.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,227 views
0 likes
|
Last Post Today, 08:07 PM | ||
Started by andrewtrades, Today, 04:57 PM
|
1 response
13 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
7 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
440 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
11 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
Comment