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 memonic, Yesterday, 01:23 PM
    4 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by BIOK.NT, Yesterday, 01:56 PM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by betsuni_123, Yesterday, 04:20 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by actualfacts.2021, 07-25-2021, 03:11 PM
    9 responses
    1,194 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by NinjaTrader_ChelseaB, 03-14-2017, 10:17 AM
    228 responses
    34,325 views
    7 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X