Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate

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

    OnBarUpdate

    Morning

    When looking at OnBarUpdate events is there an object that holds only the data that is being updated ? What the actual tick event is. So if the tick event was a trade on the offer the object would only hold that tick ? Or do I need to do a comparison of the Instrument object from the last tick event ?

    2) Is OnMarketData as accurate as OnBarUpdate for the current best bid and best offer ?

    Thanks

    #2
    Hello,

    Thank you for the post.

    I am not certain I understand the first question, could you provide more details on this question?

    OnBarUpdate would have access to the Series in which are being built by the market data like the Close or Open series. If you need to know each ticks information, you would likely need to use OnMarketData as this has the MarketDataEventArgs object: http://ninjatrader.com/support/helpG...tdataeventargs

    Regarding the second question, OnMarketData is accurate, this is the data that is streaming from the data provider. OnBarUpdate is called as a result of this data and the logic that builds bars. You can find a description of this override here: http://ninjatrader.com/support/helpG...b=onmarketdata

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    49 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    141 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