All indicators

Mean Reversion Strategy

Dec 5, 2019

Static chart image
Volume BasedSignalsMoving Averages

The Mean Reversion Strategy indicator identifies potential long opportunities by detecting price dips where the current price significantly deviates from its moving average.

Usage

The strategy is designed to enter long positions when the market is considered oversold based on a specific rate of change threshold. A long signal is generated when:

  • The smoothed rate of change begins to trend upward from a low point.
  • The previous value of the smoothed rate of change is below a user-defined "Drop Rate."
  • Current volume is greater than the previous bar's volume.

Positions are closed when the smoothed rate of change returns above zero and volume begins to decrease, signaling that the mean reversion move may be losing momentum. While versatile, this strategy is specifically optimized for high-volatility assets like BTC/USDT on the 4-hour timeframe.

Details

The script calculates the percentage rate of change for each bar and applies a Simple Moving Average (SMA) to smooth the results. This smoothed value represents the momentum relative to the mean. By requiring the value to drop below a specific "Drop Rate" before looking for a reversal, the strategy ensures it only acts on significant price extensions. The inclusion of volume analysis helps confirm the strength of the reversal before entry and the exhaustion of the move before exit.

Settings

  • SMA Period: Determines the number of bars used to calculate the Simple Moving Average of the rate of change. Lower values make the indicator more reactive, while higher values provide more smoothing.
  • Drop Rate: Sets the threshold for how far the smoothed rate of change must fall before a long entry is considered. This represents the "depth" of the dip required.

FAQ

How do I use the Mean Reversion Strategy?

You can apply the script to your chart and adjust the SMA Period and Drop Rate to match the volatility of the asset you are trading.

What timeframes work best?

The strategy was originally designed for the 4-hour timeframe, but it can be adapted to other intervals by fine-tuning the input parameters.

How can I access this tool?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.