MQL4 Reference MQL5 features MQL5 functions Custom Indicators

Custom Indicators

This is the group functions used in the creation of custom indicators. These functions can't be used when writing Expert Advisors and Scripts.

Function

Action

SetIndexBuffer

Binds the specified indicator buffer with one-dimensional dynamic array of the double type

IndicatorSetDouble

Sets the value of an indicator property of the double type

IndicatorSetInteger

Sets the value of an indicator property of the int type

IndicatorSetString

Sets the value of an indicator property of the string type

PlotIndexSetDouble

Sets the value of an indicator line property of the type double

PlotIndexSetInteger

Sets the value of an indicator line property of the int type

PlotIndexSetString

Sets the value of an indicator line property of the string type

PlotIndexGetInteger

Returns the value of an indicator line property of the integer type

Indicator properties can be set using the compiler directives or using functions. To better understand this, it is recommended that you study indicator styles in examples.