Prohibited functions

 

 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

 
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.).
Reason: