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