Delete current Pending orders on every new 5min Candle! Is there something wrong with the logic?
-
I have a problem with the Pening orders, i have set the expiration mode to 5min, so that every new 5min candle the old orders should be deleted (expired).
But for some reason it doesent always works, sometimes i have 2-3 pending orders at the same time, wich means they should not be valid anymore.
Every new 5min candle my EA opens new pending orders, at that point i want my Old pending orders from the last 5min candle deletet (if they where not executed)
I realy dont know what is wrong, i need help with this.

The check age condition is also set to 5min. I hope its understandable what i mean.
-
on condition block 34 and 35 i have set the expiration mode to 5min.
on condition block 40 i also have set the expiration mode to 5min.I dont understand where the mistake is, why doesent it close the old orders from last 5min candle?
My EA calculates new pending orders every 5mins, i want the orders to be deleted next 5min candle if they where not executed.
For some reason i sometimes have 2-3 pending orders open with the not valid prices from 5-10 min ago.
-
@tho401 Upload your logic... I do not understand your block setup . I would think something like this:
https://fxdreema.com/shared/XAYlZ7e7I did not test it .. just thinking on the fly