Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 14)

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

1 stars

TN Swarm Modular Executor combines four distinct sub-strategy modules—Momentum (CCI), Mean Reversion (RSI), Breakout (Bollinger Bands), and Volatility (ATR channels)—into a multi-agent consensus engine. It calculates individual member signals and aggregates th

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Swarm Modular Executor

Adaptive Market Suite

by jayadevrana
1 stars

This indicator bundles four switchable modules, each with its own settings. The first is an adaptive moving average that speeds up in clean trends and shows a trending or ranging read. The second draws volatility bands whose width follows the ATR percentile. T

Indicator v6 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Adaptive Market Suite
1 stars

This Pine Script indicator plots daily support and resistance levels for XAUUSD gold at 08:00 SGT on weekdays. It finds resistance by backward searching 5-minute candles until the 07:55 candle close exceeds the 07:50 high, then repeats for support when the clo

Indicator v5 Support & resistanceVolatility & bands
Updated 2 months ago · None stated GitHub repository of Gold 08:00 SGT Support/Resistance
1 stars

This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b

Strategy v6 Mean reversionMoving averages
Updated 3 months ago · MIT GitHub repository of VWAP Reversion Bands [QuantForge]

GEKO OpenRange

by grzegorzkowalskigk-jpg
1 stars

This indicator for index futures such as ES and NQ plots the regular-session opening range as a box with high and low lines. It offers two modes: a classic opening range breakout and a Noise Area model with volatility-based boundaries from the open and a VWAP

Indicator v6 Sessions & timeBreakout
Updated 3 months ago · Custom licence GitHub repository of GEKO OpenRange

CryptoVision Explorer

by unemployedrabi
1 stars

Projects a distribution of possible future price moves on the price chart using a Monte Carlo style simulation of drift and returns. Settings control the number of simulations, lookback, steps into the future, outcome bins, smoothing, drift method (standard or

Indicator v5 Volatility & bands
Updated 4 months ago · MIT GitHub repository of CryptoVision Explorer

BB(10,2) TP20 MTF

by zraesdev-hub
1 stars

A long-only Bollinger Band strategy intended for daily stock charts. It buys when the previous close was below the lower band, the current open is also below it, and no position is open. Mode S1 targets a large percentage gain on the same day and otherwise clo

Strategy v5 Mean reversionVolatility & bands
Updated 4 months ago · None stated GitHub repository of BB(10,2) TP20 MTF
1 stars

This strategy identifies Minervini Volume Confirmation Patterns fused with Smart Money Concepts for Bursa Malaysia stocks. It plots entry and exit signals with trend lines, boxes and labels directly on the price chart. The strategy enters long positions when v

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX KLSE v8

BB Squeeze Breakout

by shubhamtaywade82
1 stars

A strategy that trades the release of a Bollinger Band and Keltner Channel squeeze. When the bands move back outside the channel, it buys if momentum, measured against the Donchian midline, is positive and sells short if it is negative. An optional ATR-based s

Strategy v6 Volatility & bandsBreakout Archived
Updated 5 months ago · None stated GitHub repository of BB Squeeze Breakout

Talons Chandelier Exit

by muammeryldrm42
1 stars

A strategy that builds chandelier style stops from the highest high and lowest low over a period minus or plus an ATR multiple. It goes long when close crosses above the short stop with price above a 200 EMA, and short when close crosses below the long stop wi

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Talons Chandelier Exit

Algo3.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 Algo3.0

Plots annualised historical volatility using a choice of estimators, including close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, exponentially weighted and absolute-deviation methods. Inputs set the model, length, annualisation factor, a pe

Indicator v5 Volatility & bands
Updated 6 months ago · None stated GitHub repository of Historical Volatility Estimators
1 stars

A single indicator that combines two systems and enables each only on its own timeframe. On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standa

Indicator v6 BreakoutMean reversion
Updated 7 months ago · None stated GitHub repository of V19 (15M) + V21 (4H) Hybrid

TrendHorizon Suite

by Corbanistan
1 stars

This indicator combines three trend tools on the price chart. Smart signals colour candles and place labels by trend direction, with a time horizon setting from fast to slow and an option to show only strong signals. A fair value trail draws an ATR-based cloud

Indicator v6 TrendVolatility & bands
Updated 9 months ago · MPL-2.0 GitHub repository of TrendHorizon Suite
1 stars

Calculates trend channels based on a Simple Moving Average (SMA) and Average True Range (ATR) envelope. When price crosses outside the volatility envelope, the indicator identifies trend changes and draws dynamic mid, top, and bottom channel lines directly on

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Future Trend Channel [ChartPrime]
1 stars

A chart-overlay indicator for lower timeframes that draws a fast ATR trailing stop and marks buy and sell triangles when price breaks it, with a volatility sensitivity filter. A configurable dashboard reports market state using the Choppiness Index, RSI above

Indicator v6 Volatility & bandsScalping
Updated 9 months ago · None stated GitHub repository of Gemini Scalping Dashboard

Risk Interval Derivatives

by tqfoster1035
1 stars

Risk Interval Derivatives is an overlay indicator for E-mini S&P 500 and Nasdaq 100 futures. It detects ES or NQ from the chart symbol, takes a fixed risk interval in points (or a manual override), and plots multiples of that interval above and below the previ

Indicator v6 Support & resistanceVolatility & bands
Updated 10 months ago · None stated GitHub repository of Risk Interval Derivatives
1 stars

Draws support and resistance boxes from pivot highs and lows on the price chart, with box height set as a multiple of ATR. It also marks price gaps above a minimum percentage, with an option to show filled ones, and draws stop loss and two take profit lines. T

Indicator v6 Support & resistanceVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Levels S/R Boxes + Gaps + SL/TP
1 stars

The Donchian Breakout Strategy is a Turtle-style breakout system that plots Donchian channels on the price chart. It generates long entries when the close price crosses above the upper channel and short entries when crossing below the lower channel. Exits are

Strategy v5 BreakoutTrend
Updated 11 months ago · None stated GitHub repository of Donchian Breakout Strategy

Momentum Trend Strategy

by yagyesh-bobde
1 stars

The Momentum Trend Strategy combines the Average Directional Index (ADX), SuperTrend, and Heikin Ashi candle colors to identify and trade trend momentum on the price chart. It enters long or short positions when ADX exceeds an entry threshold and SuperTrend al

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Momentum Trend Strategy
1 stars

This indicator plots envelope bands based on a moving average or exponential moving average of a chosen price source. It computes RSI with user-set length and source. Signals trigger on crossovers: buy when price crosses the lower envelope band while RSI falls

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of ENVELOPE - RSI - Buy Sell Signals

Range

by equitymarkets
1 stars

Range calculates relative price ranges across four user-specified currency pairs by comparing high and low values against close prices from a secondary timeframe. It computes the average range across these pairs to establish a baseline volatility benchmark. Th

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 1 year ago · MIT GitHub repository of Range

This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t

Strategy v6 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR and Stoploss

ETHBTC MTPI

by Mikelkulla
1 stars

ETHBTC MTPI is a multi-indicator trend-following strategy designed for crypto pairs to determine relative market strength. It combines up to five toggleable components: Liquidity-Weighted Supertrend, dual exponential moving averages, DEMA Supertrend, DEMA AFR,

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of ETHBTC MTPI
1 stars

The IBKR Safe Forex Strategy is a Pine Script v6 strategy that trades forex pairs using crossovers of 10-period and 50-period EMAs, filtered by a 200-period EMA and restricted to London or New York session overlap. It enters long positions on fast EMA above sl

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of IBKR Safe Forex Strategy
1 stars

This strategy plots price and Bollinger Bands on the chart using a 120-bar SMA basis and 2 standard deviation multiplier. It generates signals from band touches and an exit SMA of 110 bars. Risk management limits losses to 6 percent of trade value. Money manag

Strategy v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Strategy

Fractal Enculfing Caldles

by fiji-solutions
1 stars

This indicator identifies bullish and bearish engulfing candlestick patterns directly on the price chart. To refine signal quality, it provides three optional filters: an ATR filter to cap maximum candle size relative to volatility, a swing high or low filter

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Fractal Enculfing Caldles

Average True Range

by JoeTonDev
1 stars

An ATR indicator in a separate pane with four display types: regular price units, percentage of close, ticks or currency value for a chosen position size. The smoothing method can be EMA, RMA, SMA or WMA, and an EMA of the ATR is plotted and colored by rising

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of Average True Range

AmiComStrategy

by amico1234
1 stars

AmiComStrategy is an indicator that calculates correlations between securities using the Corell indicator over specified timeframes such as 5D. It filters trading opportunities based on session times like 1300-1700 and security up and down times such as 3H. Th

Indicator v4 Sessions & timeVolatility & bands
Updated 2 years ago · None stated GitHub repository of AmiComStrategy
1 stars

This strategy trades mean-reversion bounces using Bollinger Bands and constructs JSON webhook payloads for automated execution. It opens a long position when the price crosses back above the lower band within a specified date filter and closes the position whe

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · MPL-2.0 GitHub repository of Bolinger Bands Strategy

Barbwire v3.0.0

by itmakesyousick
1 stars

Detects barbwire zones, runs of bars with unusually small size, and boxes them on the price chart. Bar size defaults to a hybrid blend of Heikin-Ashi, open-close and high-low measures. A mixed method is on by default, with optional stochastic and percent-rank

Indicator v5 Candlestick patternsVolatility & bands
Updated 4 years ago · None stated GitHub repository of Barbwire v3.0.0

BTC Premium Strategy

by samliu0206
1 stars

Calculates a volume-weighted perpetual futures premium against spot prices across multiple cryptocurrency exchanges, including Binance, OKX, Huobi, Coinbase, and BitMEX, for BTC or ETH. It applies a user-selected moving average to the log premium value and plo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of BTC Premium Strategy
1 stars

This strategy uses the same smoothed ATR-above-its-low measure as the matching indicator, shown in a separate pane. It opens a long when the close turns up after a down close while the volatility value is rising, and a short when the close turns down after an

Strategy v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of ATR Volatility Power Strategy
1 stars

A single file that bundles several standard TradingView indicators as reference snippets. The first plots Accumulation/Distribution, a cumulative volume line, in a separate pane. Later sections include ADX, ATR with selectable smoothing, Bollinger Percent B, H

Indicator v4 VolumeVolatility & bands
Updated 6 years ago · None stated GitHub repository of Accumulation/Distribution

HalfTrend

by everget
947 stars

HalfTrend plots a trailing trend line on the price chart. It tracks recent highs and lows over an amplitude window and flips between up and down when a simple moving average of highs or lows crosses the tracked extreme and price confirms. The line is blue in a

Indicator v6 TrendVolatility & bands
Updated 12 days ago · GPL-3.0 GitHub repository of HalfTrend

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill
330 stars

Double Supertrend [Alorse] is a trend-following strategy that calculates two Supertrend indicators with distinct ATR periods and multiplier factors directly on the price chart. It enters long or short positions when the fast Supertrend signals a trend. Exits o

Strategy v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Double Supertrend [Alorse]
318 stars

Calculates and plots moving averages on selected VIX volatility terms (VIX9D, VIX, VIX3M, or VIX6M) in a separate pane. The script computes user-defined short and long moving averages using EMA or SMA. It shades the background red when the short-term moving av

Indicator v5 Volatility & bandsMoving averages
Updated 2 months ago · MIT GitHub repository of [TVT] VIX Short Term Danger

LiqSpikeBounceLong Feb2026

by agutinbaigo28
147 stars

LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding

Indicator v5 Volatility & bandsVolume
Updated 6 weeks ago · MIT GitHub repository of LiqSpikeBounceLong Feb2026

Bollinger Bands Strategy

by cklose2000
105 stars

This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po

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

This overlay strategy combines a Chandelier Exit with a zero-lag least squares moving average. Although the header mentions Heikin Ashi candles, the calculations use ordinary closes. An ATR trailing stop sets long and short levels, and direction flips when pri

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Chandelier Exit & ZLSMA Strategy

PPO ATR Bands

by cryptorife
75 stars

PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of PPO ATR Bands
55 stars

This indicator calculates Bollinger Bands from the close with TradingView's built-in ta.bb function and plots them on the price chart. It draws a middle band plus upper and lower bands and fills the area between the outer bands. The length input sets the lookb

Indicator v6 Volatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of Bollinger Bands Example
43 stars

This indicator plots the percentile rank of a short ATR divided by a longer ATR in a separate pane. It calculates two average true ranges, forms their ratio, ranks that ratio over a lookback window, and smooths the rank with an exponential moving average. User

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

Bollinger Bands

by modster
32 stars

This indicator plots a Bollinger-style envelope on the price chart. It calculates a simple moving average of the chosen source and multiplies the standard deviation by the multiplier to set the deviation. It draws the basis plus two pairs of offset lines at 0.

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Bollinger Bands

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