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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X