Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Binding to the OnBarUpdate event

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

    Binding to the OnBarUpdate event

    My strategy has lots of different classes. One of them needs to know when the OnBarUpdate event has Fired.

    I can't find the OnBarUpdate event in the Ninjatrader Class Hierarchy
    Which ninjatrader class exposes this event?

    #2
    Hello Reach4thelasers,

    Thank you for your note.

    To answer your question about what class exposes this event, it would be the indicator and strategy class. However, you couldn’t just implement those on any random class and expect them to be called. You would need to make an indicator and apply it to a chart for this to happen.

    You could make a method within your class, which you could call within the OnBarUpdateof your strategy, as a means of letting your class know OnBarUpdate been called.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X