Does anyone have a script that will close ALL OPEN POSITIONS and ALL OPEN PENDING ORDERS?

 
Hello,

I'd like to know if anyone have a script that will close ALL OPEN POSITIONS and ALL OPEN PENDING ORDERS? There may be multiple symbols in OPEN POSITIONS AS WELL AS in PENDING ORDERS?. Thanks.

Cheers,Padhu
 
I guess both are already built in MT4, activate the navigator and browse to script
 
The EA I have is a multicurrency EA..Just runs on one chart but places orders for various symbols...So I need the abaility to close pending orders and open positions for any symbols instead of just for the symbol where the chart is attached.
 
Reason: