Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Series<double> array

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

    Series<double> array

    I'm trying to write a Moving Average Ribbon where I can choose the Plot count in the UI. I tried using a for() loop, but it seems this is not allowed at the Class level. Can someone give me some suggestions.

    #2
    I have found you can add them dynamically. Is there any drawbacks for doing this?

    Comment


      #3
      Hello brianlspriggs,

      As long as you are doing that from state.Configure it should be fine. You can use user inputs for AddPlot by using State.Configure instead of State.SetDefaults.

      Comment


        #4
        Thanks Jesse, that seems to work great.

        Is there a way to hide certain values from the databox while making other values visible? I need the values from certain transparent plots to be visible but I do not need the values from the moving averages. I set {ShowTransparentPlotsInDataBox = true} but I cannot find any documentation on this matter.

        Comment


          #5
          Hello brianlspriggs,

          This would be a case where you would have to use OnRender. You would want to use ShowTransparentPlotsInDataBox = false and set any plots which should not be in the data box to transparent leaving only the plots you wanted to see. Next you would have to use OnRender to re render the plot data instead of allowing the normal indicator to plot.



          When using OnRender if you don't use the code:
          base.OnRender(chartControl, chartScale);

          from within OnRender that will make all plots on the chart invisible allowing you to use the plots to store data but not be seen. By doing this you can choose what you want to render from the existing plot data. The Pivots indicator and ZigZag do this to render in a custom way.

          You can see the following indicator on the public user app share for an example of creating a path in OnRender, a path would be used to make any non standard shaped geometry like a Plot.

          This indicator was ported from the Ichimoku Cloud indicator for NinjaTrader 7. The Cloud&#8217;s points are constructed identically to the NinjaTrader 7 indicator, however the points are then used to construct new SharpDX PathGeometry Figures. 3/24/2021: Modified the Adjust Chart Margins feature so users are prompted when the indicator wants to change the Chart&#8217;s Right [&#8230;]




          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          561 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          325 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X