Skip to content

Indicator Constants

Indicators Constants

There are many predefined technical indicators, which can be used in programs written in the MQL4 language. In addition, there is an opportunity to create custom indicators using the iCustom() function. All constants required for that are divided into 5 groups:

What’s new in MQL5

In the new terminal, the number of built-in technical indicators has been increased from 30 to 38, while the number of drawing styles of custom indicators has been increased 3 times – from 6 to 18. Now custom indicators are able to use up to 512 indicator buffers. A separate color on each bar can be specified for color styles.

IDDescriptionData buffersColor buffers
DRAW_NONENot drawn1-
DRAW_LINELine1-
DRAW_SECTIONSection1-
DRAW_HISTOGRAMHistogram from the zero line1-
DRAW_HISTOGRAM2Histogram of the two indicator buffers2-
DRAW_ARROWDrawing arrows1-
DRAW_ZIGZAGStyle Zigzag allows vertical section on the bar2-
DRAW_FILLINGColor fill between the two levels2-
DRAW_BARSDisplay as a sequence of bars4-
DRAW_CANDLESDisplay as a sequence of candlesticks4-
DRAW_COLOR_LINEMulticolored line11
DRAW_COLOR_SECTIONMulticolored section11
DRAW_COLOR_HISTOGRAMMulticolored histogram from the zero line11
DRAW_COLOR_HISTOGRAM2Multicolored histogram of the two indicator buffers21
DRAW_COLOR_ARROWDrawing multicolored arrows11
DRAW_COLOR_ZIGZAGMulticolored ZigZag21
DRAW_COLOR_BARSMulticolored bars41
DRAW_COLOR_CANDLESMulticolored candlesticks41
Last updated on