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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X