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 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