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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    115 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    225 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    411 views
    0 likes
    Last Post CaptainJack  
    Working...
    X