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

How to get data from my custom indie into Market Analyzer Column?

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

    How to get data from my custom indie into Market Analyzer Column?

    Hello.

    SO I have an indicator I have created, and I would like to put these values into a DataSeries, so that I can output this value into a column on the market analyzer. The indie does not have any plots, simply values I would like in a DataSeries.

    So I understand DataSeries is no longer in use, and we have to use Series.

    Here is the structure of how I am attempting this.

    Code:
        public class PeltBaseClosesV10 : Indicator
        {        
            private Series<double> rtbPercentAll_ds;  //defining type
            .
            .
            .
            .
    Then within my OnStateChange() section, here is my DataLoaded section.
    Code:
                else if (State == State.DataLoaded) //Best used to access market data
                  {
                    rtbPercentAll_ds = new Series<double>(this, MaximumBarsLookBack.Infinite);
                  }
    Code:
            protected override void OnBarUpdate()
            {
             rtbPercentAll_ds[0] = CurrentBar;  //example assignment
            }

    Code down in properties section
    Code:
            [Browsable(false)]
            [XmlIgnore]
            public Series<double> RtbPercentAll_ds
            {
                get { return Values[0]; }
            }

    Now when I go to add a column to strategy analyzer, I thought I should be able to see the .RtbPercentAll_ds data series as this would hold the value I want to see on my analyzer.

    Is the above not the way to expose values to be shown in Market Analyzer?

    Thanks!

    #2
    Hello forrestang,

    Thanks for your post.

    The indicator will need to expose the data as a plot in order for it to be accessible in the Market Analyzer. I have attached an indicator that you may use to test.

    AddPlot - https://ninjatrader.com/support/help...8/?addplot.htm

    Please let us know if there is anything else we can do to help.
    Attached Files
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,227 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    440 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    12 views
    0 likes
    Last Post FAQtrader  
    Working...
    X