Aegis Risk Sentinel
- Utilities
-
Syarief Azman Bin Rosli
Hello and welcome to my official MQL5 profile!
I am Syarief Azman Bin Rosli, an algorithmic trading systems developer and quantitative software engineer with over a decade of specialized experience creating robust automated trading solutions for MetaTrader 5 and MetaTrader 4. - Version: 1.0
- Activations: 5
Aegis Risk Sentinel is an institutional-grade, real-time equity protection and risk management utility developed natively for MetaTrader 5. Engineered for proprietary trading firm challengers, professional fund managers, and retail day traders, Aegis enforces mathematical discipline on your trading account, preventing catastrophic drawdowns, emotional revenge trading, and over-leveraged margin calls.
The utility features an ultra-responsive on-chart Head-Up Display (HUD) dashboard built with zero external dynamic link libraries (DLLs). It continuously audits account metrics in the background at sub-second intervals and provides instantaneous one-click emergency order execution controls.
Key Capabilities
-
Daily Loss Ceiling Protection Monitors floating and realized equity relative to your daily starting baseline (reset automatically at midnight broker time). If the daily drawdown reaches your configured maximum threshold (e.g., 4.0%), Aegis can automatically close all floating positions, cancel pending orders, and lock the account until the next session.
-
Daily Profit Target Lock Secures accumulated profits once your daily target is achieved. Prevents giving back earnings during late-day market churn.
-
Maximum Account Drawdown Guard Guards total account capital against critical floating drawdowns relative to balance. Essential for passing prop firm evaluations (FTMO, FundedNext, The Funded Trader) without breaching hard equity rules.
-
Margin Level Sentinel Monitors margin utilization. Emits instant audible and visual warnings if margin drops below safety buffers, with an optional safety setting to liquidate the single largest losing position to prevent terminal margin stop-outs.
-
Basket Trailing Equity Lock Dynamically trails the aggregate profit of all open positions in dollar terms, securing basket gains during volatility spikes.
-
Interactive On-Chart HUD A sleek, low-latency dark-themed dashboard displaying live balance, equity, floating profit/loss, daily profit/loss, margin level, and position lot exposure. Includes emergency buttons:
- Panic Close All: Instantly liquidates all positions and cancels all pending orders.
- Close In Profit: Instantly harvests all trades currently in positive territory while letting runners breathe.
- Toggle Sentinel Lock: Manually locks or unlocks risk rules.
- Minimize HUD: Collapses the dashboard into a compact status bar.
Technical Specifications
- Platform: MetaTrader 5 (MT5)
- Account Compatibility: Netting and Hedging accounts
- Instruments: Forex, Indices, Commodities, Cryptocurrencies, and Equities
- Execution Speed: Sub-millisecond timer driven architecture
- Resource Usage: Zero external dependencies, pure native MQL5
Input Parameters
Daily Risk Governance
- Enable Daily Loss Limit: Enables or disables the daily loss threshold.
- Max Daily Loss (%): Maximum percentage drop permitted from daily starting equity (e.g., 4.0%).
- Enable Daily Profit Target: Enables or disables daily profit locking.
- Daily Profit Target (%): Target percentage gain to trigger profit lock (e.g., 6.0%).
- Action on Daily Limit Hit: Choose between Alert Only, Close All Positions, or Close All and Lock.
Maximum Drawdown Protection
- Enable Total Floating Drawdown Guard: Protects against overall floating drawdown.
- Max Total Floating DD (%): Maximum permitted floating drawdown percentage relative to balance (e.g., 8.0%).
- Action on Max DD Violation: Action executed upon reaching the maximum drawdown threshold.
Margin Level Sentinel
- Enable Margin Sentinel: Monitors margin percentage level.
- Minimum Allowed Margin Level (%): Safety threshold (e.g., 150.0%).
- Close Worst Position on Margin Warning: Automatically closes the position with the greatest unrealized loss when margin level is breached.
Basket Trailing Profit Lock
- Enable Basket Trailing Equity Lock: Activates basket trailing stop.
- Basket Profit to Activate ($): Open profit in account currency to arm the trailing stop.
- Basket Trail Step ($): Distance in account currency to trail behind peak open profit.
Notifications & Audio
- Audible Alerts: Plays terminal audio notifications upon rule execution.
- Push Notifications: Forwards real-time alerts to MetaTrader 5 mobile applications.
- Terminal Alerts: Displays pop-up alert dialog boxes inside the desktop terminal.
HUD Dashboard Display
- Object Name Prefix: Unique namespace identifier for chart objects.
- Dashboard Colors: Fully customizable background, borders, text, and alert accents.
- Dashboard X / Y Offsets: Custom coordinate positioning on chart.
