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

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 helpwanted, Today, 03:06 AM
    1 response
    12 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X