XAU Hedgify Portfolio Guardian
- Experts
- Version: 1.0
- Activations: 10
XAU Hedgify Portfolio Guardian is a professional risk management suite designed for traders who require institutional-grade protection for their MetaTrader 5 accounts. Unlike standard protectors, this system utilizes quantitative volatility models and a multi-layer trigger matrix to secure your portfolio against market anomalies, news spikes, and execution failures.
The system acts as a "Financial Sentinel," monitoring every aspect of your account health—from floating P&L and equity snapshots to margin liquidity and spread quality. It is specifically optimized for high-volatility assets like Gold (XAU), but remains fully compatible with all instruments.
Core Advantages
- Universal Matrix Guard: A comprehensive ruleset featuring over 30 reactive triggers that monitor floating P&L, absolute and relative equity, free margin, price barriers, and daily performance.
- Quantitative Volatility Shield: Uses 3-Sigma Standard Deviation and ATR logic to dynamically adjust protection thresholds based on current market noise.
- Multi-Tick Verification: Every emergency trigger is confirmed across three consecutive ticks. This prevents false liquidations caused by temporary spread spikes or bad ticks from the broker.
- Relative Snapshot Monitoring: The engine captures your account state at initialization, allowing you to set protection rules based on percentage changes from your starting balance or equity.
- Institutional Execution: Decoupled trade logic ensures that emergency hedges or liquidations are performed with high-frequency retry logic and slippage protection.
Operational Features
- Sentinel Dashboard: A high-frequency graphical interface providing a real-time "Heartbeat" monitor and instant visual confirmation of all active protection zones.
- State Persistence: Dual-layer recovery logic ensures the engine remembers its baseline and risk metrics even after a platform restart or power failure.
- Adaptive Money Management: Built-in lot scaling based on current market volatility and portfolio-wide margin risk.
Input Parameters
Core Configuration
- Magic Number: The ID of positions to monitor (Set to 0 to protect the entire account).
- Hedge Magic: Unique ID for protective positions placed by the engine.
- Trigger Gap: The pip distance required to activate a protective hedge.
- Confirm Ticks: Number of ticks price must hold at a trigger level before action is taken.
Quantitative Volatility Shield
- Use 3-Sigma: Enable Standard Deviation logic for 99.7% statistical confidence in triggers.
- Sigma Multiplier: Multiplier for the volatility shield (Recommended: 3.0).
- Volatility TF: Timeframe used for noise detection.
Universal Matrix Guard
- Loss Target %: Emergency shutdown if floating loss hits X% of balance.
- Profit Target Value: Dollar amount to trigger asset cleanup.
- Equity Floor: Absolute account equity level for emergency exit.
- Equity Snap Target %: Trigger if equity falls to X% of the starting snapshot.
- Free Margin Floor: Minimum dollar margin required before the EA halts trading.
- Margin Level Low Target: Stop operations if margin level falls below X%.
- Spread High Target: Emergency shutdown if broker spread expands beyond X points.
Daily Risk Module
- Max Daily DD %: Daily drawdown limit for account protection.
- Daily Profit Target: Daily percentage target to lock the account for the day.
- Daily Loss Limit: Maximum realized daily loss allowed.
Support and Documentation
Technical support for Xau Hedgify Portfolio Guardian is provided exclusively through the MQL5.com messaging system. To receive updates and operational guides, please use the Product Comments section or contact the author via direct message on this platform.
For optimal results, it is recommended to run this Expert Advisor on a dedicated VPS with low latency to your broker's server. Ensure that "Allow WebRequest" is enabled if you utilize any external reporting features.
