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 MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Today, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Working...
      X