CloseOpenOrders - script for opening of market orders

Script Close Open Orders closes all open transactions to buy and sell. If there is a pending order, the script does not close them, close only buy and sell available regardless of whether a pair of open transactions, some of them profit \ loss Magik number, or other options. After running the script displays an alert with information about the completion of this work.
More details about the script on the page http://forexsoft.org/?p=385

A set of seven scripts for closing orders here >> http://www.zaplaty.com/itm/Sem%2527+skriptov+dlja+zakrytija+orderov/2000993

================================================== ===========================
Other scripts for closing orders:

AllOrdersClose script closes all the orders (and the market, and deferred) >>> http://www.zaplaty.com/itm/AllOrdersClose+%252D+skript+zakrytija+vsekh+orderov/2001004

DeleteOrders script deletes pending orders >>> http://www.zaplaty.com/itm/DeleteOrders+%252D+skript+dlja+udalenija+otlozhennykh+orderov/2001124

Script CloseLossOrders closes losing trades >>> http://www.zaplaty.com/itm/CloseLossOrders+%252D+skript+dlja+zakrytija+ubytochnykh+orderov/2001131

Script CloseProfitOrders closes Trades >>> http://www.zaplaty.com/itm/CloseProfitOrders+%252D+skript+zakrytija+pribyl%2527nykh+orderov/2001138

Script CloseSellOrders closes deal SELL >>> http://www.zaplaty.com/itm/CloseSellOrders+%252D+skript+dlja+zakrytija+sdelok+SELL/2001144

Script CloseBuyOrders closes transaction BUY >>> http://www.zaplaty.com/itm/CloseBuyOrders+%252D+skript+dlja+zakrytija+sdelok+BUY/2001149