can't figure out this compile error?

 
when using code below i get compile error - ")" wrong parameter count when calling function BuyMarket();

#import "tradelib.ex4"
bool BuyMarket(bool showMsg=true,int slippage=3,int magic=0,color Arrow=DarkGreen);
#import
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
BuyMarket();
return(0);
}

the compile works if I put function directly into the script.
It also works if I put all parms in function like BuyMarket(true,3,0,DarkGreen);
 
You can not use default parameters for DLL calls.
 
Renat:
You can not use default parameters for DLL calls.

That's too bad. This is a call to a native library. Not an outside DLL
 
irusoh1:
Renat:
You can not use default parameters for DLL calls.

That's too bad. This is a call to a native library. Not an outside DLL

Use another function defined in the same tradlib library that doesn't have the extra parameters as a 'convenience method'.
Reason: