This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator.
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
Setup-1 also renders visual overlay panels for the Relative Strength Index and Average Directional Index. Users can toggle individual elements, adjust envelope bandwidth and window size, and configure oscillator calculation lengths and placements. Notably, the script reads higher-timeframe data using security calls with lookahead enabled, which introduces lookahead bias.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Book Short Profit
bool
false
showBSP
Nadaraya-Watson Envelope
bool
false
showNWB
Window Size
float
500
length
Bandwidth
float
45.
nwh
nwmult
float
3.
nwmult
Source
source
hl2
src
Colors
color
#39ff14
up_col
dn_col
color
#ff1100
dn_col
Primary TrendLine
bool
false
PrimaryTrendline
Secondary TrendLine
bool
false
SecondaryTrendline
htfpivotLength
int
21
htfpivotLength
ltfpivotLength
int
21
ltfpivotLength
Show all 40 settings
Setting
Type
Default
Variable
Show Primary Last TrendLine
bool
false
htfonlyLastLine
Show Secondary Last TrendLine
bool
false
ltfonlyLastLine
Enable RSI Overlay Display
bool
false
rsi_osc
Source
string
Price (close)
RSIi_source
Length
int
14
RSIi_length
Placment
string
Bottom
oscPlacement
Hight
int
10
Hight
Overlay Indicator Display Length
int
90
lookbackLength
Enable ADX Overlay Display
bool
false
ADX_osc
Source
string
Price (close)
ADXi_source
Length
int
14
ADXi_length
ADX Smoothing
int
14
adxSmoothing
Placment
string
Top
ADXoscPlacement
Hight
int
10
Hight
Overlay Indicator Display Length
int
90
ADXlookbackLength
Kernel Regression Oscillator
bool
true
ROpoints
Source
source
close
source
Bandwidth
int
45
bandwidth
Width
float
2
bbwidth
Standard Deviation Lookback
int
200
sdLook
Standard Deviation Extreme for OB/OS Border
float
3
sdMult
Color Palette Choice
string
Modern
ColMode
Custom Palette
bool
true
man
Custom Up
color
color.new(#00ff00,50)
manUpC
Custom Down
color
color.new(#ff0000,50)
manDnC
Show Trend Signals
bool
false
bbsig
Enable Bar Coloring
bool
true
BCol
Enable Deviation Band Shading
bool
true
devS
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.
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly
Cerebr Wave is an overlay indicator that combines multi-timeframe Keltner Channels with a Wave Trend oscillator to analyze market structure and momentum. It calculates higher-timeframe and lower-timeframe Keltner Channels alongside Wave Trend crossover signals
Cyber HUD XAU is an overlay indicator designed for XAUUSD that combines trend, momentum, and volatility filters. It calculates fast and slow ATR ratios alongside local price ranges to detect consolidation and chop filter states. The script evaluates candle bod
Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct
This indicator overlays a linear regression channel on the price chart and resets it when RSI crosses user-defined overbought or oversold levels. It plots an optional central regression line plus upper and lower standard-deviation bands. RSI length, threshold