wrong parameter count on my ea

 

I have a problem calling 2 functions in my ea witch is very weird to me since I can not find anything wrong with this part of the ea

here is the function call I have

actually very simple. if the check for profit command shows enough profit it will close either buy or sell down. but wrong parameter count error occurs on compiling

int pro()
   {
      if (buyprofit >= range*buylot)BC();
      if (sellprofit >= range*selllot)SC();
   }
 

int pro (){
if (buyprofit >= range*buylot)BC();
if (sellprofit >= range*selllot)SC();

return(0);


}

If this doesn't help, problem is elsewhere, paste more code.

Also I assumed that buyprofit, sellprofit, range, buylot and selllot are global vars and BC and SC are void functions.

 
forexCoder:

If this doesn't help, problem is elsewhere, paste more code.

Also I assumed that buyprofit, sellprofit, range, buylot and selllot are global vars and BC and SC are void functions.


you got it right on the functions and the variables I'm testing it right now