problem on calling the imported functions with default parameters.

 

Dear all, I met a problem when i tried to call an imported function with defaul value parameters.

The function body is:

#property library
#define MN 13000
void alert1(string sym, int Type, double Lotz, int MagicNumber=MN,double PendingPrice = 0)
{
Alert(sym+Type+Lotz);
}//the last 2 parameters of alert1() are default valued, and alert1 is to be imported and called in another module.

The function is imported as follows:

#import "test.ex4"
void alert1(string sym, int Type, double Lotz, int MagicNumber=MN,double PendingPrice = 0);
#import

I use the following code to call it in my EA, the compiler reports: "wrong parameters counts."

int start(){
  bool called =false;
  if(!called)
    alert1("USDJPY",3,0.2);
  called=true;
  return(0);
}
what is wrong with my code, or how should I change the code so as to be compiled successfully? Many thanks for your time and consideration, and, your prompt reply.
 
tzm: I met a problem when i tried to call an imported function with defaul value parameters.
What part of "parameters passed to imported functions (both from EX4 and from DLL modules) cannot have values by default." is unclear?