# RSI Candlestick Oscillator

RSI Candlestick Oscillator is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Renders RSI as full OHLC candlesticks rather than a single line, scaling each bar's open, high, low, and close into the oscillator pane. Wick tests and full-bodied breaks of RSI levels become visible at a glance, and divergences detected from candle extremes are drawn on both the oscillator and the price chart.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 23, 2025.
- Access: free.
- Concepts: [RSI](https://www.luxalgo.com/library/concept/rsi/) (primary), [Regular Bullish/bearish Divergence](https://www.luxalgo.com/library/concept/regular-bullish-bearish-divergence/), [Overbought/oversold](https://www.luxalgo.com/library/concept/overbought-oversold/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn5h8v007qvhsg5lqv1wzw
- Page: https://www.luxalgo.com/library/indicator/rsi-candlestick-oscillator/

**RSI Candlestick Oscillator** redraws the [RSI](https://www.luxalgo.com/library/concept/rsi/) as candlesticks: a scaling model equates a price range with the oscillator's range, so each bar's OHLC values land in their correct positions relative to the current RSI value. Momentum stops being a single closing-price line: you can see whether an overbought test was a tentative wick probe or a full-bodied break.

Those candle extremes feed divergence detection. Because highs and lows now exist inside the oscillator, [regular and hidden divergences](https://www.luxalgo.com/library/concept/regular-bullish-bearish-divergence/) stand out plainly, and the tool draws them both in the pane and overlaid on the price chart. A Divergence Filter discards signals that never traverse the RSI's upper or lower limits, keeping attention on the extremes where reversals are worth hunting.

## How to Trade the RSI Candlestick Oscillator?

- **Wick test of a level**: a probe of overbought or oversold territory without body commitment reads as hesitation, not conviction.
- **Full-bodied break**: an RSI candle body clearing a level is the stronger statement, an interaction a close-only RSI simply cannot show.
- **Filtered divergence at an extreme**: divergences that survive the filter are the priority reversal candidates, mirrored on price for clarity.
- **RSI Channel on the chart**: enable it to see where the scaled RSI levels sit against price. Channel and oscillator are the same data at two scales.

## RSI Candlestick Oscillator Settings

- **RSI Length**: lookback for the underlying oscillator.
- **Overbought/Oversold Levels**: the thresholds the candles are judged against.
- **Scale Open for Chart Accuracy**: nudges each RSI candle's open to match the chart's open-versus-prior-close relationship.
- **Divergence Length**: pivot width used for divergence detection.
- **Divergence Filter**: ignores divergences that stay inside the limits.
- **Show on Chart, divergence styles, and RSI Channel toggle/color**: display controls for the divergence lines (in the pane and mirrored on price) and the on-chart channel.

## Frequently Asked Questions

### Which divergence types does it recognize?

Four: bullish, bearish, hidden bullish, and hidden bearish. Regular and hidden divergences each have their own toggle and line style, bullish and bearish lines have their own colors, and the filter can restrict the set to those reaching the RSI extremes.

### Can I verify which RSI settings held up historically?

That is a different job. Pair this display with the [RSI Divergence: Out-of-Sample Optimizer](https://www.luxalgo.com/library/indicator/rsi-divergence-out-of-sample-optimizer/), which backtests divergence trading across a whole range of RSI periods and validates the winner on unseen data.

### What does the RSI Candlestick Oscillator cost?

Nothing. It is one of the free tools in the LuxAlgo Library. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [RSI Multi Length](https://www.luxalgo.com/library/indicator/rsi-multi-length/) (RSI): markdown at https://www.luxalgo.com/library/indicator/rsi-multi-length.md
- [RSI Prediction by Range Segmentation](https://www.luxalgo.com/library/indicator/rsi-prediction-by-range-segmentation/) (RSI): markdown at https://www.luxalgo.com/library/indicator/rsi-prediction-by-range-segmentation.md
- [RSI Divergence: Out-of-Sample Optimizer](https://www.luxalgo.com/library/indicator/rsi-divergence-out-of-sample-optimizer/) (RSI): markdown at https://www.luxalgo.com/library/indicator/rsi-divergence-out-of-sample-optimizer.md
- [Inertial RSI](https://www.luxalgo.com/library/indicator/inertial-rsi/) (RSI): markdown at https://www.luxalgo.com/library/indicator/inertial-rsi.md
- [Ultimate RSI](https://www.luxalgo.com/library/indicator/ultimate-rsi/) (RSI): markdown at https://www.luxalgo.com/library/indicator/ultimate-rsi.md
- [Chaos Weighted RSI](https://www.luxalgo.com/library/indicator/chaos-weighted-rsi/) (RSI): markdown at https://www.luxalgo.com/library/indicator/chaos-weighted-rsi.md
- [Oscillator Matrix](https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix/) (Regular Bullish/bearish Divergence): markdown at https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix.md
- [HTF Reversal Divergences](https://www.luxalgo.com/library/indicator/htf-reversal-divergences/) (Regular Bullish/bearish Divergence): markdown at https://www.luxalgo.com/library/indicator/htf-reversal-divergences.md

---

Source: https://www.luxalgo.com/library/indicator/rsi-candlestick-oscillator/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
