MTA SessionBreakout Gold EA
- Uzmanlar
- Sürüm: 1.40
- Etkinleştirmeler: 10
MTA SessionBreakout Gold EA is a multi-engine breakout Expert Advisor built specifically for Gold (XAUUSD) on the H1 timeframe. It combines a trend-filtered swing channel engine with a session opening range breakout engine, locking in partial profits while trailing runners with an opening-R ATR stop.
HOW THE STRATEGY WORKS
Gold alternates between extended directional trends and wide, direction-changing ranges. Standard breakout systems get whipsawed during choppy periods. This robot solves that with two independent engines running together in Portfolio Mode on a single XAUUSD chart:
1. Swing Channel Engine (55/20 on H1)
- Enters on a confirmed close beyond the 55-bar high or low.
- Filtered by ADX(14) trend strength, +DI / -DI directional agreement, H1 EMA(200) slope, and D1 EMA(50) regime alignment to avoid false breakouts during sideways chop.
2. Session Opening Range Breakout (ORB) Engine
- Captures volatility expansion out of key session ranges with an independent magic number and fixed 1.6R target so it never interferes with swing trades.
3. Optional Momentum Continuation Engine (20/10 on H1)
- Disabled by default for smoother drawdown; can be enabled in the inputs as a higher-frequency mode when ADX >= 28.
TRADE MANAGEMENT & PARTIAL PROFIT LOCKING
- Hard Stop Loss & Take Profit: Every order is placed with an ATR-based stop loss from creation (no grid, no martingale, no averaging down).
- Partial Close + Breakeven: By default, 50% of the position is closed at +1.5R to bank realized profit, and the stop loss moves to breakeven plus a small buffer.
- Opening-R ATR Trailing Stop: The remaining 50% trails behind price using a 2.0x ATR stop anchored to the original opening risk unit, preventing premature stop-outs after breakeven.
RISK & PORTFOLIO CONTROLS
- Percentage Risk Sizing: Calculates lot size from account balance and actual stop distance, with automatic minimum-lot (0.01) fallback for smaller accounts.
- Portfolio Open Risk Cap: Sums live stop-loss risk across all active positions of the EA (excluding trades already at or past breakeven) and blocks new entries if total exposure exceeds the configured cap (2.0% default).
- Additional Protections: Dynamic ATR-relative spread filter, daily loss limit, maximum concurrent positions cap, and a hard equity drawdown brake.
- Broker Agnostic: All distances use ATR or R-multiples, working out of the box on both 2-digit and 3-digit XAUUSD brokers.
RECOMMENDED SETUP
- Symbol: XAUUSD (or your broker's Gold symbol)
- Chart Timeframe: Any (the robot internally evaluates H1 signals via InpWorkTF = H1)
- Recommended Deposit: 1,000 USD or higher for proportional 0.65% risk sizing. Deposits of 500 USD are supported via 0.01 minimum-lot fallback (resulting in higher percentage drawdown).
VALIDATION SUMMARY (BACKTEST, NOT A PROMISE)
Model: XAUUSD H1, 500 USD starting deposit, 1:500 leverage, M1 OHLC, spread from history, default inputs (v1.40):
- 2024.01.01 to 2025.01.01:
206 trades | Net Profit: +85.61 USD | Profit Factor: 1.17 | Max Balance DD: 17.89% | Net Profit excluding single largest win: +45.23 USD
- 2025.01.01 to 2026.01.01:
157 trades | Net Profit: +310.83 USD | Profit Factor: 1.56 | Max Balance DD: 17.75% | Net Profit excluding single largest win: +222.04 USD
Note on Drawdown & Deposit Size: On a 500 USD test balance, a 0.65% risk budget ($3.25) is smaller than the dollar risk of a 0.01 minimum lot on Gold (~$4–$6), so every trade executes at 0.01 lots. On accounts of 1,000 USD or more, percentage risk sizing scales proportionally and reduces relative drawdown.
Past performance and Strategy Tester backtests do not guarantee future results. Always forward-test on a demo account before trading live.
TECHNICAL NOTES
- Contains no DLL imports, no WebRequests, no external file I/O, and no broker or account restrictions.
- Passes Strategy Tester verification with zero journal errors.
*******************************************************
*******************************************************
QUICK START & USER GUIDE — MTA SESSIONBREAKOUT GOLD EA (v1.40)
1. INSTALLATION & CHART SETUP
- Open a single XAUUSD chart (or your broker's Gold symbol name, e.g., XAUUSD.m / GOLD).
- Attach the EA to the chart and enable Algo Trading in MetaTrader 5.
- Note: The EA evaluates H1 bars internally (InpWorkTF = H1), so you only need to attach it to ONE chart.
2. 2-DIGIT VS. 3-DIGIT GOLD BROKERS
- No point-value retuning is required. Every stop loss, trailing step, and spread guard is calculated automatically using ATR(14) and R-multiples, making the default inputs compatible with both 2-digit (e.g., 2650.50) and 3-digit (e.g., 2650.500) XAUUSD feeds.
3. ACCOUNT SIZE & RISK SCALING ($500 VS. $1,000+)
- Recommended Balance: $1,000+ USD allows proportional 0.65% risk sizing (InpRiskPercent = 0.65) so lot sizes scale dynamically with stop distance.
- Smaller Accounts ($500 USD): Supported via automatic 0.01 minimum-lot fallback. Note that on a $500 balance, a 0.01 lot stop on Gold represents ~$4–$6 risk (~0.8%–1.2% per trade), which produces higher percentage drawdown than on a $1,000+ account.
4. PORTFOLIO MODE & OPTIONAL FAST ENGINE (InpUseFast)
- Default Mode (MODE_PORTFOLIO): Runs the 55/20 Swing Channel Engine (ADX-filtered) alongside the Session Opening Range Breakout (ORB) Engine using independent magic numbers and a shared 2.0% Portfolio Open Risk Cap (InpMaxPortfolioRiskPct).
- Optional Momentum Continuation Engine (InpUseFast): Disabled by default for smoother drawdown. Enable it only if you want higher trade frequency during strong ADX >= 28 trends.
5. TESTING IN STRATEGY TESTER
- Always test using M1 OHLC or Real Ticks with spread from history.
- Run the EA on a demo account with your live broker first to verify execution and spread conditions before trading live funds.
