You can not use default parameters for DLL calls.
Renat:
You can not use default parameters for DLL calls.
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
#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);