Prohibited functions

To add comments, please log in or register
Marius Ovidiu Sunzuiana
488
Marius Ovidiu Sunzuiana  

 Dear sirs,


  I`n new in this MQL5 programming language. Can somebody tell me why some functions are prohibited for using them in indicators and expert advisors? 

Thank you

Fernando Carreiro
4699
Fernando Carreiro  
Sunzuiana Marius Ovidiu: I`n new in this MQL5 programming language. Can somebody tell me why some functions are prohibited for using them in indicators and expert advisors?

There are many reasons and you should really invest time in learning from the documentation (because it is explained there in much more detailed), but basically:

  • Indicators are for viewing, therefore cannot Trade, nor can it be blocked by functions that block or delay the visual functionality.
  • EA's are for trading, so cannot use functions that are specific for Indicators use only (such as Indicator Buffers, etc.).
To add comments, please log in or register