About Drawing Object Classes

The EasyLanguage drawing object classes allow you to create drawing objects on a chart from your analysis technique and to programmatically manage their appearance and position. The trendline and text objects parallel the functionality of the legacy EasyLanguage TL_xxx and Text_xxx reserved words. The Ellipse, HorizontalLine, Rectangle, and Vertical line objects are equivalent to the drawing tools you were able to manually insert in a chart.

EasyLanguage Drawing Objects


Drawing Object Classes

  • Ellipse - Draws an ellipse based on two points, the starting point at the upper left and the ending point at the lower right of a bounding rectangular area. The border line and fill pattern characteristics can be user specified.
  • HorizontalLine - Draws a horizontal line that intersects a specified price. The line style and thickness can be user specified.
  • Rectangle - Draws a rectangle based on two points, the starting point at the upper left and the ending point at the lower right corner of the rectangle. The border line and fill pattern characteristics can be user specified.
  • Text - Displays a text string at a specified point. The font style and horizontal/vertical centering can be user specified.
  • TrendLine - Draws a trendline between two points, the starting point and the ending point. The line characteristics and left/right extension properties can be user specified.
  • VerticalLine - Draws a vertical line that intersects a specified time interval. The line style and thickness can be user specified.

Point Classes

  • BNPoint - Used to define a drawing object point based on a bar number and a price value. Objects positioned with a BNPoint will move along with the bars they are anchored to.
  • DTPoint - Used to define a drawing object point based on a bar date/time stamp and a price value. Objects positioned with a DTPoint will move along with the bars they are anchored to.
  • XYPoint - Used to define a drawing object (Ellipse, Rectangle, or Text) point based on a chart X and Y location (relative to the upper left corner of the chart window). Objects positioned with an XYPoint will not move when the bars are scrolled.
Adding Drawing Objects to your EasyLanguage Code
Alerts with Drawing Objects