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
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kempotrader, Today, 08:56 AM
    0 responses
    6 views
    0 likes
    Last Post kempotrader  
    Started by kempotrader, Today, 08:54 AM
    0 responses
    4 views
    0 likes
    Last Post kempotrader  
    Started by mmenigma, Today, 08:54 AM
    0 responses
    2 views
    0 likes
    Last Post mmenigma  
    Started by halgo_boulder, Today, 08:44 AM
    0 responses
    1 view
    0 likes
    Last Post halgo_boulder  
    Started by drewski1980, Today, 08:24 AM
    0 responses
    4 views
    0 likes
    Last Post drewski1980  
    Working...
    X