Hello! Could you please tell me how to correctly write this condition in MQL4: "If the difference between the values of two variables is more than 15 points then...".
toni_stark: Hello, could you please tell me how to correctly write this condition in MQL4: "If the difference between the values of two variables is more than 15 points, then...".
toni_stark: Hello! Could you please tell me how to correctly write this condition in MQL4: "If the difference between the values of two variables is more than 15 points then...".
I have not stated the idea accurately. If v1-v2= -0.0015 (v1 and v2 are price values, which can be greater or less than each other), then the condition is not met because -0.0015 <(15.0 * Point)? And also(15.0 * Point) needs to be replaced by an external variable, so that this value can be changed in the settings.
toni_stark: I have not stated the point accurately. If v1-v2= -0.0015 (v1 and v2 are price values, which can be greater or less than each other), then the condition is not satisfied because -0.0015 <(15.0 * Point)? And also(15.0 * Point) needs to be replaced by an external variable, so that this value can be changed in the settings.
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.
Well I guess the moderators have free storage or you have ... whatever the reason...
...
Citizens, you should first go through the linkMQL5 Storage: Connecting the Storage - MetaEditor- to find out that the Storage is FREE!
Hello, could you please tell me how to correctly write this condition in MQL4: "If the difference between the values of two variables is more than 15 points, then...".
if (value1 - value2 > 15)
Hello! Could you please tell me how to correctly write this condition in MQL4: "If the difference between the values of two variables is more than 15 points then...".
I have not stated the point accurately. If v1-v2= -0.0015 (v1 and v2 are price values, which can be greater or less than each other), then the condition is not satisfied because -0.0015 <(15.0 * Point)? And also(15.0 * Point) needs to be replaced by an external variable, so that this value can be changed in the settings.
Then:
Then:
Then:
(v3 * Point())