Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by zstheorist, Today, 07:52 PM
      0 responses
      3 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      149 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Working...
      X