I created a sample EA but it keeps getting the error "... is not expert and cannot be executed.".
Remove the OnStart(). Use start instead.
Make sure that the expert is within expert folder instead of Scripts or Indicator.
Wlecome to mql4.com forum,
You can also check that you don't have a line like :
If yes, you can remove it, compile and try again.