Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest Order Assumptions

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

    Backtest Order Assumptions

    When I run a backtest on my futures strategy, it is always short @ the bottom of bars and long from the top on by backtesting. Is this a default assuming I am getting the worst possible fill of the bar? How can I adjust it to assume I am entering at the median or simulate a limit order getting filled?

    #2
    Hello,

    Thank you for your forum post.

    NinjaTrader will always submit the order once the condition is true for your order on the next bar. To allow your orders to be filled intrabar you will need to use a multi series strategy and add a smaller time frame chart and execute your orders on the smaller time frame chart such as a tick chart or 1 minute chart, this is called intrabar granularity. This will take more resources to run your strategy however.

    Please see this reference guide to do this:
    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 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