HOW TO close pending orders OLDER than x hours.

To add comments, please log in or register
Chris2006 smith
15
Chris2006 smith  

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.

William Roeder
20207
William Roeder  
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.
Chris2006 smith
15
Chris2006 smith  

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.

William Roeder
20207
William Roeder  
Would solve nothing. If you delete/close orders, the signal service would recreate them to be in sync.
To add comments, please log in or register