Magic Protector
- Utilità
- Versione: 1.0
♥ MAGIC PROTECTOR — Advanced Equity Protection EA ♥
Magic Protector is a utility built for traders who want better control over daily, weekly, or monthly risk exposure.
The EA continuously monitors trading performance based on your selected protection period and helps prevent further losses or overtrading once your defined limits are reached. It can work with either the entire account or only trades belonging to a specific Magic Number, making it suitable for traders running multiple Expert Advisors on the same account.
Once the selected loss limit or profit target is reached, Magic Protector automatically activates protection mode. In protection mode, it deletes matching pending orders and closes matching open positions. This helps reduce the risk of continued trading after your daily, weekly, or monthly threshold has been reached.
Key Features
Risk Protection Modes
- Daily protection
- Weekly protection
- Monthly protection
Account or Magic Number Tracking
- Protect the entire trading account
- Or protect only trades with a selected Magic Number
- Useful when running multiple EAs on one MT5 account
Automatic Limit Enforcement
When a limit is reached, the EA can:
- Close matching open positions
- Delete matching pending orders
- Continue monitoring and blocking new exposure during the protected period
- Toggle Algo Trading ON/OFF(On extended version)
Floating + Closed P/L Monitoring
The EA monitors:
- Closed P/L for the current period
- Floating open position's P/L
- Locking condition = Floating + Closed P/L = Maximum loss allowed per period/Profit per period
News Filter Option
Optional high-impact USD news filter:
- Pause/protect trading before high-impact USD news
- Resume after the configured news window
- Adjustable minutes before and after news
On-Chart Dashboard
The dashboard displays:
- Tracking mode
- Target Magic Number
- Loss limit
- Profit target
- Period closed P/L
- Live floating P/L
- Net equity/P/L
- Protection status
Lightweight Monitoring
- Runs in the background
- Updates automatically
- Designed as a companion risk-management utility
Recommended Use
Magic Protector is useful for:
- Prop firm-style daily drawdown protection
- Use with MARTINGALE/GRID EAs to control drawdown and account blown by.
- Limiting EA losses by Magic Number
- Managing multiple EAs on one account
- Reducing excessive trading or news trading
Inputs
| Input | Description |
|---|---|
| InpProtectWholeAccount | If true, protects the whole account instead of one Magic Number |
| TargetMagicNumber | Magic Number to monitor when whole-account mode is disabled |
| InpProtectionMode | Daily, weekly, or monthly protection period |
| InpLossLimit | Maximum allowed loss for the selected period |
| InpProfitTarget | Profit target for the selected period |
| InpUseNewsFilter | Enables/disables the news protection filter |
| InpNewsMinutesBefore | Minutes before high-impact news to activate protection |
| InpNewsMinutesAfter | Minutes after high-impact news to keep protection active |
📩 📩📩📩📩
EXTENDED VERSION AVAILABLE
The MQL5 Market does not allow DLL usage in uploaded products.
For this reason, the Market version does not include DLL functions and does not toggle the global MT5 Algo Trading button.
A separate DLL-based private version available for users who specifically need Global Algo Trading control, Max Risk Per Trade, Max Floating Loss, and closing all pending orders etc..
For information about the extended version, please contact me privately.
♥ If Magic Protector saves your account even once, it has paid for itself. Trade protected. Trade with confidence. ♥
