Blog / Strategy
Strategy

Camarilla Pivot 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?

The Camarilla Pivot Reversion strategy is an intraday mean-reversion system built around the classic Camarilla pivot points — a set of price levels calculated once per day from the previous session's high, low, and close. Mean reversion is the idea that, on a typical range-bound day, price tends to drift back toward a central "fair value" after stretching too far in either direction. This strategy uses the Camarilla ladder to define exactly where "too far" is and where that central magnet sits.

Camarilla pivots produce a symmetrical ladder of levels above and below a central pivot (labelled H4/H3 above and L3/L4 below). The H3 and L3 rails are the reversal levels where price often stalls and turns on a normal, non-trending day, while the wider H4 and L4 rails mark the point at which the reversion idea is considered to have failed — a possible breakout day. The strategy watches for price to reach a reversal rail, reject it, and close back inside the band, then trades the bounce back toward the central pivot.

This EA is designed as a learning tool for traders who want to study how pivot-based reversion behaves in practice. It suits anyone curious about session-based level trading, non-repainting daily levels, and the discipline of structural take-profits paired with volatility-based stops. It is framed here as a strategy analysis — a way to understand a well-documented market behaviour — not as a profit opportunity.

How It Works

Each new calendar day, the strategy rebuilds its Camarilla ladder from the day that just closed and then holds those levels static for the whole session, so the levels never repaint. The previous day's OHLC is reconstructed directly from the primary-timeframe bars by detecting the calendar-day rollover, meaning the strategy stays single-timeframe compliant and never peeks at a higher chart.

The level math (where range = H − L of the prior day and f is the tunable range factor) is:

The strategy signals a LONG when:

The strategy signals a SHORT when:

Exit and filter logic:

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

Strategy Parameters

Parameter Default Min Max Description
RangeFactor 1.10 0.80 1.40 Camarilla range factor (textbook value 1.1). Widens or narrows the entire ladder of levels.
ZoneFrac 0.08 0.01 0.30 How close, as a fraction of the prior day's range, the candle's extreme must come to L3/H3 to count as a "touch."
AtrPeriod 14 5 50 ATR lookback period used to size the stop buffer beyond the L4/H4 rail.
StopBufferAtr 0.60 0.00 3.00 Stop buffer beyond the L4/H4 rail, expressed in ATR multiples.
MinRewardRisk 0.80 0.30 3.00 Minimum acceptable reward:risk ratio (distance to P divided by distance to stop).
MaxSpreadPoints 100 5 300 Skip new entries when the current spread (in points) is wider than this.
Lots 0.10 0.01 1.00 Order volume in lots.
Magic 7731 0 9,999,999 Expert magic number used to identify and manage this EA's positions.
Camarilla pivot reversion MT5 EA — MQL5 source code

Recommended Chart Settings

This strategy was designed for a liquid FX major — such as EURUSD or GBPUSD — on the M15 (15-minute) timeframe. This is the textbook home of intraday Camarilla reversion, where daily ranges are well defined and price frequently oscillates inside the H3/L3 band. Because the strategy reconstructs the prior day's OHLC from the primary chart, you should run it on the timeframe you intend to test rather than switching between charts.

Keep in mind that results will vary considerably across different symbols, brokers, spreads, and market conditions. A pair or period that behaves in a range-bound way during one stretch may trend strongly in another, which directly affects how this reversion logic performs.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths of the approach. The Camarilla ladder is computed once and frozen for the session, so the levels are non-repainting and easy to audit — what you see on the chart is what the strategy traded against. The logic is structurally clean: a clearly defined entry trigger, a structural take-profit at the central pivot, and a volatility-aware stop beyond the failure rail. The built-in reward:risk filter and spread guard add a layer of trade selectivity that many beginner systems lack.

Known limitations. Mean-reversion strategies are, by design, most comfortable on quiet, range-bound days and can struggle badly during strong trends or high-impact news. When a genuine breakout day occurs, price can blow straight through the H3/L3 rails and reach the H4/L4 stop rails, producing a losing trade — this is the inherent trade-off of any reversion approach. The strategy also takes only one position at a time per symbol, so it may sit idle during periods it deems unqualified. Because the take-profit is a fixed structural level rather than a trailing exit, favourable moves beyond the pivot are not captured.

Where it may underperform. Expect weaker behaviour during trending sessions, around major economic releases, at session opens with gaps, and on instruments or brokers with wide or erratic spreads. The MaxSpreadPoints filter helps, but no filter fully removes event risk. Treat this EA as a study of how pivot reversion behaves rather than a set-and-forget system.

Risk Management Tips

Sound risk management matters more than any single entry rule. 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