Close pending order when there's no open order - page 2

 
William Roeder #:

The function is called AnyBuyOrders, but returns true if there are AnyOpenOrders.

Yes if there are any open orders means how it delete pending orders.  EA should delete pending orders if there are no open orders.


I need the final code for above condition that ea should delete pending orders once open orders closes.