Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cross strategy communication

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

    Cross strategy communication

    Is there a way within Ninja to communicate across strategies? i.e can strategy A send a message or value or status to strategy B ?

    Thanks for your time and response
    - David

    #2
    Hello,

    There is no direct communication between strategies. Strategy A would not have a method to know what Strategy B is doing.

    However if it's just a message or value you would like to send from one to another, you could use an indicator to make this calculation and and expose that as a public data type for the strategy to read.


    Please see our Reference Sample on Exposing indicator values that are not plots:

    MatthewNinjaTrader Product Management

    Comment


      #3
      Good stuff, thanks. In the example can the strategy use the set() on the bullIndication or bearIndication dataset so another strategy see that set value?

      Comment


        #4
        Yes, you can access this from the Strategy

        Code:
        BoolSeries x = SampleBoolSeries().BearIndication;
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        318 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X