Download MetaTrader 5
To add comments, please log in or register
Share your programs. That will improve your rating.
Max Enrik
488
Max Enrik 2016.05.31 08: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 

Keith Watford
Moderator
7904
Keith Watford 2016.05.31 09:15  
is "- Daily Open - " the correct prefix?
Max Enrik
488
Max Enrik 2016.05.31 09:18  
GumRai:
is "- Daily Open - " the correct prefix?

Thanks for reply.

Yes, I checked it.

Max Enrik
488
Max Enrik 2016.06.01 07: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.

Max Enrik
488
Max Enrik 2016.06.06 06: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. 

/
To add comments, please log in or register