wds3817 / Publications Principal Codes Close All Positions include pending ones. pour MetaTrader 4 This one may not be the fastest, but it will definitely close all your positions