All indicators

DRM Strategy

Dec 31, 2022

Static chart image
SignalsOscillators

The DRM Strategy indicator is a trading tool that utilizes a Relative Strength Index (RSI) with a dynamic length calculated based on the correlation between price and its momentum. This approach aims to adapt the indicator's sensitivity to market conditions by varying the lookback period between user-defined minimum and maximum values.

Usage

The DRM Strategy is primarily used to identify potential mean-reversion opportunities through overbought and oversold levels. When the RSI crosses above the oversold level, a long entry is triggered, and when it crosses below the overbought level, a short entry is triggered.

Users can observe how the dynamic length reacts to market correlation:

  • High Correlation: When the correlation between price and momentum is close to 1, the RSI length moves toward the minimum value, making the indicator more reactive.
  • Low Correlation: When the correlation is close to -1, the RSI length moves toward the maximum value, resulting in a smoother, less sensitive output.

Details

The core concept of this script is based on research by Sofien Kaabar regarding dynamic period indicators. Instead of a fixed parameter, the RSI length is calculated using the following logic:

  1. Momentum Calculation: The difference between the current source price and the price n bars ago.
  2. Correlation: A Pearson correlation is calculated between the source price and the momentum value.
  3. Dynamic Mapping: The correlation value (ranging from -1 to 1) is mapped to the range between the "Min RSI" and "Max RSI" settings.

The strategy uses a custom RSI function based on the Running Moving Average (RMA) to ensure consistent calculations regardless of the dynamic length changes.

Settings

Dynamic RSI Momentum

  • Momentum Length: The lookback period used for calculating momentum and the correlation between price and momentum.
  • Source: The price data used for all calculations (default is Close).
  • Min RSI: The minimum possible length for the dynamic RSI.
  • Max RSI: The maximum possible length for the dynamic RSI.
  • OverBought: The threshold level (typically 70) above which the asset is considered overbought.
  • OverSold: The threshold level (typically 30) below which the asset is considered oversold.

FAQ

How do I interpret the dynamic length?

The indicator automatically adjusts its period based on the relationship between price and momentum. A shorter period (Min RSI) occurs during high positive correlation, while a longer period (Max RSI) occurs during high negative correlation.

Can I use this for different timeframes?

Yes, the DRM Strategy can be applied to any timeframe, though users should adjust the Momentum Length and RSI boundaries to suit the volatility of the specific instrument.

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.