- Date Type Structure
- Indicator Parameter Structure
- History Data Structure
- Order Book Structure
- Trade Request Structure
- Request Check Result Structure
- Trade Request Result Structure
- Trade Transaction Structure
- Price Data Structure
- Economic Сalendar structures
The Structure of Input Parameters of Indicators (MqlParam)
All input parameters of an indicator are transmitted in the form of an array of the MqlParam type, the type field of each element of this array specifies the type of data transmitted by the element. The indicator values must be first placed in the appropriate fields for each element (in integer_value, in double_value or string_value) depending on what value of ENUM_DATATYPE enumeration is specified in the type field.
If the IND_CUSTOM value is passed third as the indicator type to the IndicatorCreate() function, the first element of the array of input parameters must have the type field with the value of TYPE_STRING from the ENUM_DATATYPE enumeration, and the string_value field must contain the name of the custom indicator.