MT4 is there a "close all open trades script/command?"

Hi all, need help with abovementioned - is there a script/command, that upon execution closes ALL open trades on ALL crosses at once?

thnx in advance

Can anyone versed in mql help me? I got this from another site but upon launch i gives Error 4109.

- SpreadToCheck EA (spread checker): expert will record current time and current spread in *.csv file.

- spread monitor indicator is here.

- EA to delete pendind orders on specify pairs only: original thread.

- EA to delete all pendind orders: original thread.

- EA to close the orders on specify pairs only: original thread.

- EA to close open trades based on equity or account floating loss reaches: public thread.

- HotKey for buy/sell orders: the thread is here.

Files:

THNX a lot. Newdigital - u the man.