The Relative Strength Index Flat Reversal Strategy is a quantitative investment strategy that uses the RSI indicator to identify overbought and oversold signals. This strategy makes long and short reversals based on the oversold and overbought zones of the RSI indicator by opening positions when the RSI enters the extreme zone and closing positions when the RSI exits the extreme zone.
This strategy uses a 14-period RSI indicator. The overbought zone is defined as above 70 and the oversold zone is defined as below 30. It goes long when the RSI crosses above 30 from below and goes short when the RSI crosses below 70 from above. After opening the position, it keeps holding until the RSI exits the extreme zone.
Specifically, the strategy logic is as follows:
In this way, it captures reversal opportunities from RSI extreme zones using the reversal characteristics of RSI indicator.
The Relative Strength Index Flat Reversal Strategy has the following advantages:
The Relative Strength Index Flat Reversal Strategy also has the following risks:
To hedge these risks, the strategy can be optimized by setting adaptive RSI to dynamically optimize RSI parameters, or adding trend filter etc.
The Relative Strength Index Flat Reversal Strategy can be optimized in the following aspects:
In general, the Relative Strength Index Flat Reversal Strategy is a simple and practical short-term strategy. It utilizes the reversal trading characteristics of RSI indicator by taking opposite positions when RSI enters extreme zones. This strategy has the advantages of clear operation logic and controllable risk, making it very suitable for beginners to learn. But it also has some profit limitation and RSI failure risks. By introducing mechanisms like adaptive optimization, trend filter etc, the strategy can be further enhanced on its advantages and risk hedging capability, thereby leading to more reliable and stable investment returns.
/*backtest start: 2022-11-20 00:00:00 end: 2023-11-26 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=2 strategy("RSI OverTrend Strategy (by Marcoweb) v1.0", shorttitle="RSI_L_30_Strat_v1.0", overlay=true) ///////////// RSI RSIlength = input(14, minval=1, title="RSI Period Length") RSIoverSold = 30 RSIoverBought = 70 RSITriggerLine = 30 RSI = rsi(close, RSIlength) price = close vrsi = rsi(price, RSIlength) source = close buyEntry = crossover(source, RSITriggerLine) sellEntry = crossunder(source, RSITriggerLine) plot(RSI, color=red,title="RSI") p1 = plot(RSIoverSold, color=green,title="30") p2 = plot(RSIoverBought, color=green,title="70") p3 = plot(RSITriggerLine, color=green,title="30") ///////////// RSI Level 30 v1.0 Strategy if (not na(vrsi)) if (crossover(RSI, RSITriggerLine)) strategy.entry("RSI_L", strategy.long, comment="RSI_L") else strategy.cancel(id="RSI_L") if (crossunder(RSI, RSIoverBought)) strategy.entry("RSI_S", strategy.short, comment="RSI_S") else strategy.cancel(id="RSI_S") //plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)