HOW TO close pending orders OLDER than x hours.

 

Hi. 

I would like help to make EA or as Indicator that can close pending orders when OLDER THAN x amount of HOURS old. 


I have seen a ea that can close on time but that would close all pending orders and not the older ones only.


Thanks for any help.

 
Chris2006: I would like help to make
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.

You should know how to find pending orders, when they were created, the current time, and how to delete them.
 

Hi, I copy from a signal and the problem is pending orders copied are needed but are not being deleted when should when they are on master.

Having a code to delete pending orders over a set time old would solve this. 


Thanks.

 
Would solve nothing. If you delete/close orders, the signal service would recreate them to be in sync.
Reason: