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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X