×

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

SetPlotColor

117 bytes added, 13:44, 19 February 2012
no edit summary
Assigns a specified [[:Category:Colors|color ]] to the specified [[Plot|plot ]] for the duration of the current bar.
==== Usage ====<syntaxhighlight>SetPlotColor(PlotNumber,PlotColor)</syntaxhighlight>
==== Parameters ==== [[:'''PlotNumber]] ''' - a numerical expression specifying the plot number; plot numbers range from 1 to 999 .:'''PlotColor''' - an expression specifying the plot color.
[[PlotColor]] - an expression specifying the plot color  Plot color can be specified by a numerical expression representing an [[RGB|RGB color number ]] or a [[LegacyColorValue|legacy color value]], or by one of 17 [[:Category:Colors|base color words]].
==== Example ==Examples ==Assign the color of [[Blue|blue ]] to plot1 for the duration of the current bar:
<syntaxhighlight>SetPlotColor(1,Blue);</syntaxhighlight>
Assign [[RGB|RGB color ]] 2138336 (Orange) to plot1 for the duration of the current bar:
<syntaxhighlight>SetPlotColor(1,2138336);</syntaxhighlight>
Assign [[LegacyColorValue|legacy color ]] 4 (Green) to plot1 for the duration of the current bar:
<syntaxhighlight>[LegacyColorValue=True];SetPlotColor(1,4);</syntaxhighlight>
SetPlotColor(1, 4);</syntaxhighlight>
[[Category:Plotting]]

Navigation menu