Event handling function not found!

 

Hello everyone,

Please I need somebody's help concerning this, I have tried everything i know but to no avail. After completing my EA and compiling, it displayed "Event handling function not found!" on line 1 and column 1, I checked everything about line 1 and column 1 but there is nothing to correct yet it kept on displaying the error message.

Does anyone know where I have missed it?

Your timely help would be appreciated. Thanks in advance

 
It says you don't have any event handling functions in your code! 1/1 is irrelevant.
 
It is just using that point because it is the start of your program code.  Since there is no event handling within the entire program anywhere, there is no "spot" to mark, so it uses the first point actually within the program.
 
its happened with me and it turned out that hard disk is full because of many testing , to solve just delete MetaQuotes caches and logs inside tester and whener you see and  make some extra space in the hard drive , don't forget to keep getting backups because this will delete your codes 
 

Make sure your start function is an event 

OnStart() not start()

 
hqawasmi #:
its happened with me and it turned out that hard disk is full because of many testing , to solve just delete MetaQuotes caches and logs inside tester and whener you see and  make some extra space in the hard drive , don't forget to keep getting backups because this will delete your codes 
Yes, it was the same for me. Delete the files (Notepad) in the address below.
  ...\ MetaQuotes\Terminal\...\tester\logs
 
Improperly formatted post. Please use the CODE button (Alt-S) when inserting code — https://www.mql5.com/en/articles/24#insert-code or attach the file. This time I fixed it for you.
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
{
   SymbolInfo.Name(_Symbol);
   TradeObject.SetExpertMagicNumber(MagicNumber);

   Print("NRTR EA initialized successfully");
   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   Print("NRTR EA deinitialized");
}

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
{
   // EA logic will go here later
} 

add this code at the end of file or code