mar:
Hey guys,
can anyone tell me what is wrong with this code? The text-objects are not deleted and I don't know why...
int OnInit() { for (int i = ObjectsTotal()-1; i>=0; i--) { if (ObjectType(ObjectName(i))==OBJ_TEXT) ObjectDelete(ObjectName(i)); } Print("Objects: ", ObjectsTotal()); //ObjectsTotal()=0 return(INIT_SUCCEEDED); }
>= of course!! :D Thanks !!

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
Hey guys,
can anyone tell me what is wrong with this code? The text-objects are not deleted and I don't know why...