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 algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X