Try this . . .
int a=5; int b=3; int c=a+b; MessageBox(StringConcatenate("The result of a+b is ", c), "Title"); // or MessageBox("The result of a+b is " + c, "Title");
https://docs.mql4.com/strings/StringConcatenate https://docs.mql4.com/common/MessageBox
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So i need a way to reference result c i tried following:
But when i put script in a chart nothing happens.Thank you