The RSI + BB Oscillator combines Relative Strength Index (RSI) and Bollinger Bands %B calculations across two timeframes into a single separate pane plot.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
RSI + BB Oscillator shifts RSI values around zero and measures %B bandwidth using selectable moving average types including HMA and EMA. The indicator identifies potential buy and sell signals when primary timeframe bandwidth hits defined extremes aligned with higher-timeframe trend context. Higher-timeframe values update dynamically until the bar closes.
Dual-timeframe RSI and Bollinger Bands %B oscillator
Selectable basis MA types including HMA, EMA, VWMA, and ALMA
Trend-filtered buy and sell conditions using multi-timeframe logic
Customizable threshold lines and signal lookback filter
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
tf_1
timeframe
tf_1
tf_2
timeframe
60
tf_2
line_val_1
int
50
line_val_1
line_val_2
int
30
line_val_2
line_val_3
int
10
line_val_3
line_val_4
int
-10
line_val_4
line_val_5
int
-30
line_val_5
line_val_6
int
-50
line_val_6
Length
int
14
rsi_len
Source
source
close
rsi_src
Type
string
HMA
bb_ma_type
Source
source
close
bb_src
Show all 16 settings
Setting
Type
Default
Variable
Basis Len
int
120
bb_ma_len
Stdev Len
int
120
bb_dev_len
Stdev Mult
float
2.0
bb_dev_mult
Lookback
int
10
sig_lookback
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
This indicator plots an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a
This indicator plots a smoothed stochastic oscillator in a separate pane, with K and D lines, a midsection background, and adjustable overbought and oversold levels. Optional highlights mark overbought or oversold breakouts and K/D crossovers, and ribbon filli
The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke