Skip to content

Drawing Styles

Drawing Styles

Drawing shape styles for SetIndexStyle() function.

IDValueDescription
DRAW_LINE0Drawing line
DRAW_SECTION1Drawing sections
DRAW_HISTOGRAM2Drawing histogram
DRAW_ARROW3Drawing arrows (symbols)
DRAW_ZIGZAG4Drawing sections between even and odd indicator buffers, 2 buffers of values
DRAW_NONE12No drawing

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

ENUM_LINE_STYLE

IDValueDescription
STYLE_SOLID0The pen is solid
STYLE_DASH1The pen is dashed
STYLE_DOT2The pen is dotted
STYLE_DASHDOT3The pen has alternating dashes and dots
STYLE_DASHDOTDOT4The 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.

Last updated on