Difference between revisions of "Setplotstyle"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Assigns a specified line style to the specified plot for the duration of the current bar. ==Usage == <syntaxhighlight> setplotstyle(PlotNumber,LineStyle) </syntaxhighlight>...")
 
 
Line 41: Line 41:
  
 
<syntaxhighlight>setplotstyle(1, Tool_Dotted);</syntaxhighlight>
 
<syntaxhighlight>setplotstyle(1, Tool_Dotted);</syntaxhighlight>
 +
 +
[[Category:Plotting]]

Latest revision as of 11:40, 4 February 2021

Assigns a specified line style to the specified plot for the duration of the current bar.

Usage

setplotstyle(PlotNumber,LineStyle)

Where:

  • PlotNumber is a numerical expression sprcifying the plot number; plot numbers range from 1 to 999
  • LineStyle is a numerical expression specifying the plot line style; line style can range from 1 to 6:

Tool_Solid

1

________________________

Tool_Dashed

2

- - - - - - - - - - - - - - - - - - - - -

Tool_Dotted

3

. . . . . . . . . . . . . . . . . . . . . . .

Tool_Dashed2

4

__ _ __ _ __ _ __ _ __ _ __

Tool_Dashed3

5

___ _ _ ___ _ _ ___ _ _ ___


Example

Assign a plot line style "Dotted" to plot1 for the duration of the current bar:

setplotstyle(1, Tool_Dotted);