EZQUANTGold CFD Quant Strategy Library
BreakoutPivot breakout + pullbackMT5Balanced

两仪 Liang Yi

Trend-following pivot breakout, with an optional pullback engine

Instrument: XAUUSD (gold)
Timeframe: M1, always-on (signals on D1/H4/H1, secondary engine on M15)
Suggested minimum capital: $2,000+
Suggested leverage: 1:100 or higher (hedging account)

Historical performance

Instrument XAUUSDStarting capital $1,000Starting lot size 0.01
Cumulative net profit+$7,9223 periods combined
Cumulative return+792.2%Net profit ÷ starting capital
Max equity drawdown30.0%Highest across periods
Profit factor1.80Average across periods · 3,882 trades
Return vs. max drawdown by periodReturnMax equity drawdown
Full year 2024
+200.9%DD 22.6%
Full year 2025
+291.8%DD 25.8%
YTD 2026
+299.5%DD 30.0%
PeriodNet profitReturnMax equity drawdownProfit factorTrades
Full year 2024+$2,009+200.9%22.6%1.571,673
Full year 2025+$2,918+291.8%25.8%1.651,461
YTD 2026+$2,995+299.5%30.0%2.18748

The figures above are historical performance statistics, not a live trading record; past performance does not indicate future results. Return = net profit ÷ starting capital, not compounded, and excludes deposits/withdrawals. Max equity drawdown is the largest decline in account equity (including open floating loss), not just closed-trade drawdown. Ask us for a demo account to see live results.

Overview

Liang Yi is a dual-engine programmatic strategy for XAUUSD (gold), built around trend-following pivot breakouts: it enters in the direction of confirmed breaks of recent swing highs/lows, and never averages against the trend and never martingales. The main engine runs several sub-strategies in parallel, each opening and stopping out independently without interfering with one another; exits are layered — a break-even trailing stop locks in profit first, then structure-based trailing stops and trailing targets take over, balancing noise tolerance with protecting realized gains.

Liang Yi also has an optional second engine, a supplementary oversold-pullback signal, disabled by default and switchable on depending on the account's risk appetite. The EA also includes automatic filtering around major economic releases to reduce slippage and abnormal-volatility risk during news events.

Key features

Pivot trend breakout

Uses recent swing highs/lows as reference points and enters with pending orders once a close confirms the break — no chasing candles.

Parallel sub-strategies

The main engine runs several parameter variants at once, each opening and stopping out independently, spreading reliance across multiple trigger conditions rather than one signal.

No counter-trend averaging, no martingale

Every trade is an independent position with an independent hard stop — no averaging down, no doubling up; risk never scales with floating loss.

Layered exits protect gains

Break-even move, structure-based trailing stop, and trailing target hand off in sequence to progressively lock in realized profit.

Optional second engine

A built-in oversold-pullback signal as a supplementary engine, off by default, switchable based on risk appetite, and does not affect the main engine.

Automatic news filter

New orders automatically pause around CPI, PPI, NFP, retail sales, FOMC and other major releases to reduce the impact of abnormal news volatility.

Entry logic

The main engine continuously scans each sub-strategy's signal conditions on the always-on M1 cycle, using recent pivot highs/lows as the reference. Once price breaks and a close confirms it, the EA enters with a pending order in trend direction; any pending order that doesn't fill within its validity window is auto-cancelled rather than sitting on the book as accumulating risk. The sub-strategies use different parameters (different signal timeframes and breakout conditions), judge independently, and don't share positions or stops.

The second engine (off by default) is an oversold-pullback signal: it identifies a structural rebound after an oversold reading via momentum indicators and follows through in trend direction — a different trigger mechanism from the main engine's breakout logic, meant to add opportunities during ranging or pullback phases.

EngineTriggerStatus
Main engineBreak of pivot high/low, pending order on close confirmationOn by default
Second engine (optional)Oversold pullback, trend-following follow-throughOff by default, switchable

Position management

Liang Yi never averages against the trend and never martingales. Every trade opens independently with an independent hard stop — position size never adjusts based on floating loss. Because the main engine runs multiple sub-strategies in parallel, the account may hold several independent positions at once (each with its own stop) — this is a deliberate result of spreading across multiple trigger conditions for broader signal coverage, not averaging down. If enabled, the second engine trades with its own independent position and stop, sharing no risk exposure with the main engine.

ItemDescription
ScalingNone (no counter-trend averaging, no martingale)
Concurrent positionsThe main engine's sub-strategies can each hold an independent position at the same time
Stop-lossIndependent hard stop per trade — risk never grows with floating loss

Exit and risk-control priority

Exits are handled in layers, locking in floating profit first, then handing off to structural protection:

PriorityMechanismDescription
1Break-even moveOnce floating profit hits a set ratio, the stop moves to near cost — locking in a scratch trade at worst
2Structure-based trailing stopTightens the stop dynamically based on price structure (highs/lows), following the trend to protect realized floating gains
3Trailing targetMoves the take-profit target up as the trend continues in your favor
4Fixed stop-loss / take-profitFallback exit if none of the above trigger

The EA also automatically pauses new entries before Friday's close and around CPI, PPI, NFP, retail sales, FOMC and other major data releases, to reduce risk from abnormal volatility and slippage during news events.

Risk tier and capital guidance

Liang Yi is rated Balanced (r2): every trade carries an independent hard stop with no counter-trend averaging or martingale, so per-trade risk is contained; but because multiple sub-strategies can be in the market simultaneously, account-level exposure scales with how many positions are open at once, giving it higher volatility and drawdown than a single-position strategy — hence it isn't classed as the most conservative tier.

Risk tierSuggested min. capitalSuggested leverageExpected max drawdown range
Balanced (r2)$1,000+1:100 or higherDepends on parameters; see the "Historical performance" section above for tested figures

Who it's for

System requirements

ItemRequirement
PlatformMT5
Account typeHedging account
InstrumentXAUUSD (gold)
Attach toM1 (internal signal timeframes are handled per sub-strategy)
VPSRecommended, for stable 24-hour operation

Usage notes

Liang Yi's main engine runs multiple sub-strategies in parallel, so the account may hold several independent positions at once — assess your risk tolerance against total account exposure, not a single position.
The second engine is off by default. If you enable it, evaluate your account's overall risk tolerance first — we don't recommend turning it on without understanding its trigger logic.
Past performance does not indicate future results. Gold CFDs are volatile — size positions to your own capital and risk tolerance.

Want to see it running live?

Message us on Telegram, or WeChat ezmoney50 and mention "Liang Yi" — we'll set you up with a read-only MT4/MT5 demo account and walk you through licensing. Partners get their own pricing.

Chat on Telegram
← Back to strategy library
Ask our AI on Telegram