Removes All Objects - Previous Day Object Still Remain

Back to topics list To post a new topic, please log in or register
avatar
37
Max-Enrik 2016.05.31 10:04
 

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 

avatar
Moderator
3404
GumRai 2016.05.31 11:15 #
 
is "- Daily Open - " the correct prefix?
avatar
37
Max-Enrik 2016.05.31 11:18 #
 
GumRai:
is "- Daily Open - " the correct prefix?

Thanks for reply.

Yes, I checked it.

avatar
37
Max-Enrik 2016.06.01 09:16 #
 

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.

avatar
37
Max-Enrik 2016.06.06 08:31 #
 
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. 

Back to topics list  

To add comments, please log in or register