Skip to content

Data Type Identifiers

Data Type Identifiers

When creating an indicator handle using the IndicatorCreate() function, an array of MqlParam type must be specified as the last parameter. Accordingly, the MqlParam structure, describing indicator, contains a special field type. This field contains information about the data type (real, integer or string type) that are passed by a particular element of the array. The value of this field of the MqlParam structure may be one of ENUM_DATATYPE values.

ENUM_DATATYPE

IdentifierData type
TYPE_BOOLbool
TYPE_CHARchar
TYPE_UCHARuchar
TYPE_SHORTshort
TYPE_USHORTushort
TYPE_COLORcolor
TYPE_INTint
TYPE_UINTuint
TYPE_DATETIMEdatetime
TYPE_LONGlong
TYPE_ULONGulong
TYPE_FLOATfloat
TYPE_DOUBLEdouble
TYPE_STRINGstring

Each element of the array describes the corresponding input parameter of a created technical indicator, so the type and order of elements in the array must be strictly maintained in accordance with the description.

Last updated on