Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 42)

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

PF IES probe 01 - adx regime

by pineforge-4pass
1 stars

PF IES probe 01 is a Pine Script v6 strategy that calculates ADX with a custom DI chain using ta.rma smoothing and manual plus/minus DM flow. It applies an ATR-ratio volatility gate comparing current ATR to its 42-period SMA to classify regimes into four categ

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 01 - adx regime

DEPV2 Debug S48

by YuceSezar89
1 stars

DEPV2 Debug S48 is a multi-symbol crypto indicator that monitors up to 20 cryptocurrency pairs across four analytical categories: trend, momentum, volatility, and volume. It evaluates trading conditions using several signal modes, including single-dimension tr

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S48

DEPV2 DEBUG S5

by YuceSezar89
1 stars

DEPV2 DEBUG S5 monitors a multi-ticker basket of up to twenty cryptocurrency pairs across four analytical dimensions: trend, momentum, volatility, and volume. It evaluates market signals using customizable modes, including individual method triggers, simultane

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S5

Evasive SuperTrend

by vedkanani123
1 stars

A SuperTrend variant for the price chart based on ATR bands around the midpoint of each bar. When price comes closer to the active band than a noise threshold measured in ATRs, the band is pushed away by an expansion amount instead of tightening, which reduces

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Evasive SuperTrend

First Bar Fable v5

by nishpa800
1 stars

A larger release of a composite detection indicator with many toggleable numbered signals drawn on the price chart. They cover relative volume setups with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musashi, Whale, Dynami

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of First Bar Fable v5

Historical Volatility

by TWODS-CAPITAL
37 stars

This indicator calculates historical volatility as the standard deviation of logarithmic close-to-close returns over a user-set length. It annualizes that value with 365 days and a period factor of one on intraday or one-day charts, otherwise seven, then multi

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Historical Volatility

Realized Volatility (RV)

by mushroom-men-Trading
2 stars

This indicator computes realized volatility from intraday price returns. It fetches close prices from a lower timeframe, calculates the sum of squared logarithmic returns, and derives the volatility as the square root of that sum. A simple moving average smoot

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Realized Volatility (RV)

DEPV2 DEBUG S50

by YuceSezar89
1 stars

This indicator is a debug pane for a multi-symbol signal model. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode selects a single c

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S50

Ulcer Index

by everget
947 stars

Calculates the Ulcer Index indicator to measure downside risk and price drawdowns over a specified lookback period. It computes percentage drawdowns relative to the highest price, averages their squares, and takes the square root. An adjustable signal line usi

Indicator v4 Volatility & bands
Updated 12 days ago · GPL-3.0 GitHub repository of Ulcer Index

This strategy evaluates trades using an SMA baseline, Hull Moving Average trend filter, and ATR volatility conditions. It triggers long entries when price exceeds the baseline by an ATR qualifier distance while trading above the HMA trend bias, with an optiona

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Baseline Cross Qualifier Volatility Strategy with HMA Trend Bias

DEPV2 DEBUG S6

by YuceSezar89
1 stars

DEPV2 DEBUG S6 is a multi-symbol cryptocurrency indicator that combines signals from trend, momentum, volatility, and volume methods. It generates buy and sell signals based on user-selected modes including simultaneous confirmation of at least N methods, sequ

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S6

Volatility Stop

by ivansoft
1 stars

Plots a trailing stop level on the price chart based on ATR, drawn as crosses that are green in an uptrend and red in a downtrend. The stop follows the highest or lowest source value since the last flip, offset by an ATR multiple. Inputs set ATR length, source

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Volatility Stop

BB and KC Strategy

by hasnocool
106 stars

This strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BB and KC Strategy

This indicator classifies market behavior into momentum, mean-reversion, noise, or mixed regimes. It fuses four statistical predictability sensors—Variance Ratio across multiple horizons, return autocorrelation, Hurst exponent approximation, and fractal effici

Indicator v6 TrendMean reversion
Updated 3 days ago · MIT GitHub repository of Predictability Regime Index [WavesUnchained]

Discord Alerts

by Web3Degenerate
2 stars

Discord Alerts builds TradingView alert text as Discord webhook JSON. It calculates percentage price change, a 14-period RSI, and a 14-period ATR, then formats those values into an embed with a bot name, avatar, icons, title link, optional message, and optiona

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Discord Alerts

PF IES probe 05 - bb/kc squeeze

by pineforge-4pass
1 stars

This Pine Script strategy detects volatility squeeze releases using parallel Bollinger Bands and Keltner Channels calculated with length 20 and specified multipliers. It plots the bands and channels overlaid on the price chart. The strategy enters a long posit

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 05 - bb/kc squeeze

P_syn_tuples

by GammaExpansion
1 stars

This indicator serves as a synthetic test script demonstrating tuple destructuring syntax in Pine Script v6. It calls multiple technical functions that return tuples, including a custom min-max function on candle bodies, MACD, Supertrend, Bollinger Bands, and

Indicator v6 TrendOscillators & momentum
Updated 7 days ago · MIT GitHub repository of P_syn_tuples

DEPV2 DEBUG S7

by YuceSezar89
1 stars

DEPV2 DEBUG S7 is a Pine Script v6 indicator that draws in a separate pane. It tracks up to twenty user-selected symbols, defaulting to Binance USDT perpetual crypto pairs. Signals use trend, momentum, volatility, and volume methods alone, together, or in a ti

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S7

BB Strategy tooba

by hasnocool
106 stars

This strategy executes trades based on Bollinger Band crossovers on the price chart. It calculates a simple moving average basis along with standard deviation bands. When the closing price crosses above the lower band, it places a long stop order, and when pri

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BB Strategy tooba

ATR Breakout

by TamaraKGreen
46 stars

This indicator plots the 100-bar percent rank of ATR in a separate pane and draws a midline at 50. It colors that midline green, red, or gray by comparing the close with the open a set number of bars earlier against a multiple of ATR across a lookback window.

Indicator v5 Volatility & bandsBreakout
Updated 8 weeks ago · None stated GitHub repository of ATR Breakout
13 stars

This strategy automates the TradingLatino methodology by evaluating Squeeze Momentum combined with the Average Directional Index (ADX). It executes long or short positions based on momentum shifts and directional strength. Risk management options include const

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Ruckard Lupown TradingLatino A002

This indicator classifies market conditions into Trend, Range, or Chaos regimes by combining the Kaufman Efficiency Ratio, Fractal Dimension Index, and Choppiness Index into a single trendiness metric. It normalizes and applies custom weightings to each sensor

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Regime Classifier [WavesUnchained]

Relative Volatility Index (RVI)

by mushroom-men-Trading
2 stars

This indicator calculates the Relative Volatility Index (RVI), which measures price volatility directionally in a separate pane. RVI applies Wilder's smoothing to upward and downward standard deviations of price changes over a specified lookback period, genera

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Relative Volatility Index (RVI)

DEPV2 DEBUG S8

by YuceSezar89
1 stars

DEPV2 DEBUG S8 is a Pine Script v6 indicator that draws in a separate pane. It watches up to twenty user-selected crypto perpetual symbols, defaulting to Binance USDT perpetual contracts. Direction comes from four classes: trend, momentum, volatility, and volu

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S8

Grok Prime Flip Engine v1

by vedkanani123
1 stars

An always-in flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A regime layer classifies the market as range or trend using ADX, efficiency and a range box, and can freeze aggressive paths in a range. The ATR

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Grok Prime Flip Engine v1
1 stars

This strategy plots a Vegas-style exponential moving average tunnel on the price chart, plus a 12-period EMA, a 240-period SMA, and Bollinger Bands. It also computes a MACD difference from 48- and 56-period EMAs. Long entries open on tunnel-average crosses or

Strategy v4 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Vegas Tunnel strategy

Vortex Bands

by everget
947 stars

The Vortex Bands indicator calculates a custom moving average basis from the selected source using a two-stage EMA approximation. It then plots an upper band as the basis plus a scaled deviation and a lower band symmetrically. The script fills the background b

Indicator v4 Volatility & bandsMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Vortex Bands

BB%B Strat

by hasnocool
106 stars

This strategy trades mean-reversion setups using the Bollinger Bands Percent Bandwidth (%B) oscillator plotted in a separate pane. It calculates upper and lower bands using a simple moving average and standard deviation multiplier. Long positions are entered w

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BB%B Strat
65 stars

Calculates a True Range balance value by comparing the current True Range against historical True Range values over a user-defined lookback period using a loop. For each historical bar within the lookback window, it evaluates the sign of the True Range differe

Indicator v4 Volatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from inside for loops

This overlay classifies the chart into bull, bear, or neutral regimes from moving-average zone position and an adaptive engine driven by the efficiency ratio and ATR entry and exit bands. A volatility percentile rank adds quiet, normal, or volatile context, pl

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Regime Detector (MA Zones Overlay) [WavesUnchained]

DEPV2 DEBUG S9

by YuceSezar89
1 stars

DEPV2 DEBUG S9 is a multi-symbol indicator for 20 major cryptocurrencies traded on Binance futures. It generates trading signals by combining four method classes: trend based on price levels, momentum using rate of change, volatility based on expansion or nois

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S9
1 stars

A price-chart indicator by BigBeluga, based on the HalfTrend logic from everget, that draws a HalfTrend line with ATR channel bands and prints long and short signals on trend flips. Each signal draws entry, stop loss and three take-profit levels, with the stop

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of HalfTrend Long/Short Signal Engine

VWAP Delta

by ivansoft
1 stars

An indicator in a separate pane that plots how far price is from an anchored volume weighted average price, as a percentage of the VWAP. The VWAP itself is drawn on the price chart. Percentile lines over a chosen number of bars mark the two upper and lower ext

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of VWAP Delta

BBPullback

by hasnocool
106 stars

This strategy executes pullback trades based on internally computed Bollinger Bands and candle price action directly on the main price chart. It tracks breakout and pullback states to trigger long and short entries. Users can select among three distinct take p

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BBPullback
99 stars

Ehlers Automatic Gain Control (AGC) detrends raw price data using a roofing filter—combining a two-pole high-pass filter and a Super Smoother—to generate a zero-mean oscillating signal. It then applies an automatic gain control algorithm that tracks exponentia

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Automatic Gain Control (AGC)
65 stars

This indicator demonstrates inspecting internal variables from within loop structures, originally authored for TradingView documentation. It calculates a cumulative balance of true range changes by iterating through past bars up to a user-defined lookback peri

Indicator v4 Volatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from inside for loops

Keltner Channels

by TWODS-CAPITAL
37 stars

This indicator plots Keltner Channels on the price chart. It builds a basis from an exponential or simple moving average of a chosen source, then places upper and lower bands a multiplier away from that basis. Band width uses average true range, true range, or

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · MIT GitHub repository of Keltner Channels

The Regime Transition Engine categorizes the market into seven distinct regime states, including compression, expansion, trend, and exhaustion. It calculates volatility percentiles, efficiency ratios, choppiness, and linear regression slopes to measure market

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Regime Transition Engine [WavesUnchained]

PF IES Probe 08 - Equity Sizing

by pineforge-4pass
1 stars

PF IES Probe 08 is a strategy designed to evaluate equity-feedback dynamic position sizing logic. It determines market regimes using the Average Directional Index to scale position size dynamically based on current strategy equity, user-defined risk percentage

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 08 - Equity Sizing

DEPV2 Debug Siga

by YuceSezar89
1 stars

DEPV2 is a multi-symbol crypto indicator that generates trading signals across 20 Binance assets including BTC, ETH, and SOL. It analyzes four method classes—trend, momentum, volatility, and volume—using modes such as simultaneous confirmation requiring at lea

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug Siga
1 stars

A trend indicator on the price chart that prints BUY and SELL labels on confirmed bar closes, each meant to exit one side and enter the other. It combines a Supertrend line, fast and slow EMAs and a ZLEMA, and requires ADX, DMI spread and RSI conditions plus a

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Hermes Prime v1 - Confirmed Flip

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