EasyLanguage Object Reference
VerticalLine Class
Draws a vertical line object on a chart at a given time (DTPoint) or bar number (BNPoint). Appearance may altered and an alert set using appropriate properties. A vertical line may be used as an analytical drawing tool used to identify a point in time on a chart
The following code snippet shows how to create a vertical line based on a DateTime object. To use this in an analysis technique be sure that it is setup as described in About Drawing Objects.
myDTPoint = DTPoint.create(BarDateTime, 0);
myVLine = VerticalLine.create(myDTPoint);
DrawingObjects.Add(myVLine);
In this next example, the color and line style of the vertical line are changed. Note that the Color property is inherited from DrawingObject while Style is a property of VerticalLine.
myVLine.Color = elsystem.drawing.Color.Red;
myVLine.Style = StyleType.solid;
Namespace: elsystem.drawingobjects
|
Name |
Type |
Description |
|
Alert |
object |
References additional properties used to enable and configure alert criteria for the vertical line. See TimeAlert and AlertConfiguration. |
|
Position |
double |
Gets or sets the position of the vertical line as drawing object point.
|
|
Style |
enum |
Gets or sets the style of the line. See the StyleType enumerated list. Usage example: StyleType.solid |
|
Weight |
enum |
Gets or sets the line weight from an enumerated list. See Weight for a list of values. Usage example: Weight.weight5 |
|
Name |
Description |
|
Create(object) |
Initializes a new instance of the VerticalLine class at a DTPoint (date/time). |
|
Create(object, int) |
Initializes a new instance of the VerticalLine class at a DTPoint (date/time) and Data source. |
|
Create(object) |
Initializes a new instance of the VerticalLine class at a BNPoint (bar number). |
|
Create(object, int) |
Initializes a new instance of the VerticalLine class at a BNPoint (bar number) and Data source. |