NinjaScript > Language Reference > Drawing >

BackColorAllSeries

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

A collection of historical background colors for all chart panels.

 

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 for all chart panels.

 

Syntax

BackColorAllSeries
BackColorAllSeries[int barsAgo]

 

 

Examples

// Sets the color of the background on the current bar as blue on all chart panels.
BackColorAllSeries[0] = Color.Blue;

 

// Sets the color of the background on the previous bar as orange on all chart panels.

BackColorAllSeries[1] = Color.Orange;