Cmo Zone Chandelier Xauusd Ea
- Experts
- Versione: 1.0
- Attivazioni: 5
A single-strategy XAUUSD Expert Advisor for MetaTrader 5: CMO(14) zone-cross entries on H1 (beyond +50 / -50) with a Chandelier 3xATR trailing exit, no fixed take profit, and adjustable risk-per-trade position sizing.
CMO Zone Chandelier — XAUUSD Expert Advisor for MetaTrader 5
This EA runs one clearly defined gold strategy — nothing else is hidden inside it. It watches the Chande Momentum Oscillator (CMO) on H1 closes and trades only when momentum pushes into an extreme zone. Winners are managed by a Chandelier trailing stop that follows the trend, so a strong move can run while the stop only ever tightens. Attach it to a XAUUSD chart (M5 recommended — the timeframe used in testing); all calculations use closed H1 bars only — no repainting, no look-ahead.
How it trades
- The signal. CMO(14) is calculated from H1 closes. When CMO crosses up through +50, momentum has entered the bullish extreme zone and the EA buys. When CMO crosses down through -50, it sells. Crossings that stay inside the -50...+50 band are ignored — the EA does nothing most of the time, by design.
- The entry. A market order is sent on the first tick of the new H1 bar after the signal bar closes. The initial stop loss is 4.50 price units from the fill price ($4.50 on gold). There is no fixed take profit.
- The exit. After every H1 close while a position is open, the Chandelier level is recalculated: for a long position, the highest H1 high since entry minus 3 x ATR(14); for a short, the lowest H1 low since entry plus 3 x ATR(14). The stop moves to that level only if it tightens the existing stop — it never moves backwards. The trailing state is rebuilt from the position itself on every bar, so an EA or terminal restart does not lose track of an open trade.
- One position at a time. The EA never holds more than one position. There is no martingale, no grid, and no averaging down.
Position sizing — two modes
- RISK (default): every trade risks a fixed percentage of your balance. InpRiskPercent defaults to 2.0% and can be set to any value you prefer; the lot is calculated from the 4.50 initial stop distance and rounded down to the broker's volume step. Please read the minimum-lot note below — on small balances it changes your real risk.
- FIXED: one constant lot size (InpFixedLot, default 0.01) for every trade.
An optional maximum-lot cap (InpMaxLot) is available in both modes.
The minimum-lot note (important on small accounts)
If the calculated lot is below your broker's minimum (usually 0.01), the EA uses the minimum lot and logs a warning — it does not skip the trade. That means your effective risk is higher than the percentage you set. Concretely, with the 4.50 stop: on a $100 balance the 2% calculation gives 0.0044 lots, so the EA trades 0.01 lots and the real risk is $4.50 per trade = 4.5% of the balance, not 2%. On a $500 balance the calculated lot is 0.02 and the effective risk is approx. 1.8-2% as intended.
All inputs
- InpEnableTrading (true) — master switch for new entries
- InpLotMode (RISK) — RISK percent or FIXED lot sizing
- InpRiskPercent (2.0) — risk per trade, % of balance [RISK mode]
- InpFixedLot (0.01) — constant lot [FIXED mode]
- InpMaxLot (0 = no cap)
- InpMinEquity (3.0) and InpSLBuffer (0.60) — the EA only places a trade when the account balance/equity can carry the trade's stop risk plus this buffer
- InpCMOPeriod (14), InpZone (50.0), InpInitialSL (4.50), InpATRPeriod (14), InpChandelierMult (3.0) — the strategy parameters, with the tested values as defaults
- InpAllowedLogin (0 = any account) and InpRequireDemo (false) — optional safety lock: restrict the EA to one account login and/or demo accounts only
- InpMagic (270364)
Before any order is sent, the EA checks the required margin with OrderCalcMargin and verifies the stop-loss geometry against the live tick (stop distance, stops/freeze levels, correct side of the price); a placement that fails a check is skipped silently instead of being rejected by the server. The EA uses no DLLs and makes no external calls.
Requirements
- MetaTrader 5 with Algo Trading enabled; attach to a XAUUSD chart (any suffix), M5 recommended
- Works on hedging or netting accounts — the EA holds at most one position at a time
- A VPS is recommended so the EA runs uninterrupted
- Capital (tested at 1:100 leverage — because the EA never holds more than one position, margin is not the binding constraint; the risk math is):
$500 — recommended. This is the balance at which the 2% risk sizing works as designed (starting lot 0.02).
$100 — minimum tested. Both test windows finished positive at $100, but the path was rough (see disclosure) and the effective risk is 4.5% per trade because of the minimum-lot clamp described above.
Below $100 — not tested and not supported.
Backtest disclosure — please read before buying
The figures below come from the MetaTrader 5 Strategy Tester using the 1-minute OHLC model (not real ticks), default inputs, RISK mode at 2%, on a 1:100-leverage test account. Real-tick and live results will differ.
Test window | Deposit | Net result | Profit factor | Trades | Win rate | Lowest balance
Full year 2025 | $500 | +$608.29 | 1.35 | 198 | 19.2% | $432.11
Full year 2025 | $100 | +$329.49 | 1.47 | 198 | 19.2% | $59.12
August-November 2026 | $500 | +$249.79 | 1.37 | 71 | 14.1% | never below the $500 deposit
August-November 2026 | $100 | +$173.11 | 1.63 | 71 | 14.1% | never below the $100 deposit
What these numbers mean — and what they do not hide:
- This is a low-win-rate strategy by design. Only 14-19% of trades won. The profit comes from a small number of long Chandelier runners that outweigh many small 4.50 stop-outs. Maximum equity drawdown across the runs was 33-56% — deep drawdowns are part of this strategy's character, including at $500.
- In 2025, all of the net profit came from long trades (long PF 2.13 at $500; the short side lost money, PF 0.55). 2025 was a strong uptrend year for gold, which flatters the long side. In the August-November 2026 window both directions were profitable (long PF 1.31, short PF 1.42 at $500), but that window is shorter and younger (71 trades).
- The $100 runs are not "2% risk" runs. The lot is clamped to the 0.01 minimum, so the effective risk is 4.5% per trade; the 2025 $100 run fell to $59.12 (-40.9% from the deposit) before recovering. $100 is a tested minimum, not a recommendation.
- Because lot size grows with the balance in RISK mode, the dollar profits of long tester runs compound and are not a realistic expectation; profit factor and win rate are the meaningful figures.
- A handful of signals (6 of 204 in 2025, none in the 2026 window) fell exactly on the daily market break and were not executed in the tester; the same can happen live. No order in any run was rejected for margin or invalid stops.
Past performance does not guarantee future results. Gold trading on margin carries a substantial risk of loss. Never trade with money you cannot afford to lose. This EA is a tool that executes the strategy described above — it does not promise profit.
Version 1.00. Support via the product comments.
