Close pending order and close profit order at time

 

Hello Guys. :)

I found an ea that's working nice, it has option open pending order (buy stop and sell stop) before news in time I set it, and cancel a pending order that was not trigger.

The problem is, when the order is trigger there is no option to close automatically an opened order, and I would like to add this option.

For exemple:

news time pending order: 2019/04/01 14:30 (already have on ea)

close open order at: 2019/04/01 14:35  (include this one on ea)

could somebody to help me? :)

 

I will atach the ea for you guys and the photo for you to see.


Thank you!


<ex4 file deleted>

 
You will need to attach the mq4 file
 
Here it is! :D
Files:
Reason: