Blog / Strategy
Strategy

Fractal Adaptive Trend Glide

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?

Fractal Adaptive Trend Glide is a trend-following expert advisor (EA) built around John Ehlers' Fractal Adaptive Moving Average (FRAMA) — a moving average whose smoothing speed changes automatically based on how "trendy" or "choppy" recent price action has been. Instead of using a fixed period like a simple or exponential moving average, FRAMA measures the fractal dimension of the recent High/Low price path and uses that number to decide how quickly the line should react to price. This makes it an adaptive trend-following approach rather than a static one.

The core idea behind the fractal dimension is intuitive once you see it. A price path that moves in a straight, one-directional line barely fills the space around it, giving a dimension close to 1.0. A jagged, sideways market that zig-zags back and forth fills much more of that space, pushing the dimension toward 2.0. Fractal Adaptive Trend Glide uses this single measurement to do two jobs at once: it speeds the FRAMA line up during trends so it hugs price, and it slows the line down during chop so it flattens out and ignores noise. That flattening is important — it is precisely the ranging conditions where ordinary moving-average crossover systems tend to generate the most false signals.

As a learning tool, this strategy is well suited to traders who want to understand adaptive indicators, regime filtering, and how a single statistical measure can control both a signal line and a trade filter. It is designed for trending conditions on liquid instruments, and it is best studied on a demo account where you can watch the FRAMA line react to changing market behavior in real time. It is not a shortcut of any kind — it is a structured framework for exploring how fractal-geometry concepts can be applied to price data.

How It Works

The strategy processes only completed bars (it acts once per closed candle, never on the still-forming one), and it keeps a rolling history of highs, lows, closes, and FRAMA values to compute its signals incrementally.

Building the adaptive line:

Entry conditions — the strategy signals a LONG when, on the just-closed bar:

A SHORT is the exact mirror: the close crosses down through FRAMA, FRAMA is falling over the slope window, and the same dimension gate must be satisfied.

Position and risk logic:

Because stops scale with volatility, the strategy automatically gives trades more room in fast markets and tightens them in quiet ones, rather than using a fixed pip distance.

Fractal Adaptive Moving Average EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
FramaPeriod 16 8 40 Length of the FRAMA and fractal-dimension window (forced to an even number, minimum 4). Larger values smooth more slowly; smaller values react faster.
SlopeLookback 3 1 10 How many bars back the FRAMA slope is measured over to confirm the adaptive trend direction.
MaxDimension 1.60 1.30 1.90 The regime gate — trades are only allowed when the fractal dimension D is at or below this value (lower means a stricter "trending only" filter).
AtrPeriod 14 7 28 Number of bars used to calculate the ATR for the volatility-based risk model.
AtrSlMult 2.0 1.0 4.0 Stop-loss distance as a multiple of ATR. Higher values give trades more breathing room.
AtrTpMult 3.2 1.0 6.0 Take-profit distance as a multiple of ATR. Together with the stop multiplier this sets the reward-to-risk ratio.
Lots 0.10 0.01 1.0 Fixed trade size in lots. Should be adjusted to match your account size and risk tolerance.
Fractal Adaptive Moving Average EA — MQL5 source code

Recommended Chart Settings

Fractal Adaptive Trend Glide was conceived for trending FX pairs, metals, and index charts on intermediate timeframes — roughly M15 through H4. The M15–H4 range tends to offer a balance between having enough directional movement for the FRAMA line to lock onto and avoiding the noise-heavy behavior of very fast charts.

Importantly, the strategy is single-timeframe and never hardcodes a timeframe — it runs on whatever timeframe the chart or backtest selects. This makes it a flexible platform for experimentation: you can test the same logic across several timeframes and symbols to see how the fractal dimension and adaptive smoothing respond to different market characters. Keep in mind that results will vary considerably across different instruments and market conditions, and a setting that behaves well on one symbol may behave very differently on another.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy has a shape — conditions it is built for and conditions it struggles in. Understanding both is part of using any tool responsibly.

Strengths of this approach:

Known limitations:

This is a framework for study and refinement, not a finished, hands-off system. Its behavior should be observed and understood before any consideration of live use.

Risk Management Tips

Sound risk management matters far more than any single indicator setting. Whatever strategy you study, these principles apply:

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