Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 11)

Open-source Pine scripts that measure how far price moves: Bollinger Bands, Keltner Channels, ATR stops and trailing lines, and squeeze indicators.

Pine scripts2,503
Code shown here1,334open licence
Updated in a year1,667
No repaint flag2,180

Volatility & bands: Indicators, Strategies and Libraries

An extended version of a Bollinger Band wick marker that labels candles with wicks beyond the bands on the 15-minute timeframe. It adds RSI overbought and oversold alerts, an RSI divergence check, a repeated-wick warning, shooting star and engulfing candle det

Indicator v6 Volatility & bandsCandlestick patterns
Updated 6 weeks ago · MIT GitHub repository of Bollinger Band Wick Marker with RSI Alerts

Key Level Confluence

by mrme000m
1 stars

The Key Level Confluence indicator plots support and resistance levels on the price chart. It calculates pivot highs and lows, the point of control from a simplified volume profile, VWAP, EMA50 and EMA200, Bollinger Bands, and ATR-based stop levels. Confluence

Indicator v5 Support & resistanceMoving averages
Updated 7 weeks ago · None stated GitHub repository of Key Level Confluence
1 stars

A signal overlay that merges Andean oscillator with clustered Money Flow Index entries and UT Bot ATR trailing stop entries. Signals can be filtered by a FRAMA trend channel, a choppiness index, an ATR percentage range and, new in this version, an optional Hur

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of MUFCA AtomDC v4.0 Elite
1 stars

An overlay indicator that draws a heat map to the right of the last bar showing the estimated probability that price touches each of several levels above and below within growing time horizons. Levels are spaced in ATR or percent steps. The estimate uses a clo

Indicator v5 Volatility & bandsSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of ATLAS Probabilistic Reach Map

Daddy's Turtle Strategy

by timoanttila
1 stars

Daddy's Turtle Strategy is an indicator that marks long and short entries when a candle closes beyond the highest high or lowest low of a configurable lookback, plus an ATR buffer. Candles must have a minimum body share and must not exceed a maximum ATR size.

Indicator v6 BreakoutTrend
Updated 2 months ago · GPL-3.0 GitHub repository of Daddy's Turtle Strategy
1 stars

This strategy plots the Donchian Channel bands on the price chart to identify breakouts. It enters a long position by placing a buy stop order when price breaks above the upper band during a target execution hour. The order remains open until filled or cancele

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Donchian Breakout
1 stars

This strategy looks for pullbacks to the 21 EMA while the 21, 50 and 200 EMAs are stacked in trend order, with shorts enabled and longs switched off by default. Entries are screened by ADX, RSI range, volume against its average, candle body size, an ATR floor,

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Adaptive Pullback Momentum v2.5

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is an overlay strategy aimed at gold. It reads a higher-timeframe trend from three exponential moving averages and includes RSI, MACD, Stochastic RSI, ADX, ATR, and volume settings. Optional session, equity-curve, and maximum-drawdown guards

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro

TTP VIX Spy

by AubakirovArman
1 stars

Pulls the VIX and builds a MACD histogram from it, then uses that with a SuperTrend, a band width test, price and RSI slope checks and an optional working-days filter to print B1, B2, S1 and S2 labels on the price chart. The SuperTrend fill is coloured by the

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of TTP VIX Spy
1 stars

A separate-pane indicator that builds a 0 to 100 score from price momentum, nudged by the prior move of a chosen US index and pulled toward 50 in high-volatility regimes. Background colours mark calm, elevated or panic volatility, found by comparing recent vol

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · MIT GitHub repository of SPE Regime & Prob Proxy

MTF Confluence Trend

by aretephi
1 stars

MTF Confluence Trend plots trend signals when conditions align across timeframes. It detects Supertrend direction flips on the chart timeframe and confirms them against a higher timeframe Supertrend. Optional filters require an ADX strength threshold and a vol

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of MTF Confluence Trend

Buddha Bollinger Bands

by DarthBuddha
1 stars

A chart-overlay indicator that draws Bollinger-style envelopes from a daily, weekly or monthly anchor timeframe, so the bands stay fixed relative to a higher timeframe while viewing a lower one. It plots two standard deviation zones, a slower one at 2.0 and a

Indicator v6 Volatility & bands
Updated 3 months ago · MIT GitHub repository of Buddha Bollinger Bands
1 stars

This technical analysis dashboard aggregates market data across four dimensions: trend, momentum, volatility, and volume. It evaluates multiple technical indicators including exponential moving averages, SuperTrend, ADX, RSI, MACD, Stochastic, Bollinger Bands,

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak By. Akhmfz

Volumetric Regression Heatmap

by woodstock-tokyo
1 stars

An overlay indicator that fits a regression channel over a base period, optionally resizing the period with volatility, and fills parallel levels above and below it with a colour gradient based on traded volume. Optional mean reversion signals appear when pric

Indicator v6 VolumeMean reversion Repaints
Updated 3 months ago · None stated GitHub repository of Volumetric Regression Heatmap

GEKO HYBRID MASTER

by grzegorzkowalskigk-jpg
1 stars

GEKO HYBRID MASTER is a custom oscillator indicator that merges RSI, Stochastic, MFI, MACD, and SATS volatility filters for signal confirmation. It calculates composite momentum with normalized MACD, body-proportional CVD, divergences, HTF EMA slope and ADX tr

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · Custom licence GitHub repository of GEKO HYBRID MASTER

BB(10,2) MTF Confirm

by zraesdev-hub
1 stars

This overlay strategy trades a close and open below the lower Bollinger Band, using a period and multiplier set on the chart timeframe. An optional higher-timeframe Bollinger Band can confirm entries before orders are placed. Mode S1 exits at a percentage take

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) MTF Confirm
1 stars

An indicator for the price chart that looks for pullbacks inside a trend. It uses ADX and directional indicators with a rising-ADX check to confirm trend and direction, then measures the distance from the recent swing high or low in ATR units. Optional filters

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Trend Scanner (ATR Pullback)
1 stars

This overlay indicator fits a quadratic regression parabola to recent source prices to show a curved trend, its slope, and its curvature. Hyperbola bands use ATR and a curve-sensitivity multiplier so they widen when the trend bends and tighten when it is strai

Indicator v6 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Parabola & Hyperbola Structure

DST HMM v9 XAUUSD

by Javas128282
1 stars

DST HMM v9 XAUUSD classifies the market into hidden regimes such as Sideways, Bull and Bear using a hidden Markov model retrained on a rolling window with Baum-Welch iterations. It adds a Kalman filter line with confidence bands and an optional multi-bar Kalma

Indicator v6 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of DST HMM v9 XAUUSD

Fresh Supply & Demand Zones

by kvmafthab-pixel
1 stars

Fresh Supply & Demand Zones is a Pine Script v6 indicator that detects and plots fresh supply and demand zones on the price chart. It identifies momentum candles based on ATR period and body size threshold, then scans back for base candles to form zones. Zones

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Fresh Supply & Demand Zones

Beginner EMA + RSI + ATR

by Sandesh30-cloud
1 stars

Beginner EMA + RSI + ATR is a long-only trend-following strategy plotted directly on the price chart. It identifies an uptrend when the 50-period EMA trades above the 200-period EMA, triggering long entries when the 14-period RSI crosses above the 50 centerlin

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Beginner EMA + RSI + ATR

Algo2.0

by dtheran1
1 stars

A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo2.0
1 stars

Estimates the mean-reversion half-life of price in bars by fitting an Ornstein-Uhlenbeck model with a rolling regression on log prices. A lookback input sets how many bars feed the regression, and the half-life is capped for display. Optional bands show the me

Indicator v5 Mean reversionVolatility & bands
Updated 6 months ago · None stated GitHub repository of Half-Life Estimator (O-U)
1 stars

An indicator for one-hour charts that plots a Donchian channel from the highest high and lowest low over a set number of bars. A close beyond the prior channel edge marks a long or short breakout, and an ATR-multiple trailing stop line tracks the exit. An opti

Indicator v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of V18 Donchian Channel Breakout
1 stars

A Pine v5 long-only strategy that buys when RSI falls below an entry level and then trails an exit level behind the highest close using an ATR multiple. The position is closed when the close drops below that trailing level, which is drawn as a red line on the

Strategy v5 Mean reversionVolatility & bands
Updated 8 months ago · None stated GitHub repository of AU RSI + ATR Trailing Stop

Reports how volatile each part of the trading day has been, shown as columns in a separate pane. It groups intraday bars by time slot and compares their ranges using a daily ATR period, defaulting to 20. The output can be set to median, with high and low volat

Indicator v6 Volatility & bandsSessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Volatility - Time of Day Report
1 stars

The Bollinger Squeeze Indicator measures volatility contraction by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation-based bands and ATR-based channels around a simple moving average. When the Bollinger Bands contract inside the

Indicator v5 Volatility & bandsBreakout
Updated 11 months ago · None stated GitHub repository of Bollinger Squeeze Indicator
1 stars

A price-chart trend indicator that smooths the chosen source with a multi-order Kalman filter, builds ATR-based upper and lower bands around it, smooths the bands exponentially, and flips the trend when price crosses a band. An optional multi-timeframe switch

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MIT GitHub repository of Kalman Exponential SuperTrend MTF

EMA Fibonacci Trend

by ktg0413
1 stars

The EMA Fibonacci Trend indicator calculates and plots dynamic Fibonacci retracement and extension levels based on a 200-period Exponential Moving Average (EMA). It measures volatility using a 14-period Average True Range (ATR) relative to price, establishing

Indicator v6 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Fibonacci Trend
1 stars

This strategy identifies trend re-entries by combining volatility spikes, short-term pullbacks, and moving average crossovers. It detects strong bar expansions using an ATR multiplier, checks a lookback window for pullbacks, and triggers entries when price cro

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of ATR Retracement EMA Strategy

Sell Spike

by dsjrego
1 stars

A simple overlay that prints a red sell label above a bar when two conditions occur together. The bar's upper wick must be longer than its body and longer than half of a 14-period ATR, and the bar's high must pierce the upper Bollinger Band. The band length an

Indicator v5 Volatility & bandsCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Sell Spike

ADR Up to 10 Days With Targets

by MarvelousShabi
1 stars

This indicator calculates the average daily range from a user-selected lookback of one to ten completed days and rounds it to the instrument tick. It draws optional bullish and bearish target lines from the current day's range on the price chart and shows a co

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ADR Up to 10 Days With Targets

A second variant of a reversal strategy for a 15-minute TRUMP perpetual swap chart. It reacts to candles whose range exceeds a larger percentage threshold than version one, entering with a limit order against the candle direction. Take profit, stop loss, slipp

Strategy v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of TRUMP 15m Large Range Reversal v2

A price-chart overlay that combines several tools. It 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 sty

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of UT Bot, Nadaraya-Watson, Hull Suite and Reversal Combo

Bollinger Bands

by yagyesh-bobde
1 stars

The Bollinger Bands indicator plots a basis moving average line together with two volatility bands on the main price chart. The middle band shows the average price level while the upper and lower bands reflect price deviation from volatility. Traders use the b

Indicator v6 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands

Bollinger Bands

by Studentcodee
1 stars

This strategy plots Bollinger Bands directly on the price chart. It computes the middle band as the simple moving average of the close price over the input length and the upper and lower bands by multiplying the standard deviation by the multiplier and adding

Strategy v6 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands
1 stars

A pivot breakout strategy designed for the S50 futures on a 30-minute chart. It detects swing highs and lows from left and right bar counts and places stop entries just beyond them. Stops sit one ATR beyond the pivot, targets are ATR multiples set by a risk to

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR
1 stars

A separate-pane indicator that plots the change in a chosen price source over a set number of trading sessions, as percent or points. Columns are green for gains and red for losses, with aqua and fuchsia highlighting changes above or below two configurable thr

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · MIT GitHub repository of Price Change History

OTHERS.D MTPI

by Mikelkulla
1 stars

This strategy computes the direction of the altcoin market via the Others.D MTPI index. It merges outputs from Median Supertrend, FDI-Adaptive Supertrend, Hyperbolic Tangent Volatility Stop, Dema AFR, and Normalized KAMA Oscillator to generate long or short si

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of OTHERS.D MTPI

This strategy enters long when price closes above the upper Bollinger Band after being at or below it on the prior bar, and enters short on a close below the lower band. Each trade gets an ATR-based stop loss and take profit using separate multipliers. Band le

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Bollinger Band Breakout Strategy

Bollinger Bands

by zhuzp98
1 stars

This indicator plots Bollinger Bands volatility bands calculated from the input source price. The middle band uses an EMA of the source over the specified length, with bands formed by adding and subtracting the standard deviation multiplied by the mult. It als

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands
1 stars

Measures how far price has moved from its 50-period moving average in multiples of ATR percent, using daily data. A dot is plotted when the distance exceeds a chosen multiple, with ten as the default, and an optional info table shows the readings. Settings cha

Indicator v5 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of ATR% Multiple from 50-MA

Chop and Explode

by techteam92
1 stars

This indicator identifies consolidation zones and potential breakout moves by processing price data through optional high-pass cleaning, minimax scaling, and RSI calculation. Relative strength values between 40 and 60 represent ranging or chop zones, while cro

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode

ATR Channel Breakout

by JoeTonDev
1 stars

A strategy template titled for an ATR channel breakout. The code sets non-pyramiding, a starting capital, a cash commission per order and slippage, then lists numbered section headings for settings, calculations, long and short conditions and entry and exit or

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · None stated GitHub repository of ATR Channel Breakout

SuperChandelierIndicator

by darkshloser
1 stars

Draws three ATR-based SuperTrend lines on the price chart, each with its own ATR period, multiplier, source and a wicks-or-close option. A second timeframe input supports a higher timeframe view, and a Chandelier-style exit layer with ATR length, multiplier, c

Indicator v5 TrendVolatility & bands
Updated 2 years ago · Apache-2.0 GitHub repository of SuperChandelierIndicator

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers