You mean you get that message when attaching and detaching the indicator, not when you compile. Uncomment the highlighted line.
void OnDeinit(const int reason) { m_MA.FullRelease(); //delete m_MA; ==> UNCOMMENT THIS LINE }

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
Hi,
I am trying to delete an indicator created using the class CiMA in MT5 with no success. Always when I recompile my indicator, the message "1 object of type CiMA left" appears in the experts tab.
Can somebody help me to delete correctly this object.
Thanks in advance.
My code is: