- SabDark: The if condition is true, but it don t execute the code
Prove it.
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
-
else if(gagneS == ask)
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07
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
The if condition is true, but it don t execute the code , The code is working, it works without the "if" condition, but when I put it in the "if" condition it work one or 2 times than It don t work anymore