KingBacchusIII
- Experts
- Version: 8.0
- Activations: 5
KingBacchusIII — Trend Breakout System V7 The most complete gold Expert Advisor on the market. Adaptive logic. Professional risk management.
What is KingBacchusIII?
KingBacchusIII is a trend Expert Advisor for MetaTrader 4 designed to trade highly volatile markets, with a special focus on the XAUUSD (Gold) pair. It combines a multifactor signal scoring system, stacked quality filters, and active position management that protects capital while letting profits run.
It is not a grid EA, does not use martingale, and does not expose the account to unlimited risks. Every trade has Stop Loss, Take Profit, and trailing defined from the opening.
Signal Scoring System (0–100 pts)
Before opening any position, the EA evaluates 4 market dimensions and combines them into a total score:
-
Trend strength: distance to EMA 200, directional consistency in 5 bars, and EMA slope (max. 25 pts)
-
Momentum score: RSI in optimal zone according to direction and RSI slope alignment vs price (max. 25 pts)
-
Volatility score: current ATR ratio vs 10-period average ATR — neither too quiet nor too explosive (max. 25 pts)
-
Confluence: high volume, confirmed band breakout, and favorable candlestick pattern (max. 25 pts)
Only when the score exceeds the configured threshold (default 50/100) does the EA consider opening a trade. This threshold automatically adjusts based on historical success in the current market context.
Two Entry Modes
-
Breakout Mode — enters when price closes above the upper band (long) or below the lower band (short), confirming breakout with volume and minimum score. Ideal in high-volatility sessions such as London open or macro data releases.
-
Pullback Mode — enters when price retraces toward EMA 200 within a configurable ATR zone and bounces in favor of the trend. More selective, with better risk/reward ratio in trending markets.
8 Stacked Quality Filters
Each signal must pass all active filters before execution:
-
Time filter — trades only within configured time window
-
Spread filter — rejects entries when spread exceeds maximum defined
-
ATR volatility filter — avoids overly quiet or explosive markets
-
RSI momentum filter — checks RSI is in favorable zone according to direction
-
ADX filter — confirms presence of real trend (not sideways range)
-
Multi-timeframe filter — verifies trend alignment on H1 using independent EMA
-
Market context filter — classifies market into 5 contexts and activates/discards entries accordingly
-
Circuit breaker — suspends trading if triggered by consecutive losses or daily drawdown
Active Position Management
Once a trade is opened, the EA actively manages each ticket:
-
Structural or ATR Stop Loss: SL calculated using opposite band level as natural support/resistance, fallback to ATR × multiplier if structural level invalid.
-
Partial Take Profit: closes configurable percentage (default 50%) at first RR target, securing gains without closing entire trade.
-
Automatic Break-even: moves SL to entry price +1 point when price reaches minimum RR, eliminating risk in advancing trades.
-
ATR Trailing Stop: follows price at ATR × multiplier distance. Can activate from opening or only after break-even. TP shifts same distance as SL when trailing advances, preserving original RR.
Intelligent Circuit Breaker
Automatic pause system protects the account against losing streaks or unexpected macro events:
-
Pause after consecutive losses: stops if max configured losses reached
-
Pause after daily drawdown: compares current balance with day’s starting balance, stops if drop exceeds max percentage defined
-
Automatic reset at start of next day
Real-Time Information Panel
Directly on the chart, the EA displays:
-
Current trend direction (bullish / bearish / undefined) with color indicator
-
Current signal score out of 100
-
Status of each filter (OK / active / out of range)
-
Classified market context
-
Number of open positions
-
Circuit breaker status
-
Trading on/off button without parameter modification
Separate performance panel shows balance, equity, max drawdown, win rate, profit factor, and expectancy updated every minute.
Adaptive Learning System
The EA records signal patterns grouped by market context, entry mode, time of day, and score range. After enough history, it adjusts minimum score threshold based on real performance:
-
Contexts with win rate < 35% → threshold rises 15 points (more selective)
-
Contexts with win rate ≥ 60% → threshold drops 10 points (more active)
This mechanism improves selectivity over time without manual re-optimization.
Backtesting & Export Module
-
Out-of-sample (OOS) period support with configurable dates
-
Automatic CSV export of all trades after backtest
-
Separate in-sample vs out-of-sample metrics
-
Custom fitness function combining profit factor, win rate, drawdown, and Sharpe ratio for Strategy Tester optimization
Recommended Parameters for XAUUSD
| Parameter | Recommended Value |
|---|---|
| InpMaxSpread | 35–50 points |
| InpMinATR | 0.50 |
| InpMaxATR | 5.00 |
| InpStartHour | 8 |
| InpEndHour | 20 |
| InpEntryMode | PULLBACK in trend / BREAKOUT in macro data |
| InpATR_SL_Multiplier | 2.0 |
| InpATR_TP_Multiplier | 4.0 |
Technical Requirements
-
Platform: MetaTrader 4
-
Recommended pair: XAUUSD (also compatible with EURUSD, GBPUSD, USDJPY, NAS100)
-
Operating timeframe: M15, M30, or H1
-
Minimum recommended balance: $500 (fixed lot 0.01) / $2000 (adaptive risk management)
-
Account type: any standard or ECN account with normal gold spread
Trade gold intelligently Compatible with MetaTrader 4. Simple installation, flexible parameterization, results from the very first backtest.
