Scripts: Close All Positions include pending ones.

 

Close All Positions include pending ones.:

This one may not be the fastest, but it will definitely close all your positions.

Author: wds3817

 

If you dont refresh rates this is not a good method of closing.


Use OrderClosePrice() instead of bid / ask.