I have an expert that has string variables that I am generating at runtime and would like to parse these and evaluate it as an expression? How am I able to do this? For example:
This is just how I would assume it to work if there was an Evaulate function, however, I do not know which API I should import if any to use such a function. Thanks in advanced.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I have an expert that has string variables that I am generating at runtime and would like to parse these and evaluate it as an expression? How am I able to do this? For example:
string strIForce = "iForce(\"GBPJPY\", 0, 13, MODE_SMA, PRICE_CLOSE, 0)";
double iForceDbl = 0;
iForceDbl= Evaluate(strIForce);
This is just how I would assume it to work if there was an Evaulate function, however, I do not know which API I should import if any to use such a function. Thanks in advanced.