1Copy the scriptPress Copy script above, or the copy button on the code below.
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
170 lines of Pine Script v5 from RSI_and_BB_Reversal_Indicator.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
UT Bot, Nadaraya-Watson, Hull Suite and Reversal Combo draws a Nadaraya-Watson kernel envelope with a repainting smoothing option, a Hull moving average band in three variants that can optionally come from a higher timeframe, and an ATR trailing stop in the style of UT Bot. It also includes RSI overbought and oversold reversal crosses and Bollinger Band reversal markers. Settings control bandwidth, Hull length, the ATR factor, RSI levels and band width. The envelope can repaint, and the supplied code is cut off before the signal logic.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
src
Bandwidth
float
8.
h
mult
float
3.
mult
Repainting Smoothing
bool
true
repaint
Triangle & Envlop Colors
color
color.rgb(4, 246, 222)
upCss
dnCss
color
color.rgb(245, 5, 205)
dnCss
Hull Variation
string
Hma
modeSwitch
Length
int
55
length
Length multiplier
float
1.0
lengthMult
Higher timeframe
timeframe
240
htf
Line Thickness
int
1
thicknesSwitch
Band Transparency
int
40
transpSwitch
Show all 22 settings
Setting
Type
Default
Variable
Show Hull MA from X timeframe?
bool
false
useHtf
Color candles based on Hull's Trend?
bool
false
candleCol
Color Hull according to trend?
bool
true
switchColor
Show as a Band?
bool
true
visualSwitch
Factor
float
3
keyvalue
ATR Length
int
10
atrperiod
RSI OverBought Value
int
65
rsiOB
RSI OverSold Value
int
35
rsiOS
BBands Length
int
20
lengthx
BBands Multiplier
float
2
multx
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 classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th
This indicator plots the original simple moving average, a symmetric moving average calculated from the highest and lowest moving averages over the window length, and a dynamic midline. It generates buy signals when the deviation from the symmetric moving aver
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre
This indicator modifies standard Bollinger Bands to measure directional trend force based on line alignment. It calculates a simple moving average basis along with upper and lower volatility bands. When all three lines move upward or downward simultaneously, i