Juraj Ondrusek:
Hi, I need to help. Know anybody, how to delete object (TEXT_OBJECT with name=OrderTicket()), when that order is already closed?
EXAMPLE:
for(int z=OrdersTotal()-1; z>=0; z--)
{ int sel = OrderSelect(z, SELECT_BY_POS);
string ticket = (string)OrderTicket();
Object_Create(ticket);
}
............
When is order closed, object with name as ticket number must be deleted. Big thanks.
is there any other object?
if not (it's the one and only object), you can use ObjectsDeleteAll.
Thanks, but Yes, there is more objects.
NOTE1: order is closed by me, not by EA
I solve it with use array. Thanks all for help.
Juraj Ondrusek:
I solve it with use array. Thanks all for help.
good luck.
I solve it with use array. Thanks all for help.
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, I need to help. Know anybody, how to delete object (TEXT_OBJECT with name=OrderTicket()), when that order is already closed?
EXAMPLE:
for(int z=OrdersTotal()-1; z>=0; z--)
{ int sel = OrderSelect(z, SELECT_BY_POS);
string ticket = (string)OrderTicket();
Object_Create(ticket);
}
............
When is order closed, object with name as ticket number must be deleted. Big thanks.