NinjaScript > Language Reference > Drawing >


Print this Topic Previous pageReturn to chapter overviewNext page


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.



BackColorAllSeries[int barsAgo]




// 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;