upload EA at mql5 fail

 

Error! Invalid file type uploaded, Grace.ex4 - Script.
Your product's category is Experts, correct program type for it is Expert Advisor



why say my EA is a script


thanks

 
LEE Chun Wing:

Error! Invalid file type uploaded, Grace.ex4 - Script.
Your product's category is Experts, correct program type for it is Expert Advisor



why say my EA is a script


thanks

Does it use OnStart() or OnTick() ?

 
Keith Watford #:

Does it use OnStart() or OnTick() ?

yes , I use

what should I do

to able it for uploading?

 
LEE Chun Wing #:

yes , I use

what should I do

to able it for uploading?

What do you mean "Yes I use"?

You use what?

 
Keith Watford #:

What do you mean "Yes I use"?

You use what?

the EA which I upload including below code:

#property version     "1.0"      // Current version of the Expert Advisor 
#property strict
#property description "SpecialGrace" 

int OnStart()   {return(0);}
int OnTick()    {return(0);}
 
LEE Chun Wing #: the EA which I upload including below code:
  1. Do you expect them to do something?
  2. EAs use OnTick, scripts use OnStart. You can't use both.
 
William Roeder #:
  1. Do you expect them to do something?
  2. EAs use OnTick, scripts us OnStart. You can't use both.

1.not all the code show on last reply

2. But when I delete Onstart(), I canot compile succeesfully -->event handling function not found--> how to compile successfully?