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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X