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

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    21 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X