Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator DataSeries to Market Analyzer?

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

    Indicator DataSeries to Market Analyzer?

    Howdy--

    I have an indicator with several DataSeries that I would like to see in MA. I can get the values to print to the Output Window via a Print() command, so I know that values are there and correct. However, when I add the Indicator and then select the DataSeries that I am interested in, I'm getting the following log error: "Error on accessing plot series...Exception has been thrown by the target of an invocation", which is a new one on me.

    Are DataSeries objects able to be utilized within the MA or only Plot values?

    If Plot values are only able to be exposed to the MA, is there a way to have the Plot values not plot in my indicator--because I don't want the values to plot within the indicator...I'm just interested in the values (hope that makes sense).

    EDIT: I added the DataSeries within the Variables section, initialized them within Initialize() and then exposed them in Properties as public. Instead of creating the DataSeries within Variables and then initializing them within Initialize(), should I instead be initializing Plots set to Color.Transparent, and then exposing these Plots as public DataSeries values?

    Thanks,

    Aventeren
    Last edited by aventeren; 07-16-2014, 11:46 PM.

    #2
    I got things working

    Update: I removed the DataSeries creation within the Variables section, and instead of initializing the DataSeries in Initialize() I instead initialized Plots with Color.Transparent (at the end of the day, both approaches created a series synced object (not sure if that is the right word) corresponding to Values[0], Values[1], etc. I then kept my public DataSeries reveal language in the Properties section.

    I then loaded these indicator values into the MA, and bam: It worked.

    So for the time being, I've accomplished my objective. Hopefully others will find this and it will help them.

    All best,

    Aventeren

    Comment


      #3
      Thanks for the update and sharing of your solution, correct would need to be Plots for the MA to access.
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,771 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X