Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot horizontal line

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

    Plot horizontal line

    How can I plot a horizontal line in indicator?

    I know I have to add this below at initialize, but what is next?

    protectedoverridevoid Initialize()
    {
    Add(
    new Plot(Color.Orange, PlotStyle.Hash, "L2"));

    ....
    }

    #2
    This would just define your Plot, you still would need to set it to some value...this is easier for a line at a certain level -

    Code:
     
    Add(new Line(Color.Blue, 0, "Zerolevel"));

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    240 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    156 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    165 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    248 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    199 views
    0 likes
    Last Post CarlTrading  
    Working...
    X