Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest executing orders at Open instead of Close
Collapse
X
-
Backtest executing orders at Open instead of Close
I have a strategy that uses daily data which is designed to execute trades as Market On Close, but the actual prices of the trade executions as shown in the Strategy Analyzer use Open of the next bar. This results in the wrong PnL performance. Is there any way I can execute a MOC order in the Strategy Analyzer? Any help will be greatly appreciated!Last edited by jdemp0913; 04-29-2017, 10:47 AM. -
Hello,
Thank you for the post.
This would be an item related to how the backtest processes the strategy. To gain fills in the same bar, you would likely need to use logic and intrabar granularity. You can simulate this using a 1 tick series or you could also try using the other fill modes to see how the strategy reacts.
We have a sample that uses intrabar granularity here: http://ninjatrader.com/support/forum...ead.php?t=6652
You can find more about the differences between real-time and historical modes here: http://ninjatrader.com/support/helpG...tsub=discrepan
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
163 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
81 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
125 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
206 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
184 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment