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 love2code2trade, Today, 01:45 PM
|
1 response
6 views
0 likes
|
Last Post Today, 02:10 PM | ||
Started by Gibranes, Today, 10:05 AM
|
5 responses
21 views
0 likes
|
Last Post Today, 01:55 PM | ||
Started by 09try, 03-29-2024, 01:27 PM
|
9 responses
81 views
0 likes
|
Last Post
by ntcat
Today, 01:16 PM
|
||
Started by ninza33, Today, 06:28 AM
|
4 responses
17 views
0 likes
|
Last Post
by ninza33
Today, 12:38 PM
|
||
Started by ScottWalsh, Yesterday, 04:29 PM
|
4 responses
18 views
0 likes
|
Last Post Today, 12:00 PM |
Comment