Unbalance parenthesis

Back to topics list To post a new topic, please log in or register
avatar
2
ocoyle55 2016.02.13 04:42
 

Hello, I've read a few posts about unbalanced parenthesis, but trying to apply it to my error didn't work!

 

This is my code


            if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) && (!EachTickMode && (Bars!== BarCount)) 


               OrderClose(OrderTicket(), OrderLots(), Bid, Slippage, MediumSeaGreen);


                + DoubleToStr(Bid, Digits) +

               

            if (!EachTickMode) BarCount = Bars;


               IsTrade == False;


               ))

               continue; 

               


            }

                  }


               }


            }


         }

avatar
Moderator
3418
GumRai 2016.02.13 05:38 #
 
if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) && (!EachTickMode && (Bars!== BarCount))

You don't need all those brackets

if (Order == SIGNAL_CLOSEBUY && EachTickMode && !TickCheck && !EachTickMode && Bars!== BarCount) 


 + DoubleToStr(Bid, Digits) +

What is this supposed to do?


            if (!EachTickMode) BarCount = Bars;

               IsTrade == False;

Did you mean this or

            if (!EachTickMode)
               {
                BarCount = Bars;
                IsTrade == False;
               }

?


    continue; 

continue what?


Back to topics list  

To add comments, please log in or register