Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

CMqlParams - MetaTrader 5 Library | Trading Script Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Public methods:

 Message parameters parameters[];

public access to params array;

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

This is the main way to set parameters. Methods can be chained to add multiple parameters at the same time. *See sample script.

 T get( integer exponent);

//example

int parameter = Get (0);

Returns the parameter data at index.

ENUM_DATATYPE type ( integer exponent)

Returns the type at index.

integer all()

Returns the total number of parameters.

CMqlParams* Clear()

Clear the param array and set Total() to 0


Attachment download

📎 mqlparams.mqh (3.26 KB)

📎 mqlparams_example.mq5 (3.31 KB)

Source: MQL5 #18654

Verification code Refresh