Can any of you help me solve a problem in this Ea mql4?

 
Good morning all .
Can any of you help me solve a problem?
This EA only takes long positions.
By moving a line in the program, it only takes short positions!
In your opinion, what is the correction to be made in order for him to take long and short positions?

Thanks for your help .

Gerard




 
// determine entry based on CCI
   
   if (cciperiod > 0 && isNewBar == true)
        
   {
      firebuy  = false;
      firesell = false;
      double cci = iCCI(Symbol(), 0, cciperiod, PRICE_TYPICAL, 0);
      
      if(sellallowed && cci < ccimin) 
      if ( volatility > VolatilityLimit )
      {
         firesell = true;
         sellallowed = false; 
      }
      
      if(buyallowed  && cci > ccimax) 
     // if ( volatility > VolatilityLimit )
      {
         firebuy = true;
         buyallowed = false; 
      }
      
      if (cci < ccimax && cci > ccimin)
      {
         buyallowed  = true;
         sellallowed = true;
      }
   }
 
7413276:

What do you mean by "moving a line"  ???

 
by moving,I want to say :






// determine entry based on CCI
   
   if (cciperiod > 0 && isNewBar == true)
        
   {
      firebuy  = false;
      firesell = false;
      double cci = iCCI(Symbol(), 0, cciperiod, PRICE_TYPICAL, 0);
      
      if(sellallowed && cci < ccimin) 





     // if ( volatility > VolatilityLimit )
      {          firesell = true;          sellallowed = false;       }               if(buyallowed  && cci > ccimax)
  if ( volatility > VolatilityLimit )
      {          firebuy = true;          buyallowed = false;       }               if (cci < ccimax && cci > ccimin)        {          buyallowed  = true;          sellallowed = true;       }    }