Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 45)

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

This strategy combines three technical indicators: the Boom Hunter Pro oscillator, the Hull Suite moving average, and a Volatility Oscillator. It calculates trade entries from indicator conditions, using recent swing high and low lookbacks to set stop loss lev

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Boom Hunter + Hull Suite + Volatility Oscillator Strategy

Theil Index (THEIL)

by mihakralj
47 stars

The Theil Index indicator measures statistical inequality and distribution entropy in a price series over a specified lookback period. It iterates through recent bars, calculates the mean price, and computes the sum of logarithmic price-to-mean ratios. Higher

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Theil Index (THEIL)
13 stars

This strategy monitors section height changes within the Squeeze Momentum Indicator to identify momentum shifts and divergence entry signals. It uses high and low closing moving averages to evaluate price trends and overlay a visual ribbon on the price chart.

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed D004

Trend Breakout

by GammaExpansion
1 stars

Trend Breakout is a price-chart strategy that builds a simple moving average and upper and lower bands from a multiple of standard deviation. It enters long when close crosses above the upper band and short when close crosses below the lower band. Position siz

Strategy v6 TrendBreakout
Updated 6 days ago · MIT GitHub repository of Trend Breakout

ATR Compare

by ivansoft
1 stars

Compares normalised volatility across a fixed list of Moscow Exchange stocks and funds in a separate pane. For each symbol it requests a 14-period ATR expressed as a percentage of close and plots it as a line, drawing the line more strongly when the value is a

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of ATR Compare
13 stars

Ruckard Squeezed E004 is a price-chart strategy that compares successive Squeeze Momentum colour-section changes. A smaller squeeze value with a higher price opens a short; a higher squeeze value with a lower price opens a long. Direction can be limited to lon

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed E004

This overlay indicator detects a trading range from clustered pivots, falling back to the highest and lowest prices over a lookback, and scores it with eight weighted factors. The score moves the range through Inactive, Building, Confirmed, Mature, and Breakin

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · MIT GitHub repository of Trading Range State Machine [WavesUnchained]

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1

ATR Delta

by ivansoft
1 stars

Draws step-line bands around each candle on the price chart, sized from a rolling median of previous true range or candle body range. Two divisors set the band width for the high and low range and for the body range; the body version is shown by default and th

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Delta

Trend Persistence Score calculates a composite trend-efficiency oscillator plotted in a separate pane, grading trend strength and durability on a 0 to 100 scale. It integrates four distinct metrics: linear regression R-squared, Kaufman Efficiency Ratio, ADX wi

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Trend Persistence Score [WavesUnchained]

PF Probe 104 - Supertrend Flip

by pineforge-4pass
1 stars

This strategy calculates the Supertrend indicator using a configurable ATR length and factor to identify trend reversals. It plots directly on the main price chart. When the Supertrend direction flips from bearish to bullish, the strategy closes any open short

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 104 - Supertrend Flip

GOLDEN-PIVOT φ v2

by morindok
1 stars

GOLDEN-PIVOT φ v2 is a Pine Script strategy that plots on the price chart. It calculates a golden pivot region using Fibonacci retracement at 0.618 of a swing high-low range spanning 96 candles. The script applies a volume filter requiring current volume to ex

Strategy v5 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of GOLDEN-PIVOT φ v2

NO.1 Perfect Buy/Sell

by vedkanani123
1 stars

A price-chart indicator that stays always in one direction after the first confirmed mark: a buy exits shorts and holds long until the next sell, and the reverse. It uses a causal trail, trend, range and shock regime detection, a score threshold and an optiona

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Perfect Buy/Sell

ATR Range

by ivansoft
1 stars

Plots two step-line levels on the price chart at the previous bar's midpoint plus and minus a moving average of ATR measured over about 15 minutes of bars. When price closes beyond a level while making a new extreme, the matching line is drawn thicker in red.

Indicator v5 Volatility & bandsBreakout
Updated 1 year ago · None stated GitHub repository of ATR Range
1 stars

This strategy draws Bollinger-style bands on the price chart using ta.sma and ta.stdev of close. It plots upper and lower bands based on the baseline SMA and a multiplier applied to standard deviation. Entries trigger when close breaks above the upper band for

Strategy v6 Volatility & bandsMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 105 - volty expansion close

ATR Test

by ivansoft
1 stars

Shows bar range statistics in a separate pane: one-bar true range, candle body range and rolling percentile levels such as the median, 75th, 90th and 95th percentiles of true range. The lookback length is chosen from the chart timeframe. Blue columns mark bars

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Test

Multi-Time Period Charts

by TWODS-CAPITAL
37 stars

This overlay indicator draws a box for each completed higher-timeframe period on the price chart. Box height follows High/Low Range, True Range, or Heikin Ashi Range, and the fill is growth or fall color according to that period’s open-to-close change. Auto ti

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · MIT GitHub repository of Multi-Time Period Charts

This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone Absolute Strength Histogram ATR

KC Combo 46 Tick

by nishpa800
1 stars

Tick-chart overlay indicator that merges forty-six bullish and bearish combination markers into one study, replacing an earlier bull and bear pair. Combos blend Keltner Channel logic with a VWMA base line, ATR Supertrend, PB and J filter, pocket pivot and a di

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo 46 Tick
114 stars

This indicator adapts Donovan Wall's range filter to create trend-following trade labels on the price chart. It calculates a smoothed average price range using exponential moving averages and gates price fluctuations that fall within this threshold. When price

Indicator v4 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Smart Labelling: Range Filter

This indicator draws a SPY scalping panel in a separate pane. It calculates a Supertrend side from ATR smoothed by a selectable average, defaulting to HMA, and uses three moving averages of selectable type, defaulting to EMA lengths 13, 50, and 75. Colors mark

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro 2 Jerry
2 stars

Delta Volume Channels calculates volume-weighted delta channels and reference moving averages using lower timeframe intrabar volume data. It plots directly on the main price chart, displaying dynamic channel fills, reference lines, delta volume-weighted lines,

Indicator v5 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Delta Volume Channels [LucF]

KC Combo Bear

by nishpa800
1 stars

Time-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear

Day ATR

by ivansoft
1 stars

Calculates daily median and 85th percentile ranges for high-to-open and open-to-low distances over a 30-day lookback period using higher timeframe daily data. At each new trading day, the script projects expected upper and lower volatility levels directly on t

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Day ATR
47 stars

The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel

Indicator v6 Volatility & bandsTrend
Updated 8 months ago · MIT GitHub repository of Ultimate Channel (UCHANNEL)

This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Vein Feature Exporter Core 4H [WavesUnchained]

KC Combo Bear 44 v4.1

by nishpa800
1 stars

Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement, and colours are reserved for

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo Bear 44 v4.1
1 stars

This strategy identifies trend momentum shifts using a Twin Range Filter (TRF) oscillator and volatility regime gates. It calculates the ratio of fast and slow price ranges, smooths it through a double exponential moving average, and signals entries when the s

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Katana Flow v6
114 stars

This indicator modifies LazyBear's Squeeze Momentum indicator by scaling momentum values between 0 and 1. It identifies market compression when Bollinger Bands contract inside Keltner Channels, plotting colored dots at the 0.5 baseline to show whether a squeez

Indicator v4 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Squeeze Momentum Indicator Mod
13 stars

This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading

Strategy v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder A002

This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Vein: Accumulation Phase 4H [WavesUnchained]

This intraday strategy is designed for short-term scalping on equity and index markets like SPY. It evaluates price movement using configurable exponential and Hull moving averages combined with an ATR-based Supertrend calculation. The script plots signal arro

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 SPY Scalping PRO 2 Jerry

PF Probe 50 - Stop Limit Trail

by pineforge-4pass
1 stars

PF Probe 50 - Stop Limit Trail is a synthetic validation strategy designed to test simultaneous exit conditions. It opens long positions at 08:15 and short positions at 16:15 when flat. Position exits utilize a single bracket exit command incorporating an ATR-

Strategy v6 Volatility & bandsSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 50 - Stop Limit Trail

NO.1 V1 Fast Confirmed Flip

by vedkanani123
1 stars

A price-chart indicator that builds an adaptive core line by blending a Kaufman-style adaptive average with a zero-lag EMA, then surrounds it with ratcheting ATR trail rails. A buy label means the active side flips long and a sell label flips short, committed

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of NO.1 V1 Fast Confirmed Flip

KC Combo Bear 44 v4.4

by nishpa800
1 stars

Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement. This version removes the per-

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of KC Combo Bear 44 v4.4
1 stars

A Keltner channel breakout strategy. It goes long when the close crosses above the upper band and short when it crosses below the lower band, only if ADX is above a threshold and price is on the matching side of a 200 EMA. Each trade exits at the channel midli

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Sovereign Keltner

This indicator calculates the statistical variance of a price series over a user-defined lookback window and plots it in a separate pane. Using a ring buffer alongside running sums and squared sums, it computes sample dispersion efficiently without recalculati

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Variance, Dispersion or Spread (VARIANCE)

Hidden Relative Strength

by eddiebelaval
7 stars

The Hidden Relative Strength indicator normalizes price changes of a symbol by dividing them by ATR volatility, then subtracts the normalized move of a benchmark symbol such as QQQ to derive raw relative strength. This value is accumulated over time, scaled by

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Hidden Relative Strength

J8 Refactor

by g-moe
3 stars

J8 Refactor is a multi-indicator trading strategy that combines a custom Supertrend, multiple moving average filters, RSI levels, and MACD logic with Bollinger Bands. It executes entries based on multi-condition alignment and offers customizable exits, includi

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 Refactor

Volatility of Volatility (VOV)

by mushroom-men-Trading
2 stars

The Volatility of Volatility (VOV) indicator measures the rate of variation in price volatility over time. It first computes a rolling standard deviation of the chosen price source over a specified initial lookback period. It then calculates a second standard

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Volatility of Volatility (VOV)

KC Combo Bear Tick

by nishpa800
1 stars

Tick-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear Tick

Vein Exhaustion is a price-chart indicator that scores how stretched a directional move is before structure confirms a turn. It builds separate bull and bear scores from consecutive directional bars, EMA distance in ATR units, RSI and MFI extremes, volume-base

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Vein: Exhaustion [WavesUnchained]

MA & BB Levels [ST]

by eddiebelaval
7 stars

This indicator draws horizontal daily and weekly levels on the price chart from two exponential moving averages and a Bollinger-style envelope. It calculates EMA 9, EMA 20, and an EMA-based band with a configurable standard-deviation width, then requests those

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of MA & BB Levels [ST]

This indicator combines MACD calculations, Bollinger Bands, and Keltner Channels to identify trend conditions and momentum shifts. It plots colored MACD lines, dot signals, and a squeeze cloud in a separate pane to highlight overbought or oversold momentum lev

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Jerry Buy Sell Indicator Premium

Volatility Ratio (VR)

by mushroom-men-Trading
2 stars

The Volatility Ratio (VR) indicator measures short-term price range relative to average historical volatility. It calculates the current bar's True Range and divides it by an Average True Range (ATR) computed via Wilder's smoothed moving average with initial b

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Volatility Ratio (VR)

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