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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        181 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        334 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        258 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        358 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        187 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X