EasyLanguage Object Reference
Draws a horizontal line on a chart at a given price. Appearance may altered and an alert set using appropriate properties. Horizontal lines are often used as an analytical drawing tool to identify support and resistance levels as well as to highlight trading ranges.
The following code snippet shows how to add a horizontal line based to a chart at the Close of the current bar. To use this in an analysis technique, be sure that it is setup as described in About Drawing Objects.
myHLine = HorizontalLine.create(Close); DrawingObjects.Add(myHLine);
Properties from both are available and allow custom formatting (width, style, color, etc.) . In this next example, the Color property is inherited from DrawingObject .
myHLine.Color = elsystem.drawing.Color.Cyan; myHLine.Style = StyleType.dashed3;
Namespace: elsystem.drawingobjects