EA Risk Management
- Experts
- Nguyen Chung
- Versione: 1.0
Risk Manager EA is a professional account-level risk management tool designed for prop firm traders and disciplined retail traders.
This EA does NOT trade. It works as a master risk controller that monitors your account equity and manages all other EAs and manual trades.
Supported Prop Firm Rules
- Daily Drawdown (Equity-based)
- Maximum Drawdown (Peak Equity-based)
- Daily Profit Target (Soft Lock)
- Hard Lock & Soft Lock system
- MT5 restart-safe (state is preserved)
The logic follows common rules used by prop firms.
How It Works
- Hard Lock
Triggered when Daily Drawdown or Maximum Drawdown is violated.
➜ All positions are closed
➜ All pending orders are deleted
➜ Trading is permanently blocked - Soft Lock
Triggered when Daily Profit Target is reached.
➜ New trades are blocked
➜ Existing positions can remain open (no forced close)
Equity-Based & Peak-Based Logic
- Daily Drawdown is calculated from Day Start Balance
- Maximum Drawdown is calculated from Peak Equity
- Peak Equity is never reset and is saved across MT5 restarts
This prevents common mistakes made by balance-based or floating-only risk managers.
Works With Other EAs
- Risk Manager EA communicates using a Global Variable:
- PROP_LOCKED = 1 (Trading blocked) PROP_LOCKED = 0 (Trading allowed)
- Your other EAs only need a simple check:
- if(GlobalVariableGet("PROP_LOCKED") == 1) return;
- This makes it ideal for managing multiple EAs on one account.
Real-Time Status Panel
- Current trading status (TRADING / SOFT LOCK / HARD LOCK)
- Lock reason
- Equity, Balance, Peak Equity
- Daily Drawdown & Maximum Drawdown
- Daily Profit
All information is displayed directly on the chart using a clean comment panel.
Inputs & Customization
- Daily Drawdown (% or money)
- Maximum Drawdown (% or money)
- Daily Profit Target (% or money)
- Option to close all positions on Hard Lock
- Option to delete pending orders
Important Notes
- This EA does NOT open trades
- Designed for MT5 only
- Use on one chart only
- Always test on a demo account before live or prop firm use
Who Should Use This EA?
- Prop firm challenge traders
- Funded account holders
- Traders running multiple EAs
- Anyone who wants strict, rule-based risk control
Risk Manager EA helps you stay disciplined, protect your account, and trade with confidence under prop firm rules.
