Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 7)

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 detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r

Strategy v5 Volatility & bandsBreakout
Updated 7 months ago · None stated GitHub repository of Bollinger Band Squeeze - Volatility Breakout
1 stars

Adaptive Regime Decoder estimates price velocity with a seven-point Savitzky-Golay style filter and plots it as a histogram and line in a separate pane. It also computes Shannon entropy of recent velocity values and compares it with a rolling percentile thresh

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Adaptive Regime Decoder

ATR Range Break

by itstherax
1 stars

Plots the 20-bar highest high and lowest low on the price chart, plus buy and sell levels set one ATR beyond them. A buy triangle appears when the close first moves above the upper level and a sell triangle when it first drops below the lower level. The ATR va

Indicator v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Range Break

HalfTrend

by 0xRadicalEd
1 stars

The indicator overlays HalfTrend trend-following lines and ATR channel bands on the main price chart. It calculates trend reversals using high and low price channels over a user-defined amplitude, combined with Average True Range deviation channels. Directiona

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of HalfTrend
1 stars

An oscillator pane that plots a Bollinger Band z-score as coloured columns with reference lines at plus and minus two and three. Colour depends on a volatility regime taken from the percentile rank of band width, separating squeeze, normal and expansion. It al

Indicator v5 SMC / ICT / price actionVolatility & bands
Updated 8 months ago · MIT GitHub repository of 15m BB-SMC Confluence Oscillator
1 stars

This indicator measures trend strength with Bollinger Bands. It computes a simple moving average as basis and plots upper and lower bands using standard deviation. The region between bands fills with color. Bar color changes based on price position relative to

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Trend Strength Signals Enhanced
1 stars

A Pine v5 strategy that classifies the market as volatile, trending or ranging using ATR against its history and ADX thresholds. In trending conditions it trades a 9 and 20 EMA crossover, and in ranging conditions it fades Bollinger Band extremes. Stops and ta

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of APSAlgo Adaptive Pattern System

Mean Reversion Trading Bot

by BenjaminLettner
1 stars

This strategy executes mean-reversion trades by combining RSI momentum, Bollinger Bands volatility, dynamic ATR stops, and Exponential Moving Averages for trend filtering. It seeks entry opportunities when price reaches extreme Bollinger Band boundaries alongs

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Mean Reversion Trading Bot
1 stars

0-DTE Momentum Continuation Pro is a Pine Script indicator that overlays labels on the price chart to mark A+ BUY, A+ SELL, B BUY and B SELL setups. It calculates EMA trend structure using fast and slow EMAs, checks momentum with close price position relative

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of 0-DTE Momentum Continuation Pro
1 stars

AGS Smart Signals 5M is an overlay indicator tuned for five-minute crypto charts. It draws an ATR-based cloud of bands around an EMA, filters direction with a trend EMA and RSI oversold and overbought levels, and marks buy and sell signals whose frequency is s

Indicator v5 ScalpingVolatility & bands
Updated 8 months ago · None stated GitHub repository of AGS Smart Signals 5M

Crypto Entry Signal

by caizongxun
1 stars

A Pine v5 indicator that draws Bollinger Bands on the price chart and marks buy and sell triangles. A buy appears when volume is above its 20-bar average by a set multiplier, the band basis is rising, and price touches the lower band or breaks below it and clo

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of Crypto Entry Signal

ES Professional Fade

by knectardev
1 stars

An ES futures fade strategy designed to trade market opening gaps during regular trading hours. It calculates opening gaps using percentage, point, and ATR thresholds while employing a market breadth TICK filter to veto trades on trend days. It features an exe

Strategy v6 Sessions & timeMean reversion
Updated 9 months ago · None stated GitHub repository of ES Professional Fade

Donchian Breakout + ATR Risk

by JustACoder279
1 stars

A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has

Strategy v5 BreakoutTrend Repaints
Updated 9 months ago · MIT GitHub repository of Donchian Breakout + ATR Risk
1 stars

A chart-overlay trailing stop that adapts to market conditions. It uses Kaufman's adaptive moving average to measure how efficiently price is moving, scales an ATR-based stop distance accordingly, and optionally adds a k-nearest-neighbours pattern layer that n

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Adaptive ML Trailing Stop

CodonATRStop

by codon-pro
1 stars

This library exports a function that returns a dynamic trailing stop price based on Average True Range. For longs it subtracts an ATR multiple from the close and ratchets the level upward, resetting the stop when price closes below the previous level. For shor

Library v6 Volatility & bands
Updated 10 months ago · MIT GitHub repository of CodonATRStop

TXF Choppy Detector

by amytsengtw
1 stars

The TXF Choppy Detector is an indicator that identifies choppy or sideways markets in Taiwan index futures using the Choppiness Index (CHOP). It plots Bollinger Bands on the price chart with customizable length and multiplier. The script detects washout signal

Indicator v5 Mean reversionVolatility & bands
Updated 10 months ago · None stated GitHub repository of TXF Choppy Detector
1 stars

This overlay strategy requires sequential confluence before it enters. A hybrid detector blends selected oscillators, including RSI, CCI, MFI, Bollinger percent B and Keltner percent K, and treats extreme overbought or oversold readings as the market regime. V

Strategy v6 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Stratégie Confluence Hybride-VMCB
1 stars

A chart-overlay indicator, a corrected variant of a crypto alert script, that combines RSI threshold crosses, a fast and slow EMA cross, Bollinger Band breaks, volume spikes, MACD and stochastic readings. Each alert group can be enabled separately, and a weigh

Indicator v6 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Crypto Trading Bot Pro Fixed

Spread Analysis

by Blendoxius
1 stars

An indicator that measures the candle spread, optionally as a percentage, and compares it with its own moving average to classify volatility as compression, normal, moderate, high or extreme using adjustable multipliers. Output can be shown as columns, histogr

Indicator v6 Volatility & bands
Updated 11 months ago · None stated GitHub repository of Spread Analysis

Combines three moving averages, MACD, RSI, a volatility length and Bollinger Bands on the price chart. Bollinger signals mark a buy when price crosses back above the lower band. Settings set the three average lengths, MACD fast, slow and signal values, RSI len

Indicator v5 Oscillators & momentumVolatility & bands
Updated 11 months ago · MIT GitHub repository of Adaptive Wave Interference Indicator with Bollinger Band Strategy
1 stars

ATR Volatility Trailing Stop plots an EMA trend moving average alongside dynamic ATR-based trailing stops on the price chart. The indicator determines trend direction from price relative to the EMA. Long trailing stop trails upward using ATR when uptrend, shor

Indicator v5 Volatility & bandsTrend
Updated 11 months ago · None stated GitHub repository of ATR Volatility Trailing Stop
1 stars

A price-chart trend indicator that passes the chosen source through a multi-order Kalman filter, then places ATR-multiple upper and lower bands around the filtered price and smooths them exponentially. The trend turns bullish when price crosses above the upper

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

2 Supertrend

by ktg0413
1 stars

Calculates and plots two Supertrend lines with different sensitivity settings alongside a 200-period EMA baseline on the price chart. The fast Supertrend uses a smaller ATR multiplier to capture short-term price momentum, while the slow Supertrend uses a large

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of 2 Supertrend

Strategy Version 1.2

by HypertextAssassin69
1 stars

A long strategy built on a 50-period Hull moving average crossing a 200-period EMA, with ADX strength, a short Hull slope and an optional RSI filter used to scale entry size in steps. It uses an ATR stop that tightens after a drawdown, staged profit-lock parti

Strategy v6 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Strategy Version 1.2

ATR Exit Indicator

by Shifrozy
1 stars

Plots ATR-based trailing exit levels on the price chart. It tracks the highest and lowest close over a lookback window, 200 bars by default, and sets a long exit level at three ATR below the high and a short exit level at three ATR above the low. Labels and al

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Exit Indicator
1 stars

ATR Retracement EMA Signals identifies momentum setups by detecting large candle expansions relative to Average True Range, followed by brief price retracements and moving average crossovers. When price experiences a strong bar move, retracing within a configu

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of ATR Retracement EMA Signals
1 stars

This strategy combines Exponential Moving Averages, the Relative Strength Index, and Average True Range with optional multi-timeframe confirmation to generate trade signals. Long trades trigger on fast EMA bullish crossovers when RSI is low, while short trades

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Demo Advanced Strategy v6

Buy 8/13/25E

by dsjrego
1 stars

A price chart overlay that plots a 9-period EMA and a Bollinger upper band and prints buy markers. A standard buy triangle appears on a confirmed green bar that closes above the EMA and above the close two bars back, provided the previous bar was not red. An e

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Buy 8/13/25E

A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Trend Following Breakout
1 stars

This indicator calculates the average high-to-low range of a user-selected number of prior candles on a chosen timeframe. It plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of b

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of ACR(Average Candle Range) With Targets

A strategy written for a 15-minute TRUMP perpetual swap chart. When a candle's high-to-low range exceeds a percentage threshold, it places a limit order against the candle's direction, short after a green candle and long after a red one, at a price between the

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

Ultimate Crypto Bot

by dextergocode
1 stars

This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ultimate Crypto Bot

Swing Trading Indicator

by armaandamani
1 stars

A separate-pane indicator built for crypto swing and day trading with an external bot. It plots a Stochastic RSI, a MACD with very long periods for the medium-term trend, and a Money Flow Index, and also uses two Bollinger Band sets for oversold entries and ex

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Swing Trading Indicator

Liquidity Zones

by MarcosACH
1 stars

Liquidity Zones highlights bars where volume is above a multiple of its moving average while short-term price volatility is below half of the average volatility. Matching bars are shaded as zones, with optional labels showing the zone volume in units or curren

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Liquidity Zones

Consolidation Zones

by MarcosACH
1 stars

Consolidation Zones draws boxes over periods when price stays inside a band around a simple moving average. A zone forms when every close in the last minimum-zone-length bars sits within one ATR of the average. Overlapping zones are extended and merged, and zo

Indicator v6 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Consolidation Zones
1 stars

Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Dynamic Anchored VWAP

Options MA Bollinger

by ShadowBrokersDevs
1 stars

An indicator on the price chart that draws a 20 period and a 50 period EMA together with Bollinger Bands, 20 period and 2 standard deviations by default, and fills the band area. It marks a buy triangle when the fast EMA crosses above the slow EMA or price clo

Indicator v6 Moving averagesVolatility & bands
Updated 1 year ago · MIT GitHub repository of Options MA Bollinger

Adaptive SuperTrend Strategy

by yagyesh-bobde
1 stars

The Adaptive SuperTrend Strategy is a custom trading strategy that calculates an adaptive SuperTrend value using volatility-adjusted factors. It determines high or low volatility by comparing ATR to its 100-period SMA and adjusts the SuperTrend factor accordin

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Adaptive SuperTrend Strategy

FusionBell Pro

by saleh-ato
1 stars

This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of FusionBell Pro
1 stars

This Pine Script indicator identifies potential trade entries for the USDJPY pair exclusively on 5-minute and 15-minute charts. It plots three Exponential Moving Averages: 9-period fast, 20-period slow, and 200-period trend filter. Signals trigger on EMA 9 cro

Indicator v6 Moving averagesVolatility & bands
1 stars

Calculates take profit and stop loss levels from the Average True Range and shows them on the price chart for long and short setups. Settings are the ATR period and separate multipliers for the stop loss and the take profit. The levels are computed from the la

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ATR Auto TP/SL Calculator
1 stars

A plain Average True Range indicator in a separate pane. It plots the ATR of the chart with an adjustable averaging length, 14 by default, and has no signals, levels, alerts or trade rules. The repository description and README present it as a way to size stop

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Average True Range
1 stars

Draws Bollinger Bands from up to three user-chosen timeframes at once on the price chart. For each timeframe it can show the basis line and bands at one, two and three standard deviations, with its own period, offset and colours. The average type can be SMA, E

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of MTF Bollinger Bands TT (3BB)

Supertrend Strategy

by meetghodasara
1 stars

A long-only strategy built on the built-in Supertrend indicator. It enters long when Supertrend flips to an uptrend and closes the position when it flips back to a downtrend, with orders processed on bar close. ATR length and factor are adjustable. Green and r

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Strategy

A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy LeftBar RightBar

ETHBTC MTPI V2.0

by Mikelkulla
1 stars

This strategy detects whether Ethereum outperforms Bitcoin relative to the overall market using MTPI signals. It combines outputs from DEMA Adaptive Fractal Range, DEMA Supertrend, Schaff Trend Cycle, RMI Trend Sniper, and FDI-Adaptive Supertrend indicators. L

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETHBTC MTPI V2.0

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