Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | CMqlParams

MetaTrader Experts, Indicators, Scripts and Libraries

Public methods:

MqlParam          params[];

Public access to the params array;

CMqlParams*       Set(T data,ENUM_DATATYPE type = TYPE_LONG);

This is the main method of setting the params. Methods can be chained to add multiple params at the same time. *see example script.

T                 Get(int index);

//example

int param = Get<int>(0);

Returns the param data at index. 

ENUM_DATATYPE     Type(int index)

Returns the type at index.

int               Total()

Returns the total number of params.

CMqlParams*       Clear() 

Clears the param array and sets Total() to 0

18654

Best MetaTrader Indicators + Profitable Expert Advisors