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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        636 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        568 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X