freeradiantbunny.org

freeradiantbunny.org/blog

relative strength indicator

The Relative Strength Index (RSI) is a momentum oscillator used in technical analysis to measure the speed and change of price movements. It helps traders identify overbought or oversold conditions, potential reversals, and trend strength. Developed by J. Welles Wilder, RSI is calculated using price data over a specified period, typically 14 periods (e.g., days, hours, or other timeframes).

How RSI is Calculated

The RSI formula is:

RSI = 100 - (100 / (1 + RS))

Where:

Steps:

  1. Calculate price changes (gains or losses) for each period.
  2. Separate gains (positive changes) and losses (negative changes, taken as absolute values).
  3. Compute the average gain and average loss over the chosen period (e.g., 14 periods).
  4. Calculate RS = Average Gain / Average Loss.
  5. Plug RS into the RSI formula to get a value between 0 and 100.

Default Settings:

RSI Signals

RSI provides several types of signals for trading decisions:

1. Overbought and Oversold Conditions

2. Centerline Crossovers (RSI around 50)

3. Divergences

4. Trend Confirmation

5. Failure Swings

How to Trade RSI Signals

General Guidelines

Trading Strategies

  1. Overbought/Oversold Reversal Strategy:
    • Buy Setup:
      • RSI drops below 30 (oversold).
      • Wait for RSI to cross above 30, confirmed by a bullish candlestick (e.g., hammer) or support level.
      • Enter long position with stop-loss below recent lows.
      • Target: Next resistance or 1:2 risk-reward ratio.
    • Sell Setup:
      • RSI rises above 70 (overbought).
      • Wait for RSI to cross below 70, confirmed by a bearish candlestick (e.g., shooting star) or resistance level.
      • Enter short position with stop-loss above recent highs.
      • Target: Next support or 1:2 risk-reward ratio.
  2. Divergence Trading Strategy:
    • Bullish Divergence:
      • Identify lower low in price with higher low in RSI.
      • Confirm with support level or bullish price action (e.g., double bottom).
      • Enter long position with stop-loss below recent low.
      • Target: Next resistance or Fibonacci retracement level.
    • Bearish Divergence:
      • Identify higher high in price with lower high in RSI.
      • Confirm with resistance level or bearish price action (e.g., double top).
      • Enter short position with stop-loss above recent high.
      • Target: Next support or Fibonacci retracement level.
  3. Trend-Following with RSI:
    • Buy in Uptrend:
      • RSI stays above 50, ideally 50; 70.
      • Wait for pullback to support or moving average (e.g., 20 EMA).
      • Enter long when RSI crosses above 50, confirmed by price breaking above moving average.
      • Stop-loss: Below recent swing low.
      • Target: Next resistance or trailing stop.
    • Sell in Downtrend:
      • RSI stays below 50, ideally 30; 50.
      • Wait for rally to resistance or moving average.
      • Enter short when RSI crosses below 50, confirmed by price breaking below moving average.
      • Stop-loss: Above recent swing high.
      • Target: Next support or trailing stop.
  4. Failure Swing Strategy:
    • Bullish Failure Swing:
      • RSI drops below 30, rises above 30, pulls back, and breaks above prior RSI high.
      • Enter long on RSI breakout, confirmed by price breaking above recent high.
      • Stop-loss: Below recent price low.
      • Target: Next resistance level.
    • Bearish Failure Swing:
      • RSI rises above 70, drops below 70, rallies, and breaks below prior RSI low.
      • Enter short on RSI breakdown, confirmed by price breaking below recent low.
      • Stop-loss: Above recent price high.
      • Target: Next support level.

Tips

Adjust Period for Sensitivity:

Backtest Strategies: Use historical data with Python libraries like backtrader or zipline.

Market Type:

Divergence Confirmation: Wait for price action or volume confirmation to avoid premature entries.