compiling error

 

I keep getting the '\end_of_program' - unbalanced left parenthesis error when I compile the following indicator code. Anyone could tell me why?


int start()
  {
    
    if(OrderSelect(ticket_number, SELECT_BY_TICKET)
      {
       order_profit = OrderProfit();
      }
    
    free_margin = AccountFreeMargin(); 
    Comment("Order Profit  ",order_profit,"Free Margin  ",free_margin);

   
    return(0);
  
  }
 

A clue . . .

 if  (   OrderSelect(ticket_number, SELECT_BY_TICKET)
 
RaptorUK:

A clue . . .


Aaah... I left out the right parenthesis! Thanks for the clue.

 
forestmyopia:


Aaah... I left out the right parenthesis! Thanks for the clue.

Sometimes you can't see the wood for the trees ;-)
Reason: