Blog / Strategy
Strategy

Triple Advance Pullback

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Triple Advance Pullback strategy is a selective, trend-continuation system built around the classic Three White Soldiers and Three Black Crows candlestick patterns, filtered through an Exponential Moving Average (EMA) trend baseline and an Average True Range (ATR) volatility measure. An EMA is a moving average that gives more weight to recent prices, so it tracks the trend closely; ATR measures how much price typically moves in a bar, giving a sense of current volatility. Together they let the strategy judge both the direction and the health of a move before it acts.

What makes this approach distinctive is when it enters. A naïve trader might see three strong candles in a row and immediately chase the third one — usually the worst possible spot, because the move is already extended and the stop-loss has to sit far away. Triple Advance Pullback does the opposite. A clean, non-climactic three-candle march simply arms a setup. The strategy then waits patiently for the first shallow pullback (a brief dip against the trend) and enters only when price reclaims the prior bar's extreme. This is the point where risk is smallest and the odds of the trend resuming are historically most favourable.

As a learning tool, this strategy is well suited to traders who want to study disciplined trend-following and structural risk placement rather than pattern-chasing. It is designed for markets that produce clean, orderly trends — such as major FX pairs, metals, and index CFDs on intraday-to-swing timeframes. Because it demands strict, multi-condition confirmation, it trades infrequently, which makes it a useful case study in patience and quality-over-quantity signal filtering.

How It Works

The strategy operates in two stages — first it arms a setup after a valid advance, then it triggers an entry on the pullback. All logic runs on a single, user-selected timeframe.

Stage 1 — Arming a healthy advance (the strategy signals a valid setup when):

Stage 2 — The pullback and reclaim entry (the strategy signals an entry when):

Stop-loss logic: The stop is placed structurally, just beyond the shallow pullback extreme plus a small ATR buffer. If the resulting risk is larger than StopAtrMult × ATR, the setup is rejected as too loose — this keeps risk per trade tightly controlled.

Take-profit logic: The target is a fixed reward-to-risk multiple (RewardRatio) of that small structural stop distance, so a winner is sized relative to the risk taken.

Trade management: Once price advances BreakevenAtr × ATR in favour, the stop ratchets to breakeven and then trails TrailAtr × ATR behind price, checked on every tick. Only one position per magic number is held at a time.

Triple Advance Pullback MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
TrendEmaPeriod 50 20 150 EMA period defining the trend baseline; longs only above a rising EMA, shorts below a falling one.
MinBodyFraction 0.55 0.40 0.80 Minimum body size as a fraction of each candle's range, ensuring conviction candles.
MinAdvanceAtr 1.0 0.50 3.00 The three-candle span must be at least this multiple of ATR to count as significant.
MaxExtensionAtr 3.0 1.50 6.00 Rejects over-extension: the close must be within this ATR multiple of the EMA.
MaxPullbackBars 3 1 8 How many bars the pullback may take before the armed setup goes stale.
PullbackFraction 0.55 0.30 0.80 Maximum fraction of the advance the pullback may retrace before the setup is voided.
AtrPeriod 14 7 40 ATR length used for significance, extension, stops, targets, and trailing.
StopAtrMult 1.2 0.60 3.00 Maximum allowed structural risk as an ATR multiple; looser setups are skipped.
RewardRatio 2.0 1.00 4.00 Take-profit distance as a multiple of the structural stop distance.
BreakevenAtr 0.8 0.30 2.50 Move the stop to breakeven once price advances this many ATRs in favour.
TrailAtr 1.5 0.50 4.00 After breakeven, trail the stop this many ATRs behind price.
Lots 0.10 0.01 1.00 Fixed position size in lots.
Triple Advance Pullback MT5 EA — MQL5 source code

Recommended Chart Settings

Triple Advance Pullback was designed with clean intraday and swing trends in mind. Suitable candidates include EURUSD, XAUUSD (gold), and US30 (Dow index CFD) on timeframes from M15 to H4. The timeframe is never hardcoded — the strategy runs on whatever timeframe you attach it to — so you are free to test other markets and periods. Keep in mind that trend character varies greatly across symbols and timeframes, and results will differ across changing market conditions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths. The strategy's core edge is discipline. By refusing to chase the third candle and instead buying a shallow, confirmed pullback, it places its stop close to structure — which keeps individual losses small and improves the reward-to-risk profile. The breakeven-and-trail management aims to protect open profit so a winner is less likely to collapse into a loss. Its many filters make it highly selective, which can reduce the number of low-quality trades.

Limitations. Candlestick clusters like Three White Soldiers are well documented but are not predictive certainties — they simply describe momentum that may or may not continue. Because the strategy insists on a specific advance-then-shallow-pullback sequence, it will miss trends that run without pausing, and it can be whipsawed when a promising advance rolls straight into a reversal. In choppy, sideways, or low-volatility markets, valid setups may be rare or may fail repeatedly as price oscillates around the EMA. News-driven spikes can also blow past a tight structural stop.

Where it may underperform. Ranging conditions, erratic gaps, and very high-volatility regimes all reduce the reliability of orderly candlestick marches. Treat this EA as a framework for studying trend-continuation logic — not as a set-and-forget solution.

Risk Management Tips

Sound risk management matters far more than any single entry signal. Consider these general principles as you study this strategy:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog