What is issue with this Indicator that whenever trying to apply on charts, Mt4 crashes.

 

Attaching a custom indicator .
While applying the indicator on any chart on Mt4 , 

Mt4 gets closed.
what can be done  to apply this indicator on any chart ?


<*.ex* file has been removed>

Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.