How to close all positions?

 
How can close all opened positions with one command at MT4?

Is the only way one by one?

Thanks.
 

One by one, manually, or via code