Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Execution sequence

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

    Order Execution sequence

    if on a five or one minute chart that has a range as follow
    Low - 100
    High - 110
    Close -110

    If you have a EnterShortLimit order at 110 that upon execution via the on execution method triggers a ExitLongLimit order at 105, will backtesting show this as a filled??even though we cannot determine if in fact the subsequent order would have been filled in during that particular bar as we don't know if the market retraces during the period to the lower level.

    If this is the case, how can you get around this? I assume that the only solution would be to go down to tick data

    #2
    Hello fiddy,

    You are correct, in that you would want a lower time frame or intrabar granularity to know a more detailed price action of bar. If using a 5 Minute bar you may add a 1 Minute bar to help fill your orders, or if you are using a 1 Minute Bar, you may use a second granularity to help fill your orders.

    We have an example of how to Backtest a strategy with intrabar granularity that you may view for reference at the following link.
    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


    Let us know if we can be of any further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    639 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X