Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy interaction

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

    Strategy interaction

    Can I have two strategies on two different charts (same instrument) and access data between strategies?

    I essentially want to set a signal flag in one chart's strategy and have access it from strategy running in another chart.

    If this is not possible, is there a way to access the 2nd chart's data series from the 1st chart's strategy?

    #2
    Hello,

    There is no cross communication between strategies. There is no way to for one strategy to know what the other strategy is doing even on the same instrument.

    However you can Add() another data series to a strategy and access the same values that the other strategy is calculating from.

    Please see our Reference Sample on Synchronizing a DataSeries object to a secondary time frame:

    Note: In NinjaTrader 8 It is no longer needed to use an indicator to sync a secondary series. This can be done directly from the Series<T> (https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?seriest.htm) constructor. This post is left for historical purposes. Series objects are useful for
    MatthewNinjaTrader Product Management

    Comment


      #3
      That meets my requirement. Thanks for the sample code.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      37 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      18 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      25 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      34 views
      0 likes
      Last Post CarlTrading  
      Working...
      X