Type/to search

RSI Signal Tracking Reversal Trading Strategy

Cryptocurrency
Created: 2023-09-28 10:54:24
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy implements reversal trading by tracking missed overbought and oversold signals from the RSI indicator. Buy signals are generated when RSI drops from overbought levels, and sell signals when RSI bounces from oversold levels, aiming to capture reversal opportunities.

Strategy Logic

Signal Identification

RSI indicator identifies overbought/oversold levels. Overbought when RSI crosses above the overbought threshold, oversold when crossing below the oversold threshold.

pine
overbought = rsi > uplimit oversold = rsi < dnlimit

If RSI was overbought last bar and exits overbought this bar, a buy signal up1 is triggered. If RSI was oversold last bar and exits oversold this bar, a sell signal dn1 is generated.

pine
up1 = bar == -1 and strategy.position_size == 0 and overbought[1] and overbought == false dn1 = bar == 1 and strategy.position_size == 0 and oversold[1] and oversold == false

Exit Logic

If the bar direction aligns with position direction, and bar body exceeds half of its 10-period average, an exit signal is triggered.

pine
exit = (((strategy.position_size > 0 and bar == 1) or (strategy.position_size < 0 and bar == -1)) and body > abody / 2)

Advantages

  1. Track missed RSI reversal signals, avoiding the need to timely catch overbought/oversold points.

  2. Leverage RSI's reversal property to capture turning points.

  3. Incorporate bar direction and size into exit logic to avoid further tracking after pullbacks.

Risks and Solutions

  1. Risk of false signals from RSI

    • Solution: Confirm signals with other indicators to avoid false signals
  2. Prices may already have pulled back significantly when tracking signal, increasing loss risk

    • Solution: Reduce position size on entry, or optimize entry timing
  3. Risk of premature exits before full profitable reversal

    • Solution: Improve exit logic to increase chance of capturing profits

Enhancement Opportunities

  1. Optimize parameters like overbought/oversold levels, lookback period etc based on different markets

  2. Adjust position sizing, like lowering size when tracking signals

  3. Improve entry timing, adding filters beyond tracking signals

  4. Enhance exits to increase profitability, like trailing profit stops

  5. Optimize stops to reduce losses, like trailing stops or cone stops

Summary

This strategy implements reversal trading by tracking RSI overbought/oversold signals. It has the advantage of catching reversal signals but also has risks of false signals and losses. Further optimizations can improve the strategy's stability and profitability.

Source
Pine
/*backtest
start: 2023-09-20 00:00:00
end: 2023-09-27 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Noro
//2018

//@version=2
Strategy parameters
Strategy parameters
Long
Short
Use Martingale
Capital, %
RSI Period
RSI limit
Show Arrows
From Year
To Year
From Month
To Month
From day
To day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)