Seyedmasoud Hashemi:
hi every one
i have a custom indicator that create some object graphic
but after i delete the indicator they are still there( one button ans some label)
i use this code in my indicator:
can anyone help me??
Instate a prefix for all your indicator objects in a global string
string SystemPrefix="MYOBJECTS_"; int OnInit()
then every object you create add this before the object name
SystemPrefix+"..." ;//the name you had given in ...
then on deinit
void OnDeinit(const int reason) { ObjectsDeleteAll(ChartID(),SystemPrefix); }
note you can use prefixes for different parts of your system like screens ,popup elements etc

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 every one
i have a custom indicator that create some object graphic
but after i delete the indicator they are still there( one button ans some label)
i use this code in my indicator:
can anyone help me??