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

C# question -- trigger method / event in another indicator

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

    C# question -- trigger method / event in another indicator

    I'm sure this is outside the range of the Ninja Support .... but perhaps there is a C# guy here who can tell me this...

    I would like to have intercommunication in the moment between indicators on the same chart...I do this now with global in memory variables...it works well...but I want to not wait for Calculate.OnBarClose

    I can have an immediate trigger by subscribing to MarketData, then I tell if there has been a signal in the memory variable

    but would like a more sophisticated way to trigger events / methods in a target indicator

    Ideas / examples?

    #2
    Hello llanqui,

    Thank you for your post.

    Based on your description, it sounds as though partial classes may help you achieve what you are looking for. For more information and examples, please see "Partial Classes (Porting methods and properties from UserDefinedMethods.cs)" on the following page in the "Implementation Changes Overview" section:


    There is also an example in the forum at the following link:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Today, 04:58 PM
    1 response
    43 views
    0 likes
    Last Post Anfedport  
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    49 views
    0 likes
    Last Post futtrader  
    Working...
    X