Indicator · Pine Script v5 · On the chart

Setup-1

by IAMATOMIC001

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.

View on GitHub

Repaints

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code1,202
Settings40inputs
LicenceNone stated
Last update12 months ago31 Oct 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

IAMATOMIC001 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Oscillators & momentum, Support & resistance, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Book Short ProfitboolfalseshowBSP
Nadaraya-Watson EnvelopeboolfalseshowNWB
Window Sizefloat500length
Bandwidthfloat45.nwh
nwmultfloat3.nwmult
Sourcesourcehl2src
Colorscolor#39ff14up_col
dn_colcolor#ff1100dn_col
Primary TrendLineboolfalsePrimaryTrendline
Secondary TrendLineboolfalseSecondaryTrendline
htfpivotLengthint21htfpivotLength
ltfpivotLengthint21ltfpivotLength
Show all 40 settings
SettingTypeDefaultVariable
Show Primary Last TrendLineboolfalsehtfonlyLastLine
Show Secondary Last TrendLineboolfalseltfonlyLastLine
Enable RSI Overlay Displayboolfalsersi_osc
SourcestringPrice (close)RSIi_source
  Lengthint14RSIi_length
PlacmentstringBottomoscPlacement
 Hightint10 Hight
Overlay Indicator Display Lengthint90lookbackLength
Enable ADX Overlay DisplayboolfalseADX_osc
SourcestringPrice (close)ADXi_source
  Lengthint14ADXi_length
ADX Smoothingint14adxSmoothing
PlacmentstringTopADXoscPlacement
 Hightint10 Hight
Overlay Indicator Display Lengthint90ADXlookbackLength
Kernel Regression OscillatorbooltrueROpoints
Sourcesourceclosesource
Bandwidthint45bandwidth
Widthfloat2bbwidth
Standard Deviation Lookbackint200sdLook
Standard Deviation Extreme for OB/OS Borderfloat3sdMult
Color Palette ChoicestringModernColMode
Custom Palettebooltrueman
Custom Upcolorcolor.new(#00ff00,50)manUpC
Custom Downcolorcolor.new(#ff0000,50)manDnC
Show Trend Signalsboolfalsebbsig
Enable Bar ColoringbooltrueBCol
Enable Deviation Band ShadingbooltruedevS
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.

Similar Pine Scripts

Moon Dev Lunar Sniper

by moondevonyt
92 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
14 stars

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

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

Cerebr Wave

by jerryinyang
5 stars

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

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Cerebr Wave

Cyber HUD XAU

by panzmoravylab
3 stars

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

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Cyber HUD XAU

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

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Skew Weighted Average Price (SWAP)

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers