NinjaScript > Language Reference > Drawing >

BackColorSeries

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

A collection of historical background colors for the chart panel.

 

Property Value

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

 

Syntax

BackColorSeries
BackColorSeries[int barsAgo]

 

 

Examples

// Sets the color of the background on the current bar as blue
BackColorSeries[0] = Color.Blue;

 

// Sets the color of the background on the previous bar as orange

BackColorSeries[1] = Color.Orange;