mat-ebr  

hi there 

how can i fix this problem? 

i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86

if(High1>Open1>Close1>Low1 && High1-Open1<=10*Point && Close1-Low1<=10*Point && High1>High2  && Close1>Close2)
     {
      
     }

Improperly formatted code edited by moderator.

Chioma Obunadike  
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)
     {
      

     }
William Roeder  
 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 )
iftrue > 1 )
if(     1 > 1 )
if(     false )

Reason: