|
addBand( value, style, thickness, color, tagID )
This function will draw a horizontal line at the value specified.
Parameters
value
|
the series value at which to draw the band
|
style
|
see Pen Styles below
|
thickness
|
integer value assigning line thickness
|
color
|
color to use when drawing the band
|
tagID
|
optional. a unique identifier for this line object or null
|
Pen Styles
PS_SOLID
|
draw a solid line
|
PS_DOT
|
draw a dotted line
|
PS_DASH
|
draw a dashed line
|
PS_DASHDOT
|
draw a dash-dot line
|
PS_DASHDOTDOT
|
draw a dash-dot-dot line
|
Usage
//draw a navy-colored dotted band at the 50.0 price level and
//assign a tagID of -10 so that we can remove it later
addBand( 50.0, PS_DOT, 3, Color.navy, -10 );
|