Definition
Draws a vertical line.
Method Return Value
An IVerticalLine object that represents the draw object.
Syntax
DrawVerticalLine(string tag, int barsAgo, Color color)
DrawVerticalLine(string tag, int barsAgo, Color color, DashStyle dashStyle, int width)
DrawVerticalLine(string tag, DateTime time, Color color, DashStyle dashStyle, int width)
Parameters
tag
|
A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.
|
barsAgo
|
The bar the object will be drawn at. A value of 10 would be 10 bars ago.
|
time
|
The time the object will be drawn at.
|
color
|
The draw object color (reference)
|
dashStyle
|
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
(reference)
Note: Fancier DashStyles like DashDotDot will require more resources than simple DashStyles like Solid.
|
width
|
The width of the draw object
|
Examples
DrawVerticalLine("tag1", 10, Color.Black);
|
|