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: https://www.mql5.com/en/articles/496
und: https://www.mql5.com/en/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 — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please always use the CODE button (Alt-S) when inserting code.
hi there
how can i fix this problem?
i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86