Xau Heimdall Dual Matrix
- Experts
- Napat Puangjunkum
- Versão: 1.0
- Ativações: 5
XAU HEIMDALL DUAL MATRIX
The All-Seeing Range & Breakout AI Engine
Xau Heimdall Dual Matrix is a state-of-the-art Expert Advisor engineered specifically for XAUUSD (Gold). Named after the all-seeing guardian of Asgard, Heimdall possesses the unique ability to "see" and adapt to changing market environments. While most EAs fail when the market shifts from a trend to a range, Heimdall thrives. It utilizes a highly sophisticated Dual Matrix Engine that seamlessly switches between Range-Bound strategies (Bollinger Bands + RSI) during consolidation, and Breakout strategies (Donchian Channel) during market expansion. No dangerous Grid, no Martingale. Just pure, adaptive mathematical precision.
=== WHY XAU HEIMDALL DUAL MATRIX? ===
1. ADAPTIVE DUAL ENGINE: Automatically detects market volatility using the Average Directional Index (ADX). If ADX is low, it enters "Range Mode". If ADX spikes, it switches to "Breakout Mode".
2. S1 (RANGE MODE): During consolidation, Heimdall trades the swings using Bollinger Bands and RSI, entering at oversold/overbought extremes for high-probability reversals.
3. S2 (BREAKOUT MODE): When momentum explodes, Heimdall tracks the Donchian Channel, executing precision breakouts to capture massive trend expansions.
4. THREE-STAGE DD SHIELD (AEGIS): Continuously monitors your Drawdown and adjusts risk in real-time. STAGE 1 (Defensive): Risk reduced by 50%. STAGE 2 (High-Confidence): Risk reduced by 75%. STAGE 3 (Emergency Lock): Trading is completely halted. Your account is saved.
5. GHOST PROTOCOL V3 (STEALTH MODE): All Stop Loss, Take Profit, and Break-even levels are managed INTERNALLY. The broker sees no exit levels. This protects you from stop-hunting wicks and broker manipulation.
6. ROLLOVER & SPREAD SHIELD: Automatically blocks new trades during the highly illiquid 23:00–01:00 rollover period.
7. PRE-ROLLOVER CLOSE: Monitors running positions older than 4 hours, and if they are close to the Stop Loss before 23:30, it will safely close them before the massive midnight spread widening occurs.
8. PHANTOM RANDOMIZER: Introduces slight random execution delays in live environments to completely bypass Prop Firm algorithm detection systems.
=== OPTIMAL SETTINGS (BACKTEST RESULTS) ===
Backtested on XAUUSD (GOLD) H1, Jan 2025 - May 2026 (17 months), $1,000 initial deposit.
Best Configuration: AGGRESSIVE GROWTH
- Net Profit: $+1,727,189.41 (+172,718.9%)
- Timeframe: H1
- Asset: XAUUSD
=== GOD-TIER PRESETS ===
[SETUP 1] PROPFIRM SAFE (Conservative Prop Firm)
Ultra-safe preset designed to easily pass FTMO and FundedNext challenges.
- Risk Per Trade: 0.5%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 1.0x / ATR TP: 2.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 150 pts / Trail Step: 50 pts
- Randomizer: true / Rollover Shield: true
[SETUP 2] STANDARD BALANCED (Recommended - Best Risk/Reward)
The optimal balance between profit and safety for personal live accounts.
- Risk Per Trade: 1.5%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 1.5x / ATR TP: 3.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 200 pts / Trail Step: 80 pts
- Randomizer: true / Rollover Shield: true
[SETUP 3] AGGRESSIVE GROWTH (Aggressive Personal Account)
Maximum profit extraction for smaller accounts ($500 - $1000) aiming for compound growth.
- Risk Per Trade: 3.0%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 2.0x / ATR TP: 5.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 300 pts / Trail Step: 100 pts
- Randomizer: true / Rollover Shield: true
=== INSTALLATION and SETUP ===
1. Open a Gold chart (XAUUSD, XAUUSD.m, or GOLD) in MetaTrader 5 on the H1 timeframe.
2. Drag and drop Xau Heimdall Dual Matrix onto the chart.
3. In the Inputs tab, under "=== GOD-TIER PRESETS ===", select your preferred preset from the dropdown menu.
4. Ensure "Allow Algo Trading" is checked.
5. Run on a VPS 24/5. Ghost Protocol requires the terminal to remain open continuously.
=== PARAMETER GUIDE ===
Heimdall Dual Engine:
- AdxPeriod & AdxThreshold: ADX settings to determine if the market is in Range (< 25) or Breakout (> 25).
- BbPeriod & BbDeviation: Bollinger Bands settings for Range Mode.
- DonchianPeriod: Breakout lookback period for Breakout Mode.
- RsiPeriod: RSI period used as an entry filter in both modes.
Rollover Shield:
- UseRolloverShield: Activates the pre-close and time-block logic.
- BlockHourStart/End: Broker server hours to block trading (default 23 to 1).
Ghost Protocol (V3):
- GhostMode: Hides SL/TP from the broker entirely.
- ATR_SL_Mult / ATR_TP_Mult: Dynamic Stop Loss and Take Profit multipliers based on ATR.
- TrailingStop / TrailStartPts / TrailStepPts: Controls dynamic trailing logic.
Aegis DD Shield & Prop Firm:
- RiskPerTrade: The base risk percentage for the first limit order.
- DD1/DD2/DD3: The drawdown percentages that trigger defensive protocols.
- UseRandomizer: Bypasses Prop Firm copy-trading detection.
=== IMPORTANT NOTES ===
- The premium on-chart HUD shows the active preset, ADX status (Range/Breakout), and DD Shield status in real-time.
- Ghost Protocol manages exits internally. You will NOT see SL/TP lines on your broker's chart.
- The EA handles "not enough money" margin checks automatically, preventing minimum volume errors in testing.
- For maximum aggressive yield, manual closing before weekend gaps is recommended, though the Rollover Shield handles daily overnight gaps automatically.
For support, custom presets, and institutional deployment inquiries, please contact
The All-Seeing Range & Breakout AI Engine
Xau Heimdall Dual Matrix is a state-of-the-art Expert Advisor engineered specifically for XAUUSD (Gold). Named after the all-seeing guardian of Asgard, Heimdall possesses the unique ability to "see" and adapt to changing market environments. While most EAs fail when the market shifts from a trend to a range, Heimdall thrives. It utilizes a highly sophisticated Dual Matrix Engine that seamlessly switches between Range-Bound strategies (Bollinger Bands + RSI) during consolidation, and Breakout strategies (Donchian Channel) during market expansion. No dangerous Grid, no Martingale. Just pure, adaptive mathematical precision.
=== WHY XAU HEIMDALL DUAL MATRIX? ===
1. ADAPTIVE DUAL ENGINE: Automatically detects market volatility using the Average Directional Index (ADX). If ADX is low, it enters "Range Mode". If ADX spikes, it switches to "Breakout Mode".
2. S1 (RANGE MODE): During consolidation, Heimdall trades the swings using Bollinger Bands and RSI, entering at oversold/overbought extremes for high-probability reversals.
3. S2 (BREAKOUT MODE): When momentum explodes, Heimdall tracks the Donchian Channel, executing precision breakouts to capture massive trend expansions.
4. THREE-STAGE DD SHIELD (AEGIS): Continuously monitors your Drawdown and adjusts risk in real-time. STAGE 1 (Defensive): Risk reduced by 50%. STAGE 2 (High-Confidence): Risk reduced by 75%. STAGE 3 (Emergency Lock): Trading is completely halted. Your account is saved.
5. GHOST PROTOCOL V3 (STEALTH MODE): All Stop Loss, Take Profit, and Break-even levels are managed INTERNALLY. The broker sees no exit levels. This protects you from stop-hunting wicks and broker manipulation.
6. ROLLOVER & SPREAD SHIELD: Automatically blocks new trades during the highly illiquid 23:00–01:00 rollover period.
7. PRE-ROLLOVER CLOSE: Monitors running positions older than 4 hours, and if they are close to the Stop Loss before 23:30, it will safely close them before the massive midnight spread widening occurs.
8. PHANTOM RANDOMIZER: Introduces slight random execution delays in live environments to completely bypass Prop Firm algorithm detection systems.
=== OPTIMAL SETTINGS (BACKTEST RESULTS) ===
Backtested on XAUUSD (GOLD) H1, Jan 2025 - May 2026 (17 months), $1,000 initial deposit.
Best Configuration: AGGRESSIVE GROWTH
- Net Profit: $+1,727,189.41 (+172,718.9%)
- Timeframe: H1
- Asset: XAUUSD
=== GOD-TIER PRESETS ===
[SETUP 1] PROPFIRM SAFE (Conservative Prop Firm)
Ultra-safe preset designed to easily pass FTMO and FundedNext challenges.
- Risk Per Trade: 0.5%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 1.0x / ATR TP: 2.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 150 pts / Trail Step: 50 pts
- Randomizer: true / Rollover Shield: true
[SETUP 2] STANDARD BALANCED (Recommended - Best Risk/Reward)
The optimal balance between profit and safety for personal live accounts.
- Risk Per Trade: 1.5%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 1.5x / ATR TP: 3.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 200 pts / Trail Step: 80 pts
- Randomizer: true / Rollover Shield: true
[SETUP 3] AGGRESSIVE GROWTH (Aggressive Personal Account)
Maximum profit extraction for smaller accounts ($500 - $1000) aiming for compound growth.
- Risk Per Trade: 3.0%
- ADX Threshold: 25.0
- Ghost Mode: true / ATR SL: 2.0x / ATR TP: 5.0x
- DD Shield: 2.0% / 5.0% / 10.0%
- Trail Start: 300 pts / Trail Step: 100 pts
- Randomizer: true / Rollover Shield: true
=== INSTALLATION and SETUP ===
1. Open a Gold chart (XAUUSD, XAUUSD.m, or GOLD) in MetaTrader 5 on the H1 timeframe.
2. Drag and drop Xau Heimdall Dual Matrix onto the chart.
3. In the Inputs tab, under "=== GOD-TIER PRESETS ===", select your preferred preset from the dropdown menu.
4. Ensure "Allow Algo Trading" is checked.
5. Run on a VPS 24/5. Ghost Protocol requires the terminal to remain open continuously.
=== PARAMETER GUIDE ===
Heimdall Dual Engine:
- AdxPeriod & AdxThreshold: ADX settings to determine if the market is in Range (< 25) or Breakout (> 25).
- BbPeriod & BbDeviation: Bollinger Bands settings for Range Mode.
- DonchianPeriod: Breakout lookback period for Breakout Mode.
- RsiPeriod: RSI period used as an entry filter in both modes.
Rollover Shield:
- UseRolloverShield: Activates the pre-close and time-block logic.
- BlockHourStart/End: Broker server hours to block trading (default 23 to 1).
Ghost Protocol (V3):
- GhostMode: Hides SL/TP from the broker entirely.
- ATR_SL_Mult / ATR_TP_Mult: Dynamic Stop Loss and Take Profit multipliers based on ATR.
- TrailingStop / TrailStartPts / TrailStepPts: Controls dynamic trailing logic.
Aegis DD Shield & Prop Firm:
- RiskPerTrade: The base risk percentage for the first limit order.
- DD1/DD2/DD3: The drawdown percentages that trigger defensive protocols.
- UseRandomizer: Bypasses Prop Firm copy-trading detection.
=== IMPORTANT NOTES ===
- The premium on-chart HUD shows the active preset, ADX status (Range/Breakout), and DD Shield status in real-time.
- Ghost Protocol manages exits internally. You will NOT see SL/TP lines on your broker's chart.
- The EA handles "not enough money" margin checks automatically, preventing minimum volume errors in testing.
- For maximum aggressive yield, manual closing before weekend gaps is recommended, though the Rollover Shield handles daily overnight gaps automatically.
For support, custom presets, and institutional deployment inquiries, please contact
