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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment