Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        82 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X