Optimized RSI Strategy - Buy The Dips
Dec 10, 2020

The Optimized RSI Strategy - Buy The Dips tool provides a systematic approach to identifying oversold conditions in a trending market by combining the Relative Strength Index (RSI) with a Simple Moving Average (SMA).
Usage
The strategy is designed to enter long positions when the market exhibits specific "dip" characteristics. A buy signal is generated when the RSI falls below a specific threshold (default 35) while the price is simultaneously trading below a long-term Moving Average (default 100 periods). This dual-filter approach aims to ensure that entries occur during significant pullbacks rather than minor fluctuations.
Positions are closed when the RSI crosses back above a predefined exit level (default 65). This allows the strategy to capture the mean-reversion move as momentum shifts back to the upside. While optimized for 15-minute timeframes on cryptocurrency pairs, users can adjust the RSI exit values to suit different volatility profiles or to target larger profit margins.
Details
The strategy leverages two primary technical concepts:
- Mean Reversion: Using the RSI to identify when an asset is technically oversold.
- Trend Filtering: Using a Moving Average (MA) to contextualize price action. By requiring price to be below the MA for an entry, the strategy specifically targets deeper "dips" where the price has deviated significantly from its recent average.
The script includes built-in backtesting parameters, such as specific date ranges and commission settings (defaulted to 0.1% to reflect standard exchange fees), allowing for a more realistic assessment of historical performance.
Settings
- From Month/Day/Year: Sets the starting date for the strategy backtest.
- Thru Month/Day/Year: Sets the end date for the strategy backtest.
- Show Date Range: Toggles the visibility of the date range filter.
- RSI Entry: The oversold level (default 35) required to trigger a buy signal.
- RSI Close: The overbought level (default 65) required to exit a long position.
- MA Length: The lookback period for the Simple Moving Average filter (default 100).
FAQ
How do I use the RSI thresholds effectively?
The default entry (35) and exit (65) are optimized for specific market conditions. You can lower the entry threshold for more conservative entries or raise the exit threshold to try and capture longer trends.
What timeframes are best for this strategy?
While originally optimized for the 15-minute timeframe on crypto-assets, the logic can be applied to higher timeframes like the 1H or 4H for swing trading.
How do 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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.