I opened scripte and did this code i get an error event handling function not found.

 

hi guys sorry i am new and i am trying to learn how to use this..


this is the script i used. and the error i got was event handling function not found. i am trying to create a stock screener on mql5 i have tried looking for solutions online i couldn't find anything, do i need to be registered with a real broker to get stock symbols? is there a way to pull stock symbol so i can test how screening and using indicators and oscillators.  thanks in advance!

int  SymbolsTotal( 

   bool  selected      // True - only symbols in MarketWatch 

   );

   

 

put your function in one of the event handling functions like :

OnInit()...  Start()... OnDeinit()... and so on.

 
  1. You didn't post a script, you posted a MT function prototype. Use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
              Messages Editor

  2. You posted nothing.That is like saying you're going to tell a story, and then stop speaking. Nothing.
  3. MetaQuotes is not a broker. You can only trade what your broker allows. Market Watch → Right Click → Show All.