Blog / Strategy
Strategy

Anchored Momentum Trend Shift

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 Anchored Momentum Trend Shift strategy is a trend-continuation trading system built around the Anchored Momentum oscillator, a lesser-known momentum tool developed by Rudy Stefenel. Momentum indicators measure how fast price is moving and in which direction. Where a classic momentum reading compares today's price to a single price a fixed number of bars ago, Anchored Momentum smooths both ends of that comparison — it divides a short exponential moving average (EMA) by a longer, centred simple moving average (SMA) and expresses the result as a percentage. This produces a steadier, near-zero-lag oscillator that is far less sensitive to a single noisy bar in the reference window.

Rather than trying to call tops and bottoms, this strategy is designed to trade the breather that happens inside an already-established trend. It looks for a shallow pullback in momentum that never fully reverses, then re-enters in the direction the trend is already travelling. In practical terms, it is a pullback continuation approach — it waits for a live trend, waits for a small dip, and joins the move as it resumes.

As an educational tool, this strategy suits traders who want to study how oscillators can be combined with a trend filter to time entries, and who are interested in the difference between trading a zero-line crossover (a reversal signal) versus trading a with-trend continuation. It was designed with liquid, trending markets in mind — such as major forex pairs, gold (XAUUSD), and stock indices — on intraday-to-swing timeframes. It is not intended as a "set and forget" money maker, and no strategy can promise favourable outcomes.

How It Works

The strategy processes each newly closed bar, calculates its indicators, and then checks whether a set of conditions line up. It manages any open position on every price tick. Here is the logic in plain English:

The core indicator — Anchored Momentum (AM):

Trend filter (the gate):

Long entry — the strategy signals a long when all of these are true:

Short entry — the exact mirror:

Because momentum never crosses zero, the entry is a continuation inside a live trend, not an attempt to catch a reversal. Deep pullbacks that puncture the zero line are deliberately rejected as possible regime changes, which filters for fewer, higher-quality re-entries.

Stop-loss logic:

Take-profit logic:

Trade management (designed to reduce drawdown):

anchored momentum MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
EmaPeriod 8 3 25 Fast EMA length used as the Anchored Momentum numerator (the "now" end).
MomentumPeriod 10 4 40 Anchor half-length; the anchored SMA length is 2×this+1 (always odd).
TrendPeriod 60 20 200 Length of the long trend EMA used as the directional filter.
SlopeBars 5 2 20 How many bars back the trend EMA is compared to, to judge its slope.
PullbackMax 0.15 0.02 0.60 Maximum allowed depth of the shallow AM pullback (in AM units).
AtrPeriod 14 5 40 Period for the ATR used in stop, target, and trailing calculations.
StopAtrMult 1.6 0.5 4.0 Stop-loss distance as a multiple of ATR.
RewardRisk 1.8 1.0 5.0 Take-profit distance as a multiple of the initial risk.
BreakevenR 1.0 0.3 2.0 Profit (in risk multiples) required before the stop moves to break-even.
TrailAtrMult 1.5 0.5 4.0 Trailing-stop distance as a multiple of ATR after break-even is reached.
MaxSpreadPoints 80 5 300 Maximum spread (in points) allowed for a new entry; a poor-conditions guard.
Lots 0.05 0.01 1.0 Fixed position size in lots.
anchored momentum MT5 EA — MQL5 source code

Recommended Chart Settings

This strategy was designed with liquid, trending markets in mind — major forex pairs (such as EUR/USD, GBP/USD, USD/JPY), gold (XAUUSD), and major stock indices. The intended timeframes are M15 through H4, which balance signal frequency against noise.

Nothing about the symbol or timeframe is hardcoded — the strategy reads everything from the chart's primary timeframe — so you are free to test it elsewhere. That said, momentum-continuation logic tends to struggle in choppy, directionless conditions, and results will vary considerably across different symbols, timeframes, and market regimes. Always study its behaviour on your chosen instrument before drawing conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths of this approach. By requiring an established trend and a momentum pullback that never crosses zero, the strategy filters out many low-quality signals. Trading the dip-and-resume within a trend — rather than a zero-line crossover — historically tends to avoid the whipsaws that reversal signals suffer near turning points. The break-even lock and ATR trail are engineered to protect capital and cap drawdown once a trade moves onside.

Known limitations. No indicator eliminates false signals. The Anchored Momentum oscillator, like all momentum tools, can produce shallow "valleys" during broad sideways ranges that look like pullbacks but never develop into real continuations. The trend filter reduces this but cannot remove it entirely. Because the strategy waits for confirmation (a turn in momentum plus a with-trend bar), entries arrive slightly after the exact pullback low — a deliberate trade-off of precision for reliability.

Where it may underperform. Range-bound, low-volatility, or news-driven erratic markets are the hardest environment for any trend-continuation system. Sharp V-shaped reversals may trigger the stop before the trail engages. Wide-spread symbols or illiquid sessions can also erode the modest edge the logic aims for, which is why the spread guard exists. Treat this EA as a framework for learning about momentum and trend filtering, not as a guaranteed outcome.

Risk Management Tips

Sound risk management matters more than any single entry signal. Consider these general principles:

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