Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Fills in Backtesting

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

    Order Fills in Backtesting

    Looking at the attached image - I am trialing a strategy involving a +10/-10 TP/SL on a 30 minute chart.

    I have issues with false wins and losses on other software as they often just make some sort of broad assumption that the price goes from open to high to low to close to something along those lines.

    How does Ninja Trader 8 back tester tackle if a candle contains the entry, stop loss and take profit all within the open and close of the candle? Does it make over arching assumptions or does it look into lower time frames or?

    Thanks for the help.

    #2
    Hello TraderFoes, thanks for your post.

    NinjaTrader uses a historical backfill algorithm to decide if an order should be filled historically. To get better order fill estimations, you can add a 1 tick series to your code and fill your orders upon that series, and turn on tick replay. There is an example on how to do this here. Implement this in your script and you should see better fill estimations.

    Best regards.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X