Check it out pliz

 

Hi!

Gives me "unbalanced left parenthesis..." cant find the problem..please advice.

void KijunCrossExit()
{
  for(int i=OrdersTotal()-1;i>=0;i--)
  {
    if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)
      if(OrderMagicNumber()==MagicNumber)
        if(OrderSymbol()==Symbol())
          if(OrderType()==OP_BUY)
            if(Close[1]<Tenkan1)
              OrderClose(OrderTicket(),LotSize,Bid,Slippage,Yellow);
  }
}   
 
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
 
t0mbfunk:

Hi!

Gives me "unbalanced left parenthesis..." cant find the problem..please advice.

exactly Same problem you had in

iBarShift() didn't you learn from your own topic ????


44
2013.07.12 08:56 #
ffs,, lol i've been looking at it for 2 hours
 

hehe, programming is not my main profession and i took a break from it till now plus i am very tired, so you'll have to excuse me.

Thank you both

 
deVries:

exactly Same problem you had in

iBarShift() didn't you learn from your own topic ????


44
2013.07.12 08:56 #
ffs,, lol i've been looking at it for 2 hours


LOL ! 2 hours and then another 16 days, I guess... For some people it is easier to ask than to find !

P.S. t0mbfunk, you are welcome, by the way.

 
pro_:


LOL ! 2 hours and then another 16 days, I guess... For some people it is easier to ask than to find !

P.S. t0mbfunk, you are welcome, by the way.


For this problem I copy the code into Notepad++, select language C and look for the (unbalanced) parenthesis not being colored - quite simple and fast.
 
I use notepad2. When the coloring doesn't help, I find open and jump to the close, and repeat. missing won't jump.
 
I use my eyes :). Why not train your attentive abilities. plus when you do that, it teaches you to be much more carefull in writing the code the next time. (but Notepad2 idea isn't bad at all, for emergency or cases impossible to solve otherwise.)
 
thanks guys you are helping me a lot.
Reason: