Topics: metatrader5, mql5, prop-firm, expert-advisor, mql4, metatrader, forex-trading, automated-trading, risk-management, money-management, ftmo, funded-account, drawdown-protection, mt4, mt5, trading-bot, mt5-drawdown-guard, ftmo-equity-protector, prop-firm-kill-switch
Drawdown protection and equity guard suite for prop firm traders using MT5 / MT4. The project enforces daily loss limits, total drawdown rules, and equity shields with a hard kill-switch, helping traders survive funded challenges and live phases without breaking the firm's risk parameters.
Real-time equity guard with daily / overall drawdown enforcement, hard kill-switch, and full prop firm rule simulation.
Most prop firm failures are not from bad strategies, they are from one bad day that breaks a hard limit.
This project keeps you funded by:
- Watching equity tick by tick
- Closing trades before the rule breaks
- Locking the account for the rest of the session
PropFirm Drawdown Guard MT5/MT4 mirrors typical prop firm risk rules and enforces them locally before the broker server flags you.
| Module | Description |
|---|---|
| Equity Monitor | Tick-level equity tracking |
| Daily Loss Engine | Resets at broker server midnight |
| Max DD Engine | Trailing or static drawdown |
| Kill Switch | Closes all & blocks new orders |
| Buffer Layer | Configurable safety buffer |
| Session Log | Full audit trail of triggers |
| Feature | Description |
|---|---|
| Daily Limit Rule | Loss-of-day shutdown |
| Overall Limit Rule | Max account drawdown |
| Trailing Drawdown | High-water-mark mode |
| Soft Warn / Hard Stop | Two-level alert system |
| MT4 / MT5 Support | Platform selection system |
| Broker Time Sync | Resets exactly on broker midnight |
| Audio Alerts | Pre-trigger warning |
| Account Selector | Multiple challenges side by side |
| Rule Presets | FTMO, MFF, FundedNext, custom |
| Recovery Mode | Manual unlock after review |
- Tick-frequency equity sampling
- Server-time aware, no local-clock drift
- Closes positions sequentially to limit slippage
- Refuses new orders while locked, even from external EAs
Requirements:
- Windows 10 / 11
- .NET 8+
- Visual Studio 2022
git clone https://github.com/your-username/propfirm-drawdown.gitOpen solution → Press F5
- Launch app
- Select MT4 / MT5
- Enter login
- Click CONNECT
- Load prop firm preset
- Set buffer percent
- Click ARM GUARD
- Trade with a hard safety net
START ████████████████████ 100%
NOW ██████████████░░░░░░ 72%
LIMIT ████░░░░░░░░░░░░░░░░ 25% <- KILL LINE
- Green band = safe zone
- Yellow band = warning zone
- Red band = trigger zone
- Locked panel = guard fired
- Equity monitor
- Kill switch
- Rule presets
- Real MT5 EA bridge
- Cloud rule sync
- Per-symbol risk caps
- Mobile alert push
1. Fork
2. git checkout -b feature/new-feature
3. git commit -m "Add feature"
4. git push
5. Open PR
MIT
PropFirm Drawdown Guard MT5/MT4 · v1.0

