Triangle Class

A triangle is a chart pattern used in technical analysis. Like trendlines, triangles may be drawn on charts by using a drawing tool or by using EasyLanguage code.

The Triangle class draws a triangle by connecting the specified vertices with lines. The triangle's appearance can customized using the Triangle's properties (see below).

The Triangle's vertices can be DTPoints, BNPoints, or XYPoints. Triangle vertices specified as BNPoints or DTPoints will maintain their positions relative to the bars on the chart. Triangle vertices specified as XYPoints, on the other hand, will maintain their position relative to the chart's borders. Example code is provided below that illustrates all three ways of specifying a Triangle's vertices .

Namespace: elsystem.drawingobjects

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property Alert object Gets the PriceAlert associated with the Triangle.
Public property FillColor object Gets or sets the fill color. See Color.
Public property FillPattern enum Gets or sets the fill pattern. See FillPattern.
Public property FirstVertex object Gets the Triangle's first vertex as a DOPoint.
Public property Label object Gets or sets the Triangle's label as a DrawingObjectLabel.
Public property SecondVertex object Gets the Triangle's second vertex as a DOPoint.
Public property ShowAngleDegrees bool Gets or sets a Boolean property that indicates whether the angles of the vertices are shown in the Triangle's labels.
Public property ShowBarCount bool Gets or sets a Boolean property that indicates whether the bar counts (the lengths of each of the sides of the Triangle, in bars) are shown in the Triangle's labels.
Public property ShowLabels bool Gets or sets a Boolean property that indicates whether the Triangle's labels are are displayed on the chart.
Public property ShowTimeSpan bool Gets or sets a Boolean property that indicates whether the time spans (the lengths of each of the sides of the Triangle, measured in amounts of time) are shown in the Triangle's labels.
Public property ShowVertexPrices bool Gets or sets a Boolean property that indicates whether the prices of each of the Triangle's vertices are shown in the Triangle's labels.
Public property Style enum Gets or sets the Triangle's border style. See StyleType.
Public property ThirdVertex object Gets the Triangle's third vertex as a DOPoint.
Public property V1V2ExtLeft bool Gets or sets a Boolean property that indicates whether the line segment that connects the first vertex to the second vertex is extended to the left.
Public property V1V2ExtRight bool Gets or sets a Boolean property that indicates whether the line segment that connects the first vertex to the second vertex is extended to the right.
Public property V1V3ExtLeft bool Gets or sets a Boolean property that indicates whether the line segment that connects the first vertex to the third vertex is extended to the left.
Public property V1V3ExtRight bool Gets or sets a Boolean property that indicates whether the line segment that connects the first vertex to the third vertex is extended to the right.
Public property V2V3ExtLeft bool Gets or sets a Boolean property that indicates whether the line segment that connects the second vertex to the third vertex is extended to the left.
Public property V2V3ExtRight bool Gets or sets a Boolean property that indicates whether the line segment that connects the second vertex to the third vertex is extended to the right.
Public property Weight enum Gets or sets the Triangle's border weight. See Weight.
Methods
Example