How to reference variable in Message Box?
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
So i need a way to reference result c i tried following:
But when i put script in a chart nothing happens.Thank you