Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide Label for Second Plot

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

    Hide Label for Second Plot

    How can I hide the label of just my second plot? For example:

    Code:
    //I want the label to show on this first plot but not the second. How?
    AddPlot(new Stroke(Brushes.Black), PlotStyle.Bar, "RelativeVolume");
    AddPlot(new Stroke(Brushes.Red), PlotStyle.Bar, "VolumeIndicator");

    #2
    Hello swcooke,

    Thank you for your post.

    Please confirm: Do you mean you don't want the second plot to show up in the Indicators property grid when you are changing the indicators settings?

    I look forward to your reply.

    Comment


      #3
      I am referring to the price marker in the scale. The second plot is just a fixed line at the 100 level. I don't need a price marker for that. How do I turn off the price marker for just the second plot?

      Comment


        #4
        Hello swcooke,

        Thank you for your reply.

        AddLine() can be used for that purpose. Call AddLine in State.SetDefaults and it will add a line at the numeric value.

        Code:
        if (State == State.SetDefaults)
        {
        
            ...
            AddLine(Brushes.Blue, 100, "MyPriceLine");
            ....
        }
        If you do need to use a plot, you would need to render the line using SharpDX in the OnRender method. More reading on that subject below:


        Please let me know if I can assist any further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        46 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        67 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        35 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        95 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        59 views
        0 likes
        Last Post PaulMohn  
        Working...
        X