Close all opened orders!

 

Hi,

I like to close all opened orders at end of the day. i know there is close position one by one.but i like to know is there any function available to close all positions?

 
https://www.mql5.com/en/code/7607 . There are more scripts in the code base if you search. There is no built in function which closes all positions simultaneously.
 
One by one counting down