error
mat-ebr: how can i fix this problem? i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86
if(High1>Open1 && High1>Close1 && High1>Low1 && High1-Open1<=10*Point && Close1-Low1<=10*Point && High1>High2 && Close1>Close2) { }
Learn to code:
Quickstart for newbies: /zh/articles/496
und: /zh/articles/100
if(High1>Open1>Close1>Low1
That doesn't do what you think it does. True = non-zero and false = zero. So you get:
if( 3 < 2 < 1 ) if( false < 1 ) if( 0 < 1 ) if( true ) | if( 3 > 2 > 1 ) if( true > 1 ) if( 1 > 1 ) if( false ) |
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — /zh/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — /zh/forum/172166/page6#comment_49114893
Please always use the CODE button (Alt-S) when inserting code.
You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
hi there
how can i fix this problem?
i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86