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 NullPointStrategies, Today, 05:17 AM
|
0 responses
51 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
128 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment