Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Professional Close All Positions Panel - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Professional Close All Positions Panel - expert for MetaTrader 5

// See attached MQ5 file for full source code

Professional Close All Positions Panel - expert for MetaTrader 5

Emergency location management is made easy with this powerful visual panel.

🎯 What does it do?

Expert Advisor adds a stylish control panel to your charts, allowing instant closing of trades with advanced filtering options. Ideal for emergencies, news events or quick risk management decisions.

✨ Main features

- Close all positions immediately with one click

- Only close long positions

- Only close sell positions

- Close positions only for the current trading symbol

- Close only profitable positions

- Only close losing positions

- Real-time position counter and profit and loss display

- Color-coded profit/loss indicators (green = profit, red = loss)

- Safe confirmation dialog showing profits and losses before closing

- Simple panel removal button

- Fully customizable colors and panel positions

- Available for all trading symbols and timeframes

- Zero latency, instant execution

🛡️Safety first

Each closing operation requires your confirmation through a dialog box showing the exact profit and loss amount before execution. You will never close a position accidentally.

💡 Very suitable

✓ Emergency exit when news breaks

✓ Take profits quickly after reaching the target

✓ Stop losses quickly to protect your account

✓ End-of-day position clearing

✓ Professional risk management

✓ Scalpers and short-term traders

✓ News traders who need instant exit

🎨 Fully customized

- Choose panel position (any of 4 corners)

- Customize X and Y distance from corner point

- Change all colors (background, buttons, text)

- Includes professional color schemes

📊 Real-time information

The panel is constantly updated to show:

- Total number of open positions

- Total profit and loss in your account currency

- Buy position count and P&L

- Sell position count and P&L

- Everything is color coded for instant clarity

⚙️Input parameters

All setup is simple and well documented:

- Panel Corner - Select display position

- Panel X/Y distance - fine-tune position

- Colors - background, buttons, text

- All parameters are clearly described

🚀 Super easy to use

1. Drag the EA onto any chart

2. Enable automated trading (green button in toolbar)

3. The panel appears automatically

4. Click any button to close the position

5. Confirm operation

6. Done! Remove the panel when finished

⚡ High performance

- Super lightweight code

- No CPU overhead or memory issues

- Instant button response

- Handle over 100 positions with ease

- No lag even during periods of high volatility

✅ Tested and reliable

Thoroughly tested on multiple brokers, account types and market conditions. Includes comprehensive error handling, detailed logging and smart order filling modes (FOK/IOC/RETURN) for maximum compatibility.

🆓 Completely free

- No hidden fees

- There are no restrictions on positions

- No expiry date

- No trial period

- 100% free forever

📞 Excellent support

Have questions or issues? Leave a comment and I'll reply as soon as possible! I'm committed to helping users get the most out of this tool.

⭐⭐⭐⭐⭐ Please rate if this helps! ⭐⭐⭐⭐⭐

If this EA saved you time or money, please take 10 seconds to rate it!

Your rating helps other traders discover this free tool.

Thank you for your support! 🙏

📥 Installation instructions

1. Download files

2. Open MetaTrader 5

3. Open MetaEditor (press F4 or Tools → MetaQuotes Language Editor)

4. File → Open data folder

5. Copy the EA file to the MQL5 → Experts folder

6. Restart MT5 or refresh Navigator (right click → Refresh)

7. Drag "OneClickCloseAll" from Navigator → Expert Advisor to any chart

8. Click OK in the settings window

9. Make sure the "AutoTrading" button in the toolbar is enabled (green)

10. The panel appears on your chart - ready to use!

⚠️Important requirements

- MetaTrader 5 platform

- Autotrading must be enabled (green button)

- Works with any trading symbol and time frame

- Supports demo and real accounts

- Compatible with all brokers

🔧 Troubleshooting

If the button doesn't work:

1. Check whether automatic trading is turned on (green button)

2. Check Tools→Options→EA Trading→check "Allow automatic trading"

3. If necessary, recompile the EA (F7 in MetaEditor)

4. Check the Experts tab for error messages

💬Feedback welcome

I'm always looking for progress! If you have feature requests or suggestions, please leave a comment.

Version history

v1.00 - Initial version

- Six-position closed filter

- Real-time profit and loss display

- Security confirmation

- Fully customizable

- Professional graphical user interface

🎁 More free tools coming soon

Follow me for more free trading tools!


Attachment download

📎 screenshot1.png (19.6 KB)

📎 screenshot2.png (73.29 KB)

📎 screenshot3.png (34.87 KB)

📎 before.png (23.5 KB)

📎 after.png (24.18 KB)

📎OneClickCloseAll.mq5 (51.04 KB)

Source: MQL5 #67011

Verification code Refresh