my own EA not executed

 

hi all,
sorry, I'm a beginner in the world trade.
just few, I know a programming language.
but, I have tried to create my own EA by MQL-4.
and I have compiled it, no errors found.
but, I always failed the test in the chart.
how is this???

any help, please. 

 

What does not-work? Does it not place trades? Does it not generate profits? What test in the chart does it fail? Do you think you have a coding problem or a system problem? Did you enable auto trading? Do you not get a happy face? Does your start() not execute?

 

thi is my trial EA. It is simple, but not executed. why?

Files:
example.mq4  2 kb
 
sapto:

thi is my trial EA. It is simple, but not executed. why?


There isn't much point calling GetLastError() if you don't do anything with it's return value,  read this it will help: What are Function return values ? How do I use them ?

Is your Broker an ECN type Broker ?  if you are not sure do this little test:   https://www.mql5.com/en/forum/143043/page2#746319