OnInit does not return zero or minus one; use a correct return code. OnInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I am a learner and have been practicing on how to create EAs. However I have encountered a problem where my EA /alert system is being removed from the chart
immediately after loading.
Can someone explain to me what could be the problem. PS. I have tried similar code with different RSI or ADX but for CCI its not working.
Can someone please help.