×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

SetPlotBGColor - MultiCharts
Open main menu

SetPlotBGColor

Revision as of 13:50, 19 February 2012 by JoshM (talk | contribs) (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Assigns a specified color to the cell background for the indicated study plot for the duration of the current bar.

Contents

Usage

SetPlotBGColor(PlotNumber, PlotColor)

Parameters

PlotNumber - a numerical expression specifying the plot number; plot numbers range from 1 to 999.
PlotColor - an expression specifying the cell background color for the indicated plot. Cell background color for the indicated plot can be specified by a numerical expression representing an RGB color number, a legacy color value, or by one of 17 base color words.

Notes

Examples

Assign the color of blue to the indicated cell of the plot1 for the duration of the current bar:

SetPlotBGColor(1, Blue);

Assign RGB color 2138336 (Orange) to the indicated cell of the plot1 for the duration of the current bar:

SetPlotColor(1, 2138336);

Assign legacy color 4 (Green) to the indicated cell of the plot1 for the duration of the current bar:

[LegacyColorValue = True];

SetPlotBGColor(1, 4);