MQL4 Reference Standard Constants, Enumerations and Structures Indicator Constants Drawing Styles

Drawing Styles

Drawing shape styles for SetIndexStyle() function.

ID

Value

Description

DRAW_LINE

0

Drawing line

DRAW_SECTION

1

Drawing sections

DRAW_HISTOGRAM

2

Drawing histogram

DRAW_ARROW

3

Drawing arrows (symbols)

DRAW_ZIGZAG

4

Drawing sections between even and odd indicator buffers, 2 buffers of values

DRAW_NONE

12

No drawing

Drawing style enumeration for SetLevelStyle() function. Valid when width=1. It can be any of the following values:

ENUM_LINE_STYLE

ID

Value

Description

STYLE_SOLID

0

The pen is solid

STYLE_DASH

1

The pen is dashed

STYLE_DOT

2

The pen is dotted

STYLE_DASHDOT

3

The pen has alternating dashes and dots

STYLE_DASHDOTDOT

4

The pen has alternating dashes and double dots

Drawing style also can be used for get/set the OBJPROP_STYLE property of the object.

When creating a custom indicator, you can specify one of 6 types of drawing styles (as displayed in the main chart window or a chart subwindow), whose values are specified above.

In one custom indicator, it is permissible to use any indicator drawing types. Each construction type requires specification of one to two global arrays for storing data necessary for drawing. These data arrays must be bound with indicator buffers using the SetIndexBuffer() function.