King of Gold Ucb Agent
- Experts
- Version: 1.40
- Updated: 16 November 2026
- Activations: 5
King of Gold – Adaptive Bandit Expert Advisor Fully automated
Free trial 48hours https://kingofgoldpepito.com/
King of Gold is a self-learning Expert Advisor with more than 6 bandits, built for XAUUSD. It can also be attached to crypto, index, stock or forex charts. It doesn’t follow one fixed rule set. It uses several contextual multi-armed bandits that learn from every closed trade which entries, sizing and execution work best in each market context, and it keeps adjusting as conditions change.
Trade with the King, follow the King. Its limit orders are very precise, so they will show you the market direction.
The King is built at a professional level. In backtesting it trains its skills and transfers the data to trading by itself.
The King trades the symbol and timeframe of the chart it is attached to.
Status panel
The agent says in the status panel what the EA is doing: thinking, building a setup, managing trades, victory, regrouping, resting.
- Entry explanation. The agent says in the panel why it entered the market: a market order now, or a limit order waiting at a volume zone. It also shows the score, volume, order book, market type, profile and lot size.
- Five named agents with live thinking:
- King: memory and learning layers, risk mode, win rate, sessions.
- Scout: the entry rule, setups, and why it skips.
- Sizer: lot size and the size options.
- Zoner: volume zones and waiting limit orders.
- Guard: drawdown, margin, spread, news, recovery mode.
How it works
- Execution bandit. It chooses between a market order and a limit order placed at a volume-profile liquidity zone.
- Profile bandit. It chooses a short-term, normal or long-term TP/SL profile.
- Additional bandits for timeframe alignment (M1–H4), candle patterns and multi-timeframe confluence.
- Persistent memory. Everything learned is saved to a file and restored after a restart.
- All bandits work together under the King’s leadership, and they are fast.
Risk and trade management
- Fixed lot or risk-% position sizing
- Stop Loss and Take Profit on every trade
- Basket auto-close at a profit target, with optional trailing close
- Daily profit target and daily loss limit, with optional trailing giveback protection
- Optional trailing stop, breakeven and adaptive stop loss. These stay active outside trading hours.
- Recovery mode, safe mode for small balances, and a cooldown after losses
- Trading hours, trading days and spread filter
- Order-flow protection: closes a profitable basket when incoming volume turns strongly against it
Market context
- Smart entry engine: volume-profile liquidity zones are used to place limit orders.
- The King sees all the symbols in your Market Watch and analyses them, but it trades only on the chart you attach it to.
- All 6 King bandits work together, gathering data for precise entries.
- Multi-timeframe analysis: the profile bandit knows where the market is going and whether it is changing.
- Internal memory of which session, hour and minute are the best to trade.
- Order book (DOM) signals on brokers that provide market depth, with automatic fallback to volume profile otherwise
- Economic calendar awareness: upcoming high-impact news and released-news bias
- London / New York session performance tracking
Alerts
- Telegram notifications for entries, closes, risk events, news and sessions
- Add your bot token and your chat ID in the settings. Also go to Tools → Options → Expert Advisors, enable WebRequest and add https://api.telegram.org
- Optional sound alerts
- On-chart status panel and periodic learning telemetry in the Journal
Recommendations
- An ECN / raw-spread account is recommended for XAUUSD.
- Start on a demo account and let the EA build its learning history before trading live.
- Test the settings in the Strategy Tester on your broker’s data.
Risk warning
Trading gold, CFDs, cryptocurrencies, indices and stocks carries a high level of risk and may not be suitable for all investors. You may lose more than your initial deposit. Past performance, including backtests, does not guarantee future results. Always use proper risk management.
Support
Please use the MQL5 comments section or MQL5 private messages for support.


Very good EA Very good EA, it works great with the new updates. It took a little time to understand it and figure out the best settings but now it work very well, bot in backtest and on demo account. Also on live and funded. I reccomend it! Also the dev