Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 18)

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

An indicator on the price chart exported from an optimiser, with a long list of switchable entry patterns, all off by default in the visible settings. Options include pivot points, engulfing and pin bar candles, Bollinger, Donchian and ATR channel breakouts, m

Indicator v6 BreakoutCandlestick patterns
Updated 2 days ago · None stated GitHub repository of USE Optimizer Export

An indicator that finds swing structure with pivots, draws a Fibonacci cloud and levels, and runs an adaptive trailing line that changes with a trend, range or volatile regime from ADX and ATR. Signals come from a trailing flip or from a cross of the 0.5 level

Indicator v6 TrendSupport & resistance

Leveraged Perp Arm

by nvolpe2007-cell
1 stars

A simulated leveraged perpetual futures strategy with three modes in one script. Direction comes from a 50-bar SMA or a 21 and 55 EMA cross, and exits use either a fixed take profit and hard stop or an ATR chandelier trail. Leverage is capped, with maintenance

Strategy v6 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of Leveraged Perp Arm
1 stars

A separate-pane diagnostic that measures downside effort as the average of down-bar moves divided by ATR, drawn as inverted heat-coloured columns. It flags absorption and climax bars when price sits below a weekly midline built from an EMA and SMA and effort e

Indicator v6 Volatility & bandsVolume Repaints
Updated 3 days ago · None stated GitHub repository of V6.0-Down (Right Diagnostic)

Ghost Alpha Strategy

by mphinance
1 stars

A strategy version of the Ghost Alpha overlay, using the same Hull band, TRAMA, Keltner bands, moving averages, swing structure, Williams %R exhaustion and squeeze components with a minimum grade filter. The strategy settings use percent-of-equity sizing at th

Strategy v6 TrendVolatility & bands
Updated 3 days ago · Custom licence GitHub repository of Ghost Alpha Strategy

BB Squeeze Breakout

by pineforge-4pass
1 stars

A strategy that detects a volatility squeeze when Bollinger Bands sit inside Keltner Channels. After a squeeze, it waits for the bands to expand outside the channels, then enters long if a linear regression momentum value is positive or short if it is negative

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of BB Squeeze Breakout

A Pine v6 strategy for crypto charts that looks for an RSI oversold setup together with a Fibonacci-spaced Bollinger Band setup, then waits for a reclaim as confirmation. Optional filters include a trend moving average on the chart and a higher timeframe, a vo

Strategy v6 Mean reversionOscillators & momentum
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro RSI + Fibonacci BB Regime

DEPV2 A3 MOMENTUM

by YuceSezar89
1 stars

This indicator calculates a momentum z-score using the rate of change of log returns over a specified period, normalized by the standard deviation of log returns over a longer window. It plots the z-score, the momentum state (positive, neutral, or negative), a

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A3 MOMENTUM

This indicator classifies each bar into a low, middle, or high volatility regime by comparing ATR as a percentage of close with the 33rd and 67th percentiles of that measure over a rolling sample window. It overlays optional background shading on the price cha

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Regime Tercile Dashboard
1 stars

A research indicator, with no trade signals, that finds unusually large candles on the 5 and 15 minute timeframes and the chart timeframe, and studies how price returns to the other end of each one. A news candle must exceed a multiple of the largest recent ra

Indicator v6 Candlestick patternsVolatility & bands
Updated 2 weeks ago · None stated GitHub repository of News Candle Research
1 stars

A long-only research strategy that enters when momentum, the close divided by the close several bars back minus one, crosses from zero or below to above zero. It exits when momentum turns negative or an ATR-based trailing stop is hit. Signals are decided on co

Strategy v5 TrendVolatility & bands
Updated 3 weeks ago · None stated GitHub repository of Momentum ATR Next-Bar Open

Kernal Cipher Strategy

by kdricha0602
1 stars

Kernal Cipher Strategy is a price-chart overlay that backtests the Kernal Cipher confirmed-bar signal engine. It enters long or short at the next bar's open when trend, regime, and oscillator filters agree, then exits on an adaptive ATR stop or an opposite sig

Strategy v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher Strategy
1 stars

This indicator calculates a dynamic spine midline and adaptive cycles based on user-selected time intervals, dynamic step changes, or fractal distances. It processes price source movements against configured percentage thresholds to project adaptive cloud boun

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Golden Cloud

Webby RSI

by peterdmv
1 stars

The Webby RSI indicator calculates a momentum oscillator by measuring price distance to a 21 EMA in 50 ATR units. The value smooths into a 10 SMA histogram MA. It plots the absolute value as colored columns and the MA as a line in a separate pane. Inputs adjus

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of Webby RSI
1 stars

A trend strategy on the price chart based on an ATR chandelier trailing line with a five-level trend state that marks warning and danger zones as price nears the line. A flip needs a minimum candle body. The multiplier can stay fixed or adapt using a simple me

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Chandelier Flip Radar

Fusion Cipher Strategy

by shahzaib-574
1 stars

Fusion Cipher Strategy is an overlay strategy that scores wave momentum, money flow, VWAP, RSI, Stochastic RSI, ADX, and divergence conditions before opening trades. It enters long when the composite score meets a minimum and the wave is below a pullback thres

Strategy v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Fusion Cipher Strategy

Keltner Channels

by majohnst
1 stars

This indicator calculates and plots multi-band Keltner Channels directly on the price chart. It projects a central moving average alongside four upper and four lower channel bands spaced at incremental multipliers of the selected volatility range. Users can to

Indicator v6 Volatility & bandsMoving averages
Updated 4 months ago · None stated GitHub repository of Keltner Channels

TTM Squeeze Box

by riegodavid-git
1 stars

An overlay indicator that draws a box around each squeeze period. A squeeze starts when the Bollinger Bands move fully inside the Keltner Channel. While it lasts, a border-only box grows to follow the highest high and lowest low, and it is left on the chart wh

Indicator v6 Volatility & bandsBreakout
Updated 4 months ago · None stated GitHub repository of TTM Squeeze Box
1 stars

An indicator for the price chart that draws intraday levels for Nasdaq futures by combining a volatility-index implied one-day move from the cash open with an initial balance extension. The blend can be a midpoint, maximum extension or minimum conservative mod

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Intraday Hold Levels (VIX + IB)

Dynamic Support Line

by rubbermetal
1 stars

Dynamic Support Line plots a composite moving average built by averaging six moving average types, then smoothing the result, with upper and lower bands set by a standard deviation multiplier. The fill turns green when price is above the mid line and red below

Indicator v6 Moving averagesVolatility & bands
Updated 4 months ago · MPL-2.0 GitHub repository of Dynamic Support Line

BVortex XAUUSD 1H

by Alberto082544
1 stars

This strategy trades XAUUSD on the one-hour chart. It builds a scaled Vortex oscillator from directional movement and flags bars that leave an upper or lower extreme with a matching candle. Entries also need ADX at or above a set minimum and a swing-pivot tren

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex XAUUSD 1H

QUANT-OMEGA Strategy

by princeleuel-code
1 stars

A strategy version of the QUANT-OMEGA regime and ensemble signal. It classifies the market with ADX and ATR, scores trend, mean-reversion and breakout signals into a confidence value, and enters only above set thresholds. Stops and targets are ATR multiples. P

Strategy v5 TrendMean reversion
Updated 5 months ago · None stated GitHub repository of QUANT-OMEGA Strategy

A separate-pane indicator that combines DMI, ADX, MACD and a squeeze signal. It plots plus and minus directional indicators with a selectable smoothing type (RMA by default) and an ADX line with an adjustable key level, and shades the background by trend direc

Indicator v6 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Directional Movement Index and ADX

Helion Trend Weave

by Focal-QuantAI
1 stars

An indicator on the price chart that draws a ribbon of moving averages, 8 by default, starting at a fast period and spaced by a fixed step. A volatility option compares a fast and slow ATR to stretch or shrink the periods between a floor and ceiling. It shades

Indicator v6 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of Helion Trend Weave

This indicator identifies Hammer and Inverted Hammer candlestick patterns overlaid directly on the price chart. It evaluates body proportions, upper wick lengths, and lower wick ratios against user-defined thresholds. To filter out low-volatility noise, candle

Indicator v6 Candlestick patternsVolatility & bands
1 stars

This strategy builds the high and low of a configurable Asian session and locks that range when the session ends. During the London window it enters long when price closes above the range high plus a pip buffer, or short when it closes below the range low minu

Strategy v5 BreakoutSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of London Breakout - Session Strategy

Trend-Filtered Reversal

by caizongxun
1 stars

A separate-pane indicator for counter-trend reversal setups that are filtered by a baseline EMA trend. A bearish setup needs price at a wide upper Bollinger Band, high volume or an overbought RSI, and a rejection wick; the bullish setup mirrors this. In a stro

Indicator v5 Mean reversionVolatility & bands
Updated 8 months ago · MIT GitHub repository of Trend-Filtered Reversal

ARC VMAlgo

by Tradehook-org
1 stars

ARC VMAlgo is an indicator that plots a histogram in a separate pane. It calculates volatility bands using a Bollinger-style SMA and standard deviation. It computes a MACD-style momentum oscillator with fast and slow EMAs. It normalizes distance to bands using

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of ARC VMAlgo

Supertrend 18/4.3

by trustdan
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It uses the built-in Supertrend with an ATR period of 18 and a multiplier of 4.3. It buys when the Supertrend turns to an uptrend and closes the position when it turns

Strategy v6 TrendVolatility & bands
Updated 9 months ago · MIT GitHub repository of Supertrend 18/4.3

Daily ATR Levels

by sbtnc
1 stars

Plots horizontal levels above and below the daily open based on the Average True Range, drawn on the price chart. The ATR length defaults to 20, and the reference can be yesterday's ATR or today's. Levels change colour once price reaches or passes them. Option

Indicator v5 Volatility & bandsSupport & resistance
Updated 9 months ago · MPL-2.0 GitHub repository of Daily ATR Levels

This overlay indicator draws trendlines on the price chart and marks breakouts with optional targets. It builds a slope from successive changes in a wick or body source over a user-set period, then extends the line by a selected multiple of the bar interval. P

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Trendline Breakouts With Targets [ Chartprime ]
1 stars

A chart-overlay trend filter that blends a slower smoothed moving average and a faster TEMA into one baseline, smooths it again with an EMA, and builds ATR bands around it. A close above the upper band sets a long regime, a close below the lower band sets a sh

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of TwinSmooth ATR Bands
1 stars

This strategy executes trades based on VuManChu-inspired WaveTrend signals combined with a 200 EMA trend filter and multi-timeframe confirmation from H1 and H4 charts. Entries are evaluated using WaveTrend oversold conditions, RSI, MFI, and an optional ADX fil

Strategy v6 Oscillators & momentumTrend
Updated 10 months ago · None stated GitHub repository of VMC Strat M15 Ultimate (ADX + Div)

Crypto Trading Bot Pro

by KirstonKK
1 stars

A chart-overlay indicator that combines RSI, a fast and slow EMA cross, Bollinger Bands, volume spikes, MACD and stochastic into alert conditions. Individual alert groups can be switched on or off, and a weighted confidence score must reach a minimum before an

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

SOLETH MTPI

by Mikelkulla
1 stars

This strategy detects relative performance between Solana and Ethereum using a liquidity-weighted supertrend (LWST) derived from fast and slow weighted moving averages of liquidity times close. It plots the Tsl2 trend line in a separate pane and issues buy sig

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

This strategy uses 10, 50, and 200 period EMAs on the price chart to filter for bullish and bearish trend signals with a confirmation candle. It calculates position size based on a user-set risk percentage of equity divided by the distance to a stop price deri

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Reg T Margin Stock Strategy
1 stars

The script overlays a VWAP line on the price chart and identifies divergences between price close movements and VWAP movements. It computes VWAP using a customizable anchor period such as session or earnings, then checks for divergence over a lookback period c

Indicator v5 Moving averagesSupport & resistance
Updated 1 year ago · None stated GitHub repository of VWAP Divergence dobofulop

Bollinger Bands - 22MA

by techteam92
1 stars

Bollinger Bands - 22MA plots custom Bollinger Bands on the main price chart using a selectable center moving average from a choice of 22 different types, including Kalman filters, Jurik, Sine, and Hull moving averages. It generates buy and sell signals based o

Indicator v4 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands - 22MA

Tweezer Lyfe

by RobACurtis
1 stars

Tweezer Lyfe is a TradingView strategy that identifies Tweezer reversal patterns on the price chart. It plots Bollinger Bands with RSI and stochastic indicators for momentum confirmation. Bullish signals require a prior bearish candle closing near the lower ba

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tweezer Lyfe
1 stars

This strategy calculates the Supertrend using ATR period and factor inputs, then plots green lines for up direction and red lines for down direction on the price chart. It signals long entries when Supertrend changes to positive and short entries when changing

Strategy v5 TrendMoving averages
Updated 2 years ago · MPL-2.0 GitHub repository of Hello World, Supertrend

ATR Filter

by JohnsonHsiao
1 stars

The ATR Filter indicator calculates the difference between two Average True Range (ATR) values calculated over short and long lookback periods. It subtracts the long-period ATR from the short-period ATR to determine relative volatility momentum. The script plo

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of ATR Filter
1 stars

A strategy framework that provides switches for ATR bands, a trading session, a trend filter, three moving averages and take profit and stop loss levels. It has a session and weekday filter, backtest start and stop dates, and a long, short or both setting. Tak

Strategy v5 Sessions & timeVolatility & bands Repaints
Updated 4 years ago · None stated GitHub repository of Hotch Break Strat (Template)

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