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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X