MT4 indicator - the platform loses connection

 

Hi everyone,


i created an indicator for mt4, the problem with it is that when i load it on the chart and close mt4, then restart it again, the platform does not connect to the server. I remove the indicator from the chart, restart mt4 and then it connects.

Did anyone face this problem?

 
Your indicator is not returning from OnInit or OnCalculate. Fix your broken code.
Reason: