Logic statement compiling error

 

Hi, 

Can anyone suggest a fix for this compiling error on the || or statement:

 if(PriceHighBack>=BolUpper && PriceMedian<BolUpper || PriceHighBack>=BolUpper && PriceMedian<PriceMedianBack)

I get this compiling error:

check operator precedence for possible error; use parentheses to clarify precedence Indicator_5MinEa_Live_Xprice.mq4 102 65

Can you suggest a fix?

hope you can help??

thanks ! Mike 

 

Note:

double PriceMedian=(High[i]+Low[i])/2;

      double PriceMedianBack=(High[i+1]+Low[i+1])/2;

      double PriceLowBack=(Low[i+1]);

      double PriceHighBack=(High[i+1]); 

 

Just set "(" and  ")"!

Is it (..&&..) || (..&&..)   or .. && (..||..) && .. ?

 
if((PriceHighBack>=BolUpper && PriceMedian<BolUpper) || (PriceHighBack>=BolUpper && PriceMedian<PriceMedianBack))
 
thanks got it :)
Reason: