Removes All Objects - Previous Day Object Still Remain

 

Hi,

I use below code for delete object. But next day I start MT4 "Previous Day Object Still Remain"

I do not know what is wrong my below code. Also I have not any error about that.

//  Removes All Objects
int deinit() {
    ObjectsDeleteAll(0, "- Daily Open - ");
    return(0);
}

Thanks,

Max 

 
is "- Daily Open - " the correct prefix?
 
GumRai:
is "- Daily Open - " the correct prefix?

Thanks for reply.

Yes, I checked it.

 

If someone will let me know a little a bit more I will research that way.

I am still looking for it how can I fixed it. 

Any ideas would be better for me.

 

Also I use below code in my indicator script.

int drawedDays = 1;
    days++;

...

if(days >= drawedDays) {
    break;
}

 

Thank you.

 
Max-Enrik:

If someone will let me know a little a bit more I will research that way.

I am still looking for it how can I fixed it. 

Any ideas would be better for me.

 

Also I use below code in my indicator script.

 

Thank you.

Admin, please delete this topic, I will try later for my issue. 

Reason: