Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sharing variables / comms between live running strategies

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

    sharing variables / comms between live running strategies

    running multiple strategies now through the strategy tab in NT.

    Is there a way to share variables / check variables in other running strategies.

    Specifically what I want to do is check other running strategies ID number (a user variable I have) so I can prompt the user if they launch the strategy with the same ID number (i want unique IDs between my strats, for emailing out, etc).

    An alternative is if there's a way to have some kind of global variables than all running strategies could access. I could have a public array of ints, and each strategy could check this list on start up and add their's to the list.

    cheers
    Daniel

    #2
    Hi Daniel, there's unfortunately no supported way in NinjaScript to enable strategy cross communication like you would need, but perhaps this thread on BMT with a code idea can get you going - http://www.bigmiketrading.com/ninjat...njatrader.html

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 09:41 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Today, 02:41 AM
    0 responses
    7 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, Yesterday, 11:44 PM
    0 responses
    18 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    33 views
    0 likes
    Last Post CarlTrading  
    Working...
    X