Type/to search

RSI Indicator Based Reversal Strategy

Common strategy
Created: 2024-01-08 16:47:07
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy identifies reversal opportunities after overbought or oversold situations based on the RSI indicator. It will monitor the divergence between price and RSI after RSI enters overbought or oversold zones to determine potential future reversal chances.

Strategy Logic

This strategy uses the RSI indicator to determine the overbought and oversold situations in the market. After RSI enters a preset overbought or oversold zone, it will start monitoring reversal divergences.

Specifically, if RSI enters the overbought zone, it will monitor whether the price continues to rise (forming higher lows) while RSI forms lower lows - a regular bullish divergence; or the price forms lower lows and RSI forms higher lows – a hidden bullish divergence. Both situations signal potential downside reversals ahead.

Similarly, if RSI enters the oversold zone, it will monitor whether the price continues to fall (forming lower highs) while RSI forms higher highs – a regular bearish divergence; or the price forms higher highs and RSI forms lower highs – a hidden bearish divergence. Both situations also signal potential upside reversals ahead.

Once the above reversal signals are detected, long or short positions will be taken according to the configured parameters.

Advantages

The biggest advantage of this strategy is being able to identify extreme market situations where reversal probabilities are high and the profit margin for reversal operations is large. Compared to simple trend-following strategies, counter-trend strategies like this one have higher win rates and profitability.

In addition, the strategy incorporates monitoring for both regular and hidden divergences so that more reversal opportunities can be identified and good chances will not be missed due to one-off situations.

Risks

The biggest risk this strategy faces is even more extreme overbought or oversold situations, the so-called “straight up, 90 degrees down”. Continuing with long or short operations is more likely in such cases, and taking reversal action can easily result in stop loss.

Besides, if the parameters are not set properly and there are errors in judging overbought and oversold situations, mistakes can easily occur.

The way to handle this is to reasonably set the upper and lower limits for overbought and oversold zones to avoid overly extreme situations. Also scale down the position size in live trading to control the amount for a single stop loss.

Optimization Directions

The strategy can be optimized in the following aspects:

  1. Incorporate other indicators to determine overbought and oversold conditions to avoid relying solely on RSI

  2. Add logic to identify consolidation before breakouts when reversal probability is higher

  3. Optimize profit target settings after reversals to enable more scientific position sizing

  4. Use machine learning methods on recent years of historical data to automatically optimize parameters

  5. Improve stop loss logic optimization, e.g. timely profit taking, staggered stop loss, trailing stop loss etc.

Conclusion

In conclusion, this is a typical statistical arbitrage strategy. It tries to capture opportunities when the market rebounds from extreme situations back to equilibrium. Compared to trend-following strategies, it has higher win rates and profitability but also faces greater risks. With parameter optimization and risk control this type of strategies can profit steadily.

Source
Pine
/*backtest
start: 2023-01-01 00:00:00
end: 2024-01-07 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// made by Imal_Max 
// thanks to neo the crypto trader's idea
//
Strategy parameters
Strategy parameters
regular RSI settings
RSI Period
RSI Source
Pivot Lookback Right
Pivot Lookback Left
Max of Lookback Range
Min of Lookback Range
Plot Bullish
Plot Hidden Bullish
Plot Bearish
Plot Hidden Bearish
look for RSI divergence after OverBought/OverSold
OB RSI Value
OB lookback period
OS RSI Value
OS lookback period
min RSI for bear Alerts
max RSI for Bull Alerts
enable Backtester
to enable the Backtester, uncomment/comment the 🔥 lines in the source code
Long Backtester
enable Long Backtester (to disable uncheck 'plot Bullish' and 'plot hidden Bullish as well')
Stop Loss %
Take Profit %
Short Backtester
enable Short Backtester (to disable uncheck 'plot Bearish' and 'plot hidden Bearish as well'
Stop Loss %
Take Profit %
Backtesting range
Start Date
Start Month
Start Year
End Date
End Month
End Year
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)