pls help

 

i know that this whole code is wrong maybe but can someone explain me why there is a mistake with the one bracket thx ?

 
int Crossed (double line1 ,double line2){
   static int last_direction =0;
   static int current_direction =0;
   if(line1>line2)current_direction=1;
   if(line1<line2)current_direction=2;
   if (current_direction!=last_direction){
      last_direction=current_direction;
      return(last_direction);
   }
   else
   {
      return(0);
   } //<--YOU MISS IT HERE!!!
} //<--AND HERE=)
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+

And it is only the beginning of code!

Be careful, use special editors that can highlight things like this!

 
hasayama:

And it is only the beginning of code!

Be careful, use special editors that can highlight things like this!


thx a lot man and any idea about such an editor thx for an advice
 
 
Roger:

Try Notepad++ http://notepad-plus-plus.org/

flo's freeware - Notepad2 I use the code folding option.
Reason: