Unable to delete CIndicator object
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 }
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: