Open parenthesis expected

 
int PORBullishBars(int i) {


   int POR_Bullish_Counter = 0;
   for(i = 1; i < Bars - 100; i++) {       (this is 694 line where error occurs: '-' - open parenthesis expected
if(Bullish_POR_LevelBuffer[i] != 0 && Bullish_POR_LevelBuffer[i] != EMPTY_VALUE) {
         POR_Bullish_Counter = i;
         break;
      }
   }
   return(POR_Bullish_Counter);

}


Please help me solve this problem, thank you in advance :) 

 
The function header PORBullishBars() defines an integer i. Within this function you are using integer i also inside the for() loop. Is this the same i? My guess is that you meant something different.
 
marekbiruta:
int PORBullishBars(int i) {


   int POR_Bullish_Counter = 0;
   for(i = 1; i < Bars - 100; i++) {       (this is 694 line where error occurs: '-' - open parenthesis expected
if(Bullish_POR_LevelBuffer[i] != 0 && Bullish_POR_LevelBuffer[i] != EMPTY_VALUE) {
         POR_Bullish_Counter = i;
         break;
      }
   }
   return(POR_Bullish_Counter);

}


Please help me solve this problem, thank you in advance :) 

try putting () after Bars at the problematic row - So Bars()

 
WindmillMQL:
The function header PORBullishBars() defines an integer i. Within this function you are using integer i also inside the for() loop. Is this the same i? My guess is that you meant something different.

yes, i think that your thinking is good. 

 
Stanislav Ivanov:

try putting () after Bars at the problematic row - So Bars()

I am not a programmer, how it should looks in code? and this is mql5.

Reason: