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

NonPlotted Indicator Returns

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

    NonPlotted Indicator Returns

    I am trying to create an indicator whose returned values I can call for strategy development. However, I do not want the indicator to plot those values. Is this possible using the .Set() method ? I did NOT Add(new Plot()); in the Initialize() section. My code in the Properties region is as follows

    Signal.Set(MyVar);
    }// end On Bar Update

    #region Properties

    [Browsable(false)]
    [XmlIgnore()]
    [Gui.Design.DisplayName ("TE3 Signal")]
    public DataSeries Signal
    {
    get { return Values[0]; }
    }

    #2
    Hi Hawk Arps,

    Once you link it to the Values collection it becomes a plot. For this you'll want to use a private data series for setting values within the indicator. The private series is linked with a public one you can access from your strategy. A complete sample of this is here, and you'd follow what's done with the BoolSeries from this sample.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan, that works pretty well. How would I expose that DataSeries in the DataBox from the chart (if possible)?

      Comment


        #4
        Only plots can have their values in Data Box. One work around here to see value in data box but not plotted is to set the plot color to the same color as chart background.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 05-06-2023, 09:03 PM
        9 responses
        258 views
        0 likes
        Last Post ender_wiggum  
        Started by Mizzouman1, Today, 07:35 AM
        4 responses
        18 views
        0 likes
        Last Post Mizzouman1  
        Started by philmg, Today, 01:17 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by cre8able, Today, 01:01 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by manitshah915, Today, 12:59 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X