Close All Orders Script
One-click close-all-positions utility · Free, open-source · MT4
About Close All Orders Script
The Close All Orders script, documented at earnforex.com, is a free MetaTrader 4 utility (MT5 equivalent: "Close All Positions") that closes every open position with a single click — often called a "panic button." It's distributed with simple filtering options, letting a trader selectively close all positions, or only unprofitable ones ("Close Losses"), across all charts and pairs in the terminal.
As a script rather than an Expert Advisor, it runs once when applied to a chart and then automatically removes itself — the community consensus (per Forex Factory discussions) is that a script is generally the better tool for this job over a persistent "Close All" EA, since it avoids leaving an always-running process on the chart.
- Platform: MetaTrader 4 (script) / MetaTrader 5 equivalent available
- Type: One-click close-all-positions utility script
- Variants: Close all positions, or close only unprofitable ones
- Price: Free, open-source
- Source: earnforex.com · Close All Orders for MT4, Close All Positions for MT5