help with mathpow()
if(mlots >= MathPow(LotSize,3));
Not related to MathPow; it's the semi-colon in if(mlots >= MathPow(LotSize,3));
It's not valid syntax for an if statement. Same result if you write something like if(true);
MT4 interprets this as "if (condition) then... do nothing". If that's really want you want to write, for some reason, then the syntax which is acceptable to MT4 is if (condition) {}
Not related to MathPow; it's the semi-colon in if(mlots >= MathPow(LotSize,3));
It's not valid syntax for an if statement. Same result if you write something like if(true);
MT4 interprets this as "if (condition) then... do nothing". If that's really want you want to write, for some reason, then the syntax which is acceptable to MT4 is if (condition) {}
But now that it's working, I figured out I don't want to use that.
I'm getting "empty controlled statement found"
if(mlots >= MathPow(LotSize,3));