Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest executing orders at Open instead of Close

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X