NinjaScript > Language Reference > Drawing >


Print this Topic Previous pageReturn to chapter overviewNext page


A collection of historical outline colors for candle sticks.


* If you set the BarColor property and the CandleOutlineColor property is not set, the outline color will take the color set by the BarColor property.


Property Value

A color series type object. Accessing this property via an index value [int barsAgo] returns a color structure representing the referenced bar's outline color.


Note: This will only return the color of a bar in which an explicit color overwrite was used. Otherwise it will return Color [Empty].



CandleOutlineColorSeries[int barsAgo]




// Sets the outline color of the current bar to black.
CandleOutlineColorSeries[0] = Color.Black;


// Sets the outline color of the previous bar to blue.

CandleOutlineColorSeries[1] = Color.Blue;