Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    148 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,283 views
    0 likes
    Last Post Leafcutter  
    Working...
    X