the if operator changes when i add brackets inside its brackets

 

This might sound funny but it is real

 when my if operator is

  if (CurrentRSI > UpperBound && MarketInfo(Symbol(), MODE_BID) < MA200) {   

 everything goes normal except that i keep on losing money at stoploss

 

but  when i add brackets inside it

 

 if ((CurrentRSI > UpperBound) && (MarketInfo(Symbol(), MODE_BID) < MA200)) {  

 the result of backtesting is it only open buy position and doesnt even closes it or open sell position.

 

arent them both the same? 

 
cyxstudio:

arent them both the same? 

Yes they are. Something else has changed in the Strategy Tester run,  what was the spread for each run ?  do you know ?  were you connected to your Broker ?  If you don't believe me just add a Print() to print all these variables and the current datetime to the log,  then you can compare values at specific dates and times.
Reason: