MEAN REVERSION INDICATOR FOR METATRADER

Trade smarter: predictable mean reversion for consistent profits

Catch profitable reversals with a quant-driven indicator that capitalizes on price returning to the mean. This tool uses higher-timeframe moving averages and standard deviation bands to identify low-risk, high-probability countertrend trades—ideal for traders who favor precision and discipline over guesswork.

  • Quantitative approach to mean reversion trading
  • Clear, non-repainting buy and sell signals
  • Automatically calculates suitable stop-loss and take-profit levels
  • Trades only calm and predictable market conditions
  • Customizable trend source from higher timeframes
  • Built-in trade performance and expectancy statistics
  • Works across all asset classes: forex, indices, commodities, crypto
  • Multi-timeframe logic for advanced signal confirmation
  • Visual breakout zones and price bands on the chart
  • Alerts via email, sound, push, and visual notification

Screenshots

Description

This indicator takes a professional and quantitative approach to mean reversion trading. It is based on the idea that prices tend to move away from a central value (the mean) and then return to it in a predictable way. This behavior allows for clear rules to enter and exit trades, making this indicator more effective than many traditional trading methods.

  • Provides clear and easy-to-follow trading signals
  • Very simple to use
  • Customizable chart colors and line sizes
  • Shows performance statistics on the chart
  • Outperforms most common trading strategies
  • Displays suggested stop-loss and take-profit levels
  • Sends alerts by email, sound, push notification, or on-screen

Important: At the time of writing, MetaTrader 4 does not support multi-timeframe data in its tester. This means the indicator cannot be tested in the MT4 strategy tester.

How It Works

The indicator calculates a moving average from a higher timeframe and measures how far the current price moves away from it using standard deviation. Then, using a trend-following approach, it searches for trading opportunities when the price deviates from the mean. Trades are closed when the price returns to the typical price band around the higher-timeframe mean.

The indicator avoids high-volatility and strongly trending markets. It only trades when price movement is predictable and the chance of returning to the mean is high, based on a balance between volatility and direction.

Anatomy of the Indicator

  • The green line is the moving average from a higher timeframe (the mean).
  • The dotted area shows the normal price band around the moving average.
  • The blue line is the breakout level for bullish trades.
  • The red line is the breakout level for bearish trades.

Trades are opened when the price moves away from the mean and are closed when it comes back inside the typical band.

What to Trade

Mean reversion trading works in almost every market. You can use this indicator to trade:

  • Forex pairs
  • Stock indices
  • Precious metals
  • Commodities
  • Cryptocurrencies
  • Bonds

Recommended Timeframes

Use the following chart and higher-timeframe combinations for the best results. For example:

  • H4 chart with MN1 (monthly) moving average
  • H1 chart with W1 (weekly) moving average
  • M15 chart with D1 (daily) moving average
  • M1 chart with H4 (4-hour) moving average

Input Parameters

For a detailed description of all input parameters, please refer to the user documentation linked in the installation guide.

  • Timeframe - The timeframe from which the moving average (mean) is calculated. It must be a higher timeframe from the current chart.
  • Std. Dev Period -The standard deviation period to calculate the typical price band around the mean. 
  • Deviations - The multiplier of the typical price band. A higher value will create a wider price band and decrease the trading frequency. In some cases, it can make sense to decrease it, for instance, if you are trading long trades only against a moving average calculated using low prices only.
  • Delta - Represents the multiplier for the trend channel calculated from a higher timeframe. A lower value will increase the trading frequency.
  • Max History Bars - The amount of past bars analyzed when the indicator loads. A lower value will decrease the load time.
  • MA Period - The moving average period used to calculate the mean.
  • MA Applied Price - The price applied for the moving average.
  • MA Method - The moving average method used for the moving average.
  • MA Shift - The shift of the moving average used as a mean. 
  • Direction -This parameter allows you to find only long trades, short trades or both. This can be useful depending in your market analysis or the moving average applied price selected. For instance, you might trade buy only against a moving average calculated using low prices, or sell only against a moving average calculated using high prices only.
  • Stop-Loss -The indicator can plot an optional stop-loss, which can be "tight" or "normal". For mean reversion, stop-losses are usually not used and instead, losses are accepted when the price returns to the typical price band or the mean.
  • Take-Profit -The indicator plots a take-profit, which can be "small", "regular" or "large". Each represents a different price point of the typical price band.
  • Min Profit in Pips - The indicator will filter out any trades that offer a profit in pips below this value. Useful for trading small timeframes.
  • Time Filter - The indicator can filter out trades that have no or little chance of reverting to the mean during the next few bars. It does so by calculating the typical price movement per bar in the reference period. A higher value will produce more trades and a lower value will discard more trades. To disable this feature, enter "-1".
  • Range to Profit -The range to profit ratio compares the profit target of a a potential trade against the distante to the highest/lowest of the day. A higher value will produce less but more profitable trades. If the stop-loss feature is not in use, it makes sense to disable this filter by typing "-1" as its value.
  • Cash-in at period end -The indicator can close trades, at any profit, before the period ends. If enabled, this feature will decrease the variance in the trading results.
  • Draw Arrows - Enable or disable the signal arrows in the chart.
  • Draw SL/TP Levels - Display or hide the SL and TP levels in the chart.
  • Stats - Perform and fisplay self-analyzing statistics on the chart.
  • Draw History Arrows - Display tester-like entry-exit arrows in the chart. Visible only in bar charts.
  • Draw Trade Results - Display trade result in pips for all past signals.
  • Draw Entry-Exit Lines - Connect entry-exit points with lines, tester-like.
  • Alerts - Enable or disable alerts of all kinds.

Related Indicators & Bots

Frequently Asked Questions

The indicator does not backpaint. Repainting can occur only if the *MA Shift* parameter is set to 0, as the moving average is being calculated in real time and may slightly adjust as new price data comes in. However, if you set *MA Shift* to 1, the indicator will not repaint at all, making all signals fully stable.

To ensure high-quality signals, trade using a moving average from a higher timeframe. For example, trade an MN1 mean from the H4 chart, a W1 mean from the H1 chart, or a D1 mean from the M15 chart. These combinations strike a great balance between signal quality and trading frequency.

The indicator is designed to operate only in stable and predictable market conditions. Instruments with excessive volatility or persistent trends may show few or no signals. You can loosen these restrictions by adjusting or disabling the *Range to Profit* and *Time Filter* inputs if you want the indicator to be more permissive.

Yes. It includes full support for visual, sound, email, and push notifications. It alerts for both entry signals and trade exit conditions when the price returns to the mean.

Absolutely. You can select the moving average period, type (SMA, EMA, etc.), source price (close, open, etc.), and shift. These settings allow you to tailor the indicator’s core logic to fit your market, instrument, or strategy preferences.

Yes. The indicator performs well across various asset classes, including forex pairs, indices, commodities, precious metals, bonds, and cryptocurrencies. It is particularly effective in range-bound or mean-reverting environments.

Trade signals are generated when price action deviates significantly from the higher timeframe moving average and reaches a zone of statistical overextension, defined by the standard deviation band. The entry occurs when price breaks outside this band, and the exit is when it returns to the mean.

Each trade includes visual SL (stop-loss) and TP (take-profit) guidelines based on the breakout and mean levels. The indicator avoids choppy or highly directional markets by design, which lowers the risk of false signals.

While technically usable on any timeframe, signals from M1 or M5 charts may be noisy and sensitive to broker spreads or execution delays. It's recommended to use M15 and above for clearer trade setups.