Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecutionUpdate.BarInProgress()

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

    OnExecutionUpdate.BarInProgress()

    Hello,

    I would like to better understand how what the BarsInProgress property is updated with in the OnExecutionUpdate().

    Is it the BIP value of where the original order was created?

    For instance an a BuyLong order could be created in BIP=0 and the SetStopLoss could have last been updated in BIP=2.

    Understanding that NT is EventDriven and the SetStopLoss order is effectively "in the Market" there is no real BIP value when this Stop Loss Order is executed.

    Please correct me if my understanding is wrong.

    Therefore, is the BIP property on the OnExecutionUpdate always the BIP value where order was generated?

    Thanks,

    #2
    Hello tornadoatc,

    A stop loss is filled with each tick in real time and for the most part fills ignore the BarsInProgress other than knowing what instrument that the order was placed to. It will then use the real time stream (not OnBarUpdate) to fill the order. When the order fills, OnExecutionUpdate will be triggered.

    Historically, if you add different time frames of the same instrument, all price values from all time frames will be able to fill that order. If you add a 1 minute, 5 minute, and 10 minute series to a chart, and place an order only on the 10 minute series, the 1 minute series will still provide price data to fill that order each minute.

    The BarsInProgress is for your logic, not really for the order fills.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    51 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X