The goal of this script is to minimize risk in all scenarios, especially when the shit hits the fan. This script provides the very best and the fastest possible risk mitigation available thru MT4 by using some unique logic not found in any other close-all scripts.
Operation Summary:Net positions are calculated per emblem (sum of all open transactions ). Symbols are prioritized to manage net-positions from larger (more risk) to smaller. Hedge orders are sent in the order of priority to close all exposure at once irrespective. Once all open-expo is hedged the program prioritizes pending orders Pending orders have been deleted in order of highest risk of being executed densely hedged positions (closed by hedge) are subsequently determined on the broker host and there are no costs/spread/commissions billed on the hedge (it is literally treated like a closed position) Note: This only works on non-FIFO hedging brokers. I also have included a different script that shuts orders on FIFO brokers (slowww compared to hedging brokers).
You Might Also like the Hedge Trade Panel
https://www.forexforum.co.za/attachm...1718684493.mq4
https://www.forexforum.co.za/attachm...1326129861.mq4