Type/to search

RSI Indicator Long Short Separation Trading Strategy

Cryptocurrency
Created: 2024-02-26 13:49:25
Last modified: 2 years ago
1
Follow
1782
Followers

img

Overview

This strategy identifies long short separation phenomena through the RSI indicator to make trading decisions. The core idea is that when prices hit new lows but the RSI indicator hits new highs, a "bullish separation" signal is generated, indicating that the bottom has formed and going long. When prices hit new highs but the RSI indicator hits new lows, a "bearish separation" signal is generated, indicating that the top has formed and going short.

Strategy Principles

The strategy mainly uses the RSI indicator to identify the long short separation between prices and the RSI. The specific method is as follows:

  1. Use RSI indicator parameters of 13 and close prices as source data
  2. Define left lookback range for bullish separation as 14 days and right lookback range as 2 days
  3. Define left lookback range for bearish separation as 47 days and right lookback range as 1 day
  4. When prices hit lower lows but RSI hits higher lows, long separation condition is met to generate long signals
  5. When prices hit higher highs but RSI hits lower highs, short separation condition is met to generate short signals

By identifying the long short separation between prices and RSI, it can capture the inflection points of price trends in advance for trade decision making.

Advantages of the Strategy

The main advantages of this strategy are:

  1. Identifying price/RSI separation can judge trend inflections early to capture trading opportunities
  2. Use indicator analysis so less affected by emotions
  3. Use fixed lookback periods to identify separation, avoiding frequent parameter tuning
  4. Additional conditions like daily RSI reduce false signals

Risks and Solutions

There are still some risks:

  1. RSI divergence does not necessarily mean immediate reversal, time lag may exist leading to stop loss risk. Solution is to allow wider stops to give time for divergence signal confirmation.

  2. Prolonged separation also increases risk. Solution is to add longer-term daily or weekly RSI as filter conditions.

  3. Small divergence may not confirm trend reversal, need to expand lookback periods to find more significant RSI divergence.

Optimization Directions

The strategy can be improved in the following aspects:

  1. Optimize RSI parameters to find best parameter combinations

  2. Try other technical indicators like MACD, KD to identify separation

  3. Add oscillation filters to reduce false signals in choppy periods

  4. Combine RSI from multiple timeframes to find best combination signals

Conclusion

The RSI long short separation trading strategy judges trend inflections by identifying divergence between price and RSI to generate trading signals. The strategy is simple and practical. Further improving parameters and adding filters can increase profitability. Overall an effective quantitative trading strategy.

Source
Pine
/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-31 23:59:59
period: 3h
basePeriod: 15m
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/
// © Nextep

//@version=4
Strategy parameters
Strategy parameters
RSI Period
RSI Source
Short Lookback Right
Short Lookback Left
Long Lookback Right
Long Lookback Left
Max of Lookback Range
Min of Lookback Range
Take Profit at RSI Level
Take Profit for Short at RSI Level
Long Stop Loss Type
Short Stop Loss Type
Long Stop Loss Value
Short Stop Loss Value
Plot Bullish
Plot Bearish
ATR Length (for Trailing stop loss)
ATR Multiplier (for Trailing stop loss)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)