How to set various data series plotting color
Author: cheers32
Creation Date: 3/15/2017 3:26 AM
profile picture


I'm trying to plot a data series, but want to color it depending on each specific item's value. E.g. above 100 color green, above 0 color blue, below 0 color red, etc. The method PlotSeries specifies only one main color, so I wonder if there is a way to plot different colors for such data series. Thanks.
profile picture


You do it with SetSeriesBarColor in the main (trading) loop. Here are some examples found by searching the forum:

Vary line color by slope
How to change the color of PlotSeries
How to draw a Series with different colors ?
Plotting Volume Based upon Close to Close Changes
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).