Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access a DataSeries obj in another chart window

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

    Access a DataSeries obj in another chart window

    Hi, I am making an indicator that requires the values (DataSeries) from two instruments. This is how I have it set up (there may be a better way to do this, if so let me know).

    Chart 1:

    Instrument A
    - IndicatorXXX based on instrument A price
    - IndicatorYYY (the indicator that pulls indicator values from both indicatorXXX on instrument A and B)

    Chart 2:

    Instrument B
    - IndicatorXXX based on instrument B price

    So I can access the indicatorXXX in the instrument A from indicatorYYY, but I am not sure how to get that DataSeries from the indicatorXXX in the B instrument.

    This is the line that works for the A instrument...

    Code:
    PlotInstA.Set(IndicatorXXX().MALine[0]);

    #2
    I did a little more digging after finding nothing in IntelliSense. It looks like the answer is no (in indicators)... I just assumed it was possible because I can do it in strategy mode.

    http://www.ninjatrader-support.com/v...ment+indicator

    Comment


      #3
      >> It looks like the answer is no (in indicators)
      Correct. This limitations will be overcome with NT7.
      DierkNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by wooofad, Today, 05:38 PM
      0 responses
      4 views
      0 likes
      Last Post wooofad
      by wooofad
       
      Started by caacapital, Today, 10:10 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by DiverG20, Today, 10:23 AM
      0 responses
      22 views
      0 likes
      Last Post DiverG20  
      Started by SuneSorgenfrei, Today, 09:29 AM
      0 responses
      22 views
      0 likes
      Last Post SuneSorgenfrei  
      Started by dodoei, Today, 07:24 AM
      0 responses
      14 views
      0 likes
      Last Post dodoei
      by dodoei
       
      Working...
      X