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

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 lightsun47, Today, 03:51 PM
    0 responses
    4 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    8 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    44 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    13 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    9 views
    0 likes
    Last Post port119
    by port119
     
    Working...
    X