MQL5 Programming for TradersCreating application programsScripts and servicesRestrictions for scripts and services
Restrictions for scripts and services
All functions included in the group for working with indicators are prohibited in scripts and service. These functions will be described in the corresponding chapter:
- SetIndexBuffer
- IndicatorSetDouble
- IndicatorSetInteger
- IndicatorSetString
- PlotIndexSetDouble
- PlotIndexSetInteger
- PlotIndexSetString
- PlotIndexGetInteger
Also, in scripts and services, there is no point to use the OnTimer handler (like any other handlers) and timer functions:
Since scripts and services are not supported by the tester, they cannot use Tester functions; they will cause errors ERR_FUNCTION_NOT_ALLOWED (4014).