Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple plots on indicator

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

    Multiple plots on indicator

    I am trying to create multiple plots on a new indicator.

    When I have a single plot, like:
    AddPlot(new Stroke(Brushes.Orange, 2), PlotStyle.Block, "MainPlot");

    I simply assign a value to Value[0] and everything works.

    Now if I have more than one plot like above on my indicator, what do I assign to? Does it become:
    Value[0,0]
    Value[0,1]??

    Please help. I could not find examples.

    #2
    Sorry, I found an answer already I should have read AddPlot() docs



    Values[0][0] = Median[0]; // Blue "Plot A"
    Values[1][0] = Low[0]; // Red "Plot B"
    Values[2][0] = High[0]; // Green "Plot C"
    Last edited by stevenev1; 02-25-2017, 10:48 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    73 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X