Blog / Strategy
Strategy

Quartile Skew Reversion

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?

Quartile Skew Reversion is a mean-reversion trading strategy built around Bowley (quartile) skewness — a robust, outlier-resistant measure of how lopsided a distribution is. Instead of asking only "how far has price stretched from fair value?", this strategy also asks "what kind of move produced that stretch?" It combines that skewness reading with an EMA baseline (Exponential Moving Average — a moving average that weights recent prices more heavily), an ATR filter (Average True Range — a common gauge of volatility), and a flat-market regime check. The result is a fading system that only looks to trade against overextended moves it judges to be fragile.

The core idea is that not every stretch away from a baseline deserves to be faded. A large move can be durable — created by broad participation, where many bars each push a little in the same direction — or fragile, where a handful of oversized spike bars did nearly all the work while the rest of the window drifted. Durable moves tend to keep going; fragile ones tend to snap back. Bowley skewness, because it is computed from quartiles rather than from squared deviations, can flag the presence of a few spike bars without being distorted by them. That is exactly the property a spike-detector needs.

This strategy is best understood as a learning tool for traders who want to study distribution-shape analysis, volatility-normalized entries, and regime filtering. It is designed for range-bound, non-trending conditions, and it deliberately stands aside when the market is trending. If you are exploring how statistical properties of returns — beyond simple price levels — can be used to filter trade signals, this is an instructive example. It is not a shortcut, and like any mean-reversion approach it carries the inherent risk of a genuine breakout running against a faded position.

How It Works

The strategy evaluates the market once per freshly closed bar and requires three independent conditions to align before it acts. All calculations use the primary chart symbol and timeframe.

When these align, the strategy signals a trade:

Exit, stop-loss, and take-profit logic:

quartile skew reversion MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
ReturnWindow 24 8 60 Number of close-to-close returns used to estimate the quartile-skew (fragility) reading.
EmaPeriod 30 10 100 Period of the EMA baseline that price reverts toward — also used as the take-profit level.
AtrPeriod 14 5 30 Period of the ATR volatility measure used for the stretch, slope normalization, and stop.
EntryStretch 2.0 1.0 4.0 ATR multiples price must be stretched from the baseline before a fade is considered.
SkewThreshold 0.25 0.0 0.8 Minimum absolute Bowley skew (fragility) required, in the same direction as the stretch.
SlopeGuard 1.0 0.3 3.0 Maximum absolute baseline slope (normalized by ATR) that still counts as a flat, fade-able regime.
SlopeLookback 20 5 60 Number of bars over which the baseline slope is measured.
StopAtr 1.5 0.5 4.0 Protective stop-loss distance beyond the entry extreme, in ATR multiples.
Lots 0.10 0.01 1.0 Position size in lots.
quartile skew reversion MT5 EA — MQL5 source code

Recommended Chart Settings

This strategy is a single-timeframe system and operates entirely on the chart's primary symbol and timeframe. Because it is a mean-reversion approach that thrives in range-bound conditions, it is generally most instructive on major forex pairs — instruments such as EUR/USD or GBP/USD that frequently oscillate within ranges — on intraday timeframes like the M15, M30, or H1 charts, where enough bars accumulate to make the quartile-skew estimate meaningful.

That said, the "best" chart is something you should study for yourself rather than assume. The default parameters were chosen as a balanced starting point, not an optimized configuration. Different symbols, timeframes, and volatility environments will produce very different behavior, and a setup that looks stable in one market condition may struggle in another. Treat any single chart setting as a hypothesis to test on a demo account, not a fixed rule.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like every strategy, Quartile Skew Reversion has clear strengths and equally clear limitations, and understanding both is the point of studying it.

Strengths of this approach:

Known limitations:

This is a tool for learning how distribution shape, volatility, and regime filtering interact — not a set-and-forget solution. Study its behavior, understand why each condition exists, and test it thoroughly before drawing any conclusions.

Risk Management Tips

Sound risk management matters far more than any single entry signal. Whatever strategy you study, keep these general principles in mind:

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