Phonix Recovery EA
- 专家
- Muh Gigih Alambara
- 版本: 1.34
- 更新: 30 十二月 2025
- 激活: 5
Contact : manunderfire2000 -> gmail.com
Telegram Chanel : @PhonixRecovery
Intelligent Expert Advisor for XAUUSD (Gold) — Ichimoku + Trend-Based Recovery
MT5 XAUUSD Martingale H1 Hedging
📄 What Does This EA Do?
Phonix Recovery is a fully automated Expert Advisor that enters trades using Ichimoku signals. Its most important feature is the Recovery System: when the market moves against the initial trade, instead of closing at a loss, it places a pending order in the trend direction to recover the position.
Key principle: All hedges (recovery orders) are placed in the same direction as the prevailing trend — never against it. This ensures new trades accumulate on the winning side of the market, making recovery faster and safer.
✅ Unique Feature: All exit mechanisms are designed so that account balance never decreases. Positions are only closed when the basket's net profit is positive (including commissions and swaps).
🎯 Entry Signal
Ichimoku M5 with M15 trend confirmation and ADX strength filter to ensure entries align with market momentum.
🔄 Trend-Priority Recovery
Hedges (compensating orders) are placed in the same direction as the trend — not against it — so new trades accumulate on the winning side.
💰 Capital Protection
Partial Cover only activates when net basket profit is positive. Basket TP, Trailing Stop, and Global TP all protect profits — no loss crystallization.
📝 Full Commission & Swap Accounting
All P&L calculations include commission for opening/closing trades and overnight swap. No hidden costs will surprise you.
🛡 Support & Resistance Guard
Automatic S/R level detection using pivot points — limits same-direction trades near key levels to prevent dangerous accumulation.
📊 Smart Risk Management
Spread limit, trade rate limit, one trade per candle, 60% margin usage cap, and automatic pause at 30% drawdown.
📈 On-Chart Dashboard
Real-time dashboard showing trend, signal, position count, P&L, S/R levels, drawdown, and manual control buttons. S/R lines drawn directly on chart.
⚙ Profit-Funded Partial Cover
Closes losing positions ONLY using profits from winning positions. Your account balance is never deducted for covering losses.
⚙ Configuration Guide
💡 Quick Start: A ready-to-use XAUUSD_defaults.set preset file is included. Click Load when attaching the EA to a chart and select this file. All parameters are pre-configured for XAUUSD with built-in optimization ranges.
Important parameters you should know:
Group Key Parameters Description
① Core InpMagicNumber Unique identifier for this EA instance. Use a different number per chart if running multiple instances.
② Feature Toggles InpEnableRecovery
InpEnablePartialCover
InpEnableBasketTP Auto recovery / Safe partial cover / Basket take profit. Keep all at true.
③ Entry Signal InpEntryTF = M5
InpEntryUseTKCross = true Signal timeframe (recommended M5). Tenkan/Kijun cross for greater precision.
④ Trend Filter InpTrendTF = M15
InpTrendUseCloud = true Trend filter timeframe (recommended M15). Cloud filter to ensure trend strength.
⑤ ADX Filter InpADXMin = 18 Minimum ADX strength. Below 18 means no strong trend — EA will not enter.
⑥ Position Sizing InpLotStart = 0.01
InpRecoveryMultiplier = 1.5
InpMaxRecoveryCycles = 8 Starting lot × 1.5cycle. Max 8 cycles → final lot ≈ 0.26. Hedge lot capped at 1.0.
⑦ Zone InpATRMultiplier = 1.2
InpZoneMinOverridePips = 35 Hedge distance based on ATR. Minimum 35 pips from current price.
⑧ S/R Guard InpSRMaxPerSide = 2 Max 2 same-direction trades near S/R. After that, hedges are placed outside the band.
⑨ Risk InpMaxSpreadPoints = 250
InpMaxAccountDDPercent = 30 Max spread 250 points. New entries blocked above 30% drawdown.
⑩ Profit Management InpBasketTPMoney = 25
InpTrailingArmMoney = 30
InpTrailingGivebackMoney = 10 Close basket at $25 profit. Trailing activates at $30 with $10 giveback.
⑪ Partial Cover InpPCMinPositions = 2
InpPCMinSecBetweenRuns = 30 Minimum 2 positions to activate. Checks every 30 seconds. Only closes at net profit.
⑫ Pending Management InpPendingTrendStrict = true
InpRecoveryPendingAlignTrend = true Pending orders strictly aligned with trend. Hedges follow trend direction for optimal recovery.
⑬ Dashboard Style InpDashCorner = 1 Dashboard position. Corner 1 = top-right (live trading). Choose corner 2 = bottom-left as alternative.
📊 Chart Visualization
When InpDrawSRLines = true, the EA draws solid Support and Resistance lines directly on your chart with precise price labels. A shaded Guard Band rectangle between S/R levels shows the lock zone — it turns orange-red when locked (max positions reached) and stays dark gray when open.
🛠 Low Risk Preset for $10,000
The file PhonixRecovery_v3_10K_LowRisk_XAUUSD.set provides a ready-to-use configuration with these settings:
Starting Lot: 0.01 (very conservative for a 10K account)
Martingale Multiplier: 1.5 (gentle volume increase per recovery cycle)
Maximum Cycles: 8 (maximum lot ≈ 0.26)
Basket TP: $25
Trailing: Activates at $30, giveback $10
Maximum Drawdown: 30% (new entries blocked above this)
⚠ Important: Backtesting vs. Live Trading
⚠ CRITICAL FOR BACKTESTING: You MUST disable the Dashboard and S/R lines when running backtests / optimization in the Strategy Tester!
Set these to false:
InpShowDashboard = false
InpShowManualButtons = false
InpDrawSRLines = false
Why: Graphical objects (dashboard panels, lines, rectangles) significantly slow down the Strategy Tester and distort backtest speed measurements. Always turn them off before running any test or optimization. Turn them back on for live/demo trading to monitor your EA.
⚠ Important Notes Before Use
☠ High Risk: This EA uses a Martingale strategy. Losses can grow exponentially. Past performance does not guarantee future results.
✅ Works only on Hedging accounts (not Netting)
✅ Recommended leverage: 1:100 or higher
✅ Always test on a Demo account first
✅ Use a unique Magic Number per chart
✅ Recommended minimum balance: $1,000 (with 0.01 lot)
✅ Symbol: XAUUSD (Gold)
✅ Timeframe: M5 (5 minutes)
✅ Broker with low spread and low commission strongly recommended
💻 Installation
Copy the PhonixRecoveryV3/ folder into MQL5/Experts/
In MetaEditor (F4), open PhonixRecovery_v3.mq5 and press F7 (Compile)
Drag the EA from the Navigator onto an XAUUSD M5 chart
Click Load → select the .set file you want
Enable Allow Algo Trading
🔍 Strategy Overview
Entry Logic
The EA scans M5 Ichimoku signals (Tenkan/Kijun cross, Cloud position) with M15 trend confirmation and ADX ≥ 18 strength. Only trades in the trend direction are opened.
Recovery Logic (v3.07 Trend-Priority)
When price moves against an open position by the ATR-based zone distance, a pending stop order is placed in the trend direction. This means recovery orders follow the dominant market flow. Each cycle increases volume by the multiplier (default 1.5×).
Exit Logic
Basket TP: Closes ALL positions when combined profit ≥ $25
Basket Trailing: Trails basket profit with activation at $30 and $10 giveback
Global TP: Optional absolute profit target (default: off)
Partial Cover: Closes losers using winner profits only — NO balance deduction
Risk Controls
Spread > 250 points → no new trades
Account DD > 30% → no new entries
Max 4 trades per minute
One trade per candle (M5)
Margin usage capped at 60%
Max 8 recovery cycles
Max 2 same-side positions near S/R
💰 Included Preset Files
File Usage
XAUUSD_defaults.set Default preset with optimization ranges for Strategy Tester. Load this first.
PhonixRecovery_v3_10K_LowRisk_XAUUSD.set Low-risk configuration optimized for $10,000 accounts.
📜 Technical Specifications
Version 3.07
Platform MetaTrader 5
Symbol XAUUSD
Timeframe M5 (entry) / M15 (trend) / H1 (ADX)
Account Type Hedging ONLY
Strategy Ichimoku + Trend-Priority Martingale Recovery
Stop Loss None (managed via recovery + profit exits)
Min. Balance $1,000 (recommended)
Phonix Recovery v3.07 · MQL5 MetaTrader 5 · Use at your own risk · No profit guarantees
