×

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.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

SetPlotBGColor

343 bytes added, 13:50, 19 February 2012
m
Assigns a specified [[:Category:Colors|color ]] to the cell background for the indicated study plot for the duration of the current bar. Use of SetBGPlotColor is effective only for the Scanner.
==== Usage ====<syntaxhighlight>SetPlotBGColor(PlotNumber,PlotColor)</syntaxhighlight>
==== 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|RGB color number]], a [[LegacyColorValue|legacy color value]], or by one of 17 [[:Category:Colors|base color words]].
== Notes ==* Use of SetBGPlotColor is effective '''only''' for the [[:Category:Real-Time_Market_Scanner|Market Scanner]].* Use [[PlotColorGetBackgroundColor]] - an expression specifying to get the cell background color for .* Use [[SetPlotColor]] to change the indicated plot. Cell background color for and [[GetPlotColor]] to get the indicated specified plot can be specified by a numerical expression representing an RGB color number, a legacy color value, or by one of 17 base 's color words. ==== Example ====Assign the color of blue to the indicated cell of the plot1 for the duration of the current bar:
<syntaxhighlight>SetPlotBGColor(1,== Examples ==Assign the color of [[Blue);</syntaxhighlight>|blue]] to the indicated cell of the [[Plot|plot1]] for the duration of the current bar:
Assign RGB color 2138336 <syntaxhighlight>SetPlotBGColor(Orange1, Blue) to the indicated cell of the plot1 for the duration of the current bar: ;</syntaxhighlight>
<syntaxhighlight>SetPlotColorAssign [[RGB|RGB color]] 2138336 (1,2138336Orange);</syntaxhighlight>to the indicated cell of the plot1 for the duration of the current bar:
Assign legacy color 4 <syntaxhighlight>SetPlotColor(Green1, 2138336) to the indicated cell of the plot1 for the duration of the current bar: ;</syntaxhighlight>
<syntaxhighlight>Assign [[LegacyColorValue=True|legacy color]];SetPlotBGColor4 (1,4Green);</syntaxhighlight>to the indicated cell of the plot1 for the duration of the current bar:
<syntaxhighlight>[LegacyColorValue = True];
SetPlotBGColor(1, 4);</syntaxhighlight>
[[Category:Plotting]]

Navigation menu