Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dotted Lines for Off-Chart Indicator

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

    Dotted Lines for Off-Chart Indicator

    Hello -

    Does NT 8 support creating a dotted-line indicator? Dots for each bar-value joined by a line?


    Thanks,
    Mark

    #2
    Hello mmeninger,

    Thank you for writing to the support team.

    I am reviewing your inquiry and will be back with a reply shortly.

    I look forward to assisting further.

    Comment


      #3
      Hello mmeninger,

      Thank you for the post.

      To make a dotted line, you will add a new Plot to your indicator. There is a corresponding Value[] array that you will fill with data. The Plot will reflect upon the chart whatever data you add to the Value[] array.

      Use AddPlot() to add a new plot object to your chart:



      Code:
      protected override void OnStateChange()
      {
        if (State == State.SetDefaults)
        {
          Name = "Example Indicator";
          ...
          // Adds a gold dotted line style plot
         AddPlot(new Stroke(Brushes.Goldenrod, DashStyleHelper.Dot, 2), PlotStyle.Line, "myPlot");
        }
      }
      
      ...
      
      protected override void OnBarUpdate()
      {
      	Value[0] = Close[0];
      }
      This example will draw a dotted line between the Close[] values of the bar.

      Please let me know if I may be of any further assistance.

      Comment

      Latest Posts

      Collapse

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