Mishy Gold Prime Bot
- Uzmanlar
- Sürüm: 2.0
- Etkinleştirmeler: 5
# Mishy Gold Prime Bot v2.0
### Institutional-Grade XAUUSD Expert Advisor | H1 | SMC + BOS + CHoCH + Liquidity Sweep
---
## Overview
Mishy Gold Prime Bot v2.0 is a fully automated Expert Advisor engineered exclusively for **XAUUSD (Gold) on the H1 timeframe**. Built on Smart Money Concepts (SMC), it combines **Break of Structure (BOS)**, **Change of Character (CHoCH)**, **Liquidity Sweep detection**, and **Asian Session Range Breakout** into a single high-confluence trading engine.
Unlike generic trend-following EAs, Mishy Gold Prime Bot v2.0 thinks the way institutional traders do — identifying where smart money has placed orders, confirming structural shifts in the market, and entering only when multiple independent factors align. It also knows when to **exit early** — a smart retracement exit system locks in profits the moment momentum shows signs of fading, rather than giving everything back waiting for a fixed TP.
This EA was built for **funded account traders, prop firm evaluations, and live accounts** where capital preservation is as important as profitability.
---
## Strategy Logic
### 1. Asian Session Range Engine
The EA marks the high and low of the Asian session (00:00 – 06:00 server time) every day. These levels act as the primary reference zone — breakouts above or below them signal the start of the London/New York directional move. Trading only begins after the Asian session closes, during the highest-liquidity windows of the trading day.
### 2. Break of Structure (BOS)
A BOS is confirmed when price closes decisively above a validated swing high (bullish BOS) or below a validated swing low (bearish BOS), with a minimum pip threshold and multi-candle confirmation. BOS is the primary entry trigger and carries the highest weight in the confluence scoring system.
### 3. Change of Character (CHoCH)
A CHoCH is detected when the market was making Lower Highs / Lower Lows and suddenly breaks above the most recent Lower High — or vice versa for bearish setups. CHoCH signals a structural regime change before BOS is fully formed, giving the EA an early edge on reversals and trend shifts.
### 4. Liquidity Sweep Detection
The EA monitors for stop hunts — situations where price wicks below a swing low (or above a swing high) and then closes back through the level. These sweeps indicate smart money has absorbed liquidity and is likely to drive price in the opposite direction. A sweep followed by BOS or CHoCH is one of the most powerful setups in Gold trading.
### 5. Score-Based Confluence Entry System
No single signal opens a trade. Every entry is scored across **7 independent factors**:
| Factor | Weight |
|---|---|
| Macro Bias (EMA50 + EMA200) | 1 point |
| Break of Structure (BOS) | 2 points |
| Change of Character (CHoCH) | 2 points |
| Liquidity Sweep | 1 point |
| Asian Range Breakout | 1 point |
| Strong Candle Confirmation | 1 point |
| Market Structure (HH/HL or LH/LL) | 1 point |
**Minimum score of 4 required to enter.** This eliminates low-quality setups and keeps the EA selective and precise.
### 6. Kill Zone Timing
Entries are restricted to **London Open (07:00–10:00)** and **New York Open (13:00–16:00)** — the two windows with the highest Gold volatility and institutional participation. Trades are never opened during dead sessions.
---
## Trade Management
### Dynamic Risk-Based Position Sizing
Lot size is calculated live from account balance, risk percentage, and the actual stop loss distance using broker tick values — no hardcoded pip values, fully compatible with all XAUUSD pricing models (2-digit and 3-digit).
### Technical Stop Loss Placement
Stop losses are placed below the nearest confirmed swing low (for buys) or above the nearest swing high (for sells), with a small ATR-based buffer added for noise protection. The Asian session levels serve as a secondary anchor.
### R-Multiple Trade Management
| Milestone | Action |
|---|---|
| 1R profit | Move stop loss to breakeven |
| 1.5R profit | Activate trailing stop (trails by 1R) |
| 2R profit | Partial close (50% of position, configurable) |
| 5.7R profit | Final take profit hit |
### Smart Retracement Exit System
After minimum profit is achieved (default 1R), the EA monitors for **5 independent early exit signals**:
1. **EMA Cross** — Price closes against the fast EMA (21-period)
2. **Reversal Candle** — Shooting star, bearish engulfing, hammer, or bullish engulfing detected
3. **Opposite BOS** — A new BOS fires against the open position
4. **Opposite CHoCH** — Structure changes against the trade
5. **Peak Retrace** — Price gives back more than 30% of the highest profit reached
This system ensures the EA **never hands back significant gains** while still allowing trades room to breathe in early stages.
---
## Risk Control
| Protection | Setting |
|---|---|
| Daily Drawdown Lockout | 10% (configurable) |
| Consecutive Loss Lockout | 3 losses (configurable) |
| Maximum Open Positions | 2 |
| Spread Filter | Configurable max spread |
| Slippage Control | Configurable max slippage |
| Friday Filter | No new trades after 18:00 Friday |
| Holiday Filter | Major market holidays excluded |
When any lockout is triggered, the EA halts new entries for the rest of the trading day and resets automatically the following day.
---
## Broker Compatibility
- ✅ All MT5 brokers
- ✅ 2-digit XAUUSD pricing (e.g. 2345.12)
- ✅ 3-digit XAUUSD pricing (e.g. 2345.123)
- ✅ ECN / STP / Market execution
- ✅ Instant execution
- ✅ Funded account / Prop firm brokers (FTMO, MFF, The5ers, etc.)
- ✅ No fixed pip values — all calculations derived from live symbol properties
Supported symbols: **XAUUSD, XAUUSDm, XAUUSD.a, GOLD**
---
## On-Chart Dashboard
A live dashboard displays all key information at a glance:
- EA Status (ENABLED / DISABLED)
- Account Balance & Equity
- Daily P/L and Drawdown %
- Open Positions
- Consecutive Loss Counter
- Win Rate & Profit Factor
- Current Spread
- Trend (Bullish Strong / Bullish Weak / Bearish Strong / Bearish Weak)
- Last BOS Direction
- Last CHoCH Direction
- Kill Zone Status
- Asian High & Asian Low
Status displays in **green when trading is active** and **red when locked out**.
---
## Professional Features
- **Trade Recovery** — On terminal restart, all EA-managed positions are fully recovered with their breakeven, trailing, and partial close states reconstructed
- **Magic Number Isolation** — All trades are tagged and isolated by configurable magic number, safe to run alongside other EAs
- **Full Trade Logging** — Every trade written to a CSV file: direction, reason, lots, entry, SL, TP, risk value, and P/L
- **Error Handling** — Handles requotes, invalid stops, off quotes, trade context busy, and connection loss with retry logic
- **Strategy Tester Compatible** — All parameters fully optimizable in the MT5 Strategy Tester
---
## Input Parameters
### Risk Settings
| Parameter | Default | Description |
|---|---|---|
| RiskPercent | 1.0 | Risk per trade as % of balance |
| MaxDailyDrawdownPercent | 10.0 | Daily equity drawdown limit |
| MaxConsecutiveLosses | 3 | Consecutive losses before lockout |
### Strategy Settings
| Parameter | Default | Description |
|---|---|---|
| EMAPeriod | 50 | EMA50 trend filter period |
| EMA200Period | 200 | EMA200 macro bias period |
| AsianStartHour | 0 | Asian session start (server time) |
| AsianEndHour | 6 | Asian session end (server time) |
| SwingLookback | 20 | Bars to scan for swing points |
| BOSConfirmBars | 2 | Candles needed to confirm BOS |
| MinBOSPips | 5.0 | Minimum BOS breakout size |
| RRMultiple | 5.7 | Final take profit in R |
| PartialCloseR | 2.0 | R level for partial close |
| PartialClosePercent | 50.0 | % to close at partial TP |
### Retracement Exit Settings
| Parameter | Default | Description |
|---|---|---|
| UseRetracementExit | true | Enable smart early exit |
| RetracementR | 1.0 | Min R profit before exit active |
| RetracementEMAPeriod | 21 | Fast EMA for retracement detection |
| UseCandlePatternExit | true | Exit on reversal candle patterns |
| UseStructureBreakExit | true | Exit on opposing BOS/CHoCH |
### Session Filters
| Parameter | Default | Description |
|---|---|---|
| UseKillZones | true | Restrict entries to kill zones |
| LondonOpenHour | 7 | London kill zone start |
| LondonCloseHour | 10 | London kill zone end |
| NYOpenHour | 13 | New York kill zone start |
| NYCloseHour | 16 | New York kill zone end |
| FridayCloseHour | 18 | No new entries after this on Fridays |
| UseHolidayFilter | true | Skip major market holidays |
---
## What Makes This EA Different
Most Gold EAs on the MQL5 Market use simple crossover signals or fixed ATR multipliers and call it a strategy. Mishy Gold Prime Bot v2.0 is built on how **price actually moves** — through liquidity raids, structural shifts, and institutional order flow.
- It does not trade every candle. It waits for the **right conditions**.
- It does not hold losers. It exits with discipline the moment structure changes against it.
- It does not use martingale, grid, hedging grids, lot multiplication, or any form of recovery system.
- Every single trade is **sized by risk**, **placed by structure**, and **managed by R-multiples**.
---
## Important Notes
- Designed for **H1 timeframe only**. The EA will reject any other timeframe.
- Designed for **XAUUSD only**. The EA will reject any other symbol.
- Recommended minimum account balance: **$500** (for proper lot sizing with 1% risk)
- Recommended VPS for uninterrupted operation
- Backtest thoroughly and forward test on a demo account before live deployment
- Past performance does not guarantee future results
---
*No martingale. No grid. No averaging. No recovery. Pure structure-based trading.*
**Mishy Gold Prime Bot v2.0 — Trade with institutional logic. Exit with precision.**

