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.
	          
	          
          You are missing trading opportunities:
        - Free trading apps
 - Over 8,000 signals for copying
 - Economic news for exploring financial markets
 
          Registration
          Log in
        
        You agree to website policy and terms of use
    If you do not have an account, please register
  
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?