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 Mindset, 05-06-2023, 09:03 PM
      10 responses
      262 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by michi08, 10-05-2018, 09:31 AM
      5 responses
      741 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by The_Sec, Today, 02:29 PM
      0 responses
      2 views
      0 likes
      Last Post The_Sec
      by The_Sec
       
      Started by tsantospinto, 04-12-2024, 07:04 PM
      4 responses
      62 views
      0 likes
      Last Post aligator  
      Started by sightcareclickhere, Today, 01:55 PM
      0 responses
      1 view
      0 likes
      Last Post sightcareclickhere  
      Working...
      X