Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 20)

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

Ghost Flow

by mphinance
1 stars

A price-chart overlay that grades a setup from several axes: a Hull trend band with an optional EMA ribbon, Chaikin money flow strength, an ATR-based compression and expansion measure, trend age in bars, and a Williams %R exhaustion gauge. It adds a Bounce 2.0

Indicator v6 TrendVolume
Updated 3 days ago · Custom licence GitHub repository of Ghost Flow

Hash Supertrend

by kanylbullen
1 stars

A Supertrend strategy with adjustable ATR length and multiplier, drawn on the price chart. It sizes positions at a percentage of equity and offers an optional time filter limiting trading to chosen hours. Visual options include colour intensity, a glow effect,

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of Hash Supertrend

Adaptive Trend Flow

by rosijay17-cmd
1 stars

An indicator that draws a volatility band trend line on the price chart. A basis is built from two EMAs of the typical price, and bands sit above and below it at a multiple of smoothed standard deviation. The trend flips to bullish when price closes above the

Indicator v6 TrendVolatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Adaptive Trend Flow
1 stars

A Pine v6 research strategy for crypto charts that scores several modules, namely RSI, Fibonacci Bollinger Bands, a trend moving average with higher timeframe filter, Ichimoku, candlestick patterns and chart patterns, then enters when a weighted score passes a

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro v6 Megalithic Research

DEPV2 A4 Volatilite

by YuceSezar89
1 stars

This indicator measures volatility expansion by comparing the current True Range against a historical slow Average True Range. It also computes a fast-to-slow Average True Range ratio to detect market calm. When True Range expansion exceeds a user-defined thre

Indicator v6 Volatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A4 Volatilite

Strategy Template

by MoDarK-MK
1 stars

This strategy template provides a modular foundation for building TradingView v6 backtests. It uses a placeholder Exponential Moving Average crossover signal combined with customizable filters for higher-timeframe trend alignment, volatility regime thresholds,

Strategy v6 TrendMoving averages
Updated 8 weeks ago · MPL-2.0 GitHub repository of Strategy Template
1 stars

This indicator measures how far the current low sits below the highest high of the last 252 bars, expressed in 50-period ATR units and plotted as a negative value capped at 12. It draws that distance in a separate pane and colors the line green, yellow, or red

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Webby's ATR Off 52-Week High
1 stars

A counter-trend strategy that fades price when it reaches a Pivot Point SuperTrend band, selling into upward stretches and buying into downward ones. Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · None stated GitHub repository of Contra Pivot SuperTrend Fade

Predicted Gold Signals

by XingHan98
1 stars

An overlay indicator for a five-minute gold chart that stops with an error on any other timeframe. At 08:00 and 19:00 Singapore time on weekdays it draws a buy and a sell entry line from the prior close with fixed offsets, a fixed dollar stop, and three take p

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · None stated GitHub repository of Predicted Gold Signals

NQ VIX IB Levels

by qmqvt44stq-del
1 stars

An indicator for the price chart that draws intraday price levels above and below the session by blending an initial balance extension with a volatility-index implied move, then adding a point offset. The volatility index is chosen automatically from the futur

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of NQ VIX IB Levels
1 stars

This overlay indicator is a companion dashboard for Bursa Malaysia stocks. It builds a table that shows Minervini trend-template conditions, VCP squeeze tightness, volume surge and contraction, price and average-volume liquidity filters, and an MCDX banker or

Indicator v6 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP Dashboard v8 KLSE

Deep Trades Whales Canonical

by shubhamtaywade82
1 stars

Flags unusually heavy volume bars on the price chart as possible large-participant activity. Detection combines a volume percentile gate with a z-score, then scales ATR thresholds by a low, normal or high volatility regime. It marks price impact bars, iceberg-

Indicator v6 VolumeVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Deep Trades Whales Canonical

High Margin Pro

by Sandesh30-cloud
1 stars

High Margin Pro is a long-only chart strategy. It plots a 50-period EMA, a 200-period EMA, and a 60-minute 200-period EMA. A long entry requires the fast EMA above the slow EMA, price above the higher-timeframe EMA and within one ATR below the fast EMA, an RSI

Strategy v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of High Margin Pro

An indicator for the price chart, written with gold on a three-minute chart in mind, that looks for long and short setups. It detects regular or hidden divergences on RSI, MACD, MACD histogram, stochastic and optionally CCI, momentum and MFI, and needs a minim

Indicator v6 DivergenceOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Gold Strategy - Divergence + ATR + RSI
1 stars

An indicator for four-hour charts that builds a rolling VWAP with standard deviation bands. A long signal appears when one bar closes below the lower band and the next closes back above it, and the reverse for shorts. Filters skip trades when ATR volatility is

Indicator v6 Mean reversionVolatility & bands
Updated 7 months ago · None stated GitHub repository of V21 VWAP Mean Reversion

Fib Harvester

by anil-sn
1 stars

A chart-overlay indicator that builds a volatility-based trend line from a smoothed price range and marks entries when the trend flips, plus reload entries after pullbacks. Each entry gets a stop sized from the distance to the trend line or an ATR multiple, an

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Fib Harvester

Supertrend

by yagyesh-bobde
1 stars

Calculates the standard Supertrend indicator using built-in Pine Script functions based on Average True Range (ATR) and a multiplier factor. It plots a green support line during an uptrend and a red resistance line during a downtrend directly on the price char

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

Parabolic SAR

by Studentcodee
1 stars

The Parabolic SAR strategy calculates the Parabolic SAR value to detect trend reversals on the price chart. It starts with a given acceleration factor and adjusts it dynamically between start and maximum values based on price movements. Long entries occur when

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

P/E BANDs

by lumduan
1 stars

An indicator in a separate pane that divides price by trailing twelve month diluted earnings per share to get a price to earnings series, then wraps it in Bollinger-style bands. The basis can be an SMA, EMA, SMMA, WMA or VWMA of the chosen length, with upper a

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of P/E BANDs

Gaps

by fiji-solutions
1 stars

The Gaps indicator measures and plots the percentage price gap between consecutive bars in a separate pane. It evaluates whether the current bar low is above the previous bar high or the current bar high is below the previous bar low, calculating the relative

Indicator v5 Candlestick patternsVolatility & bands
Updated 2 years ago · None stated GitHub repository of Gaps
1 stars

This strategy plots the Supertrend indicator directly on the price chart using an Average True Range period and factor multiplier. It generates long entry orders when the Supertrend turns upward and short entry orders when it turns downward, simultaneously dis

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MPL-2.0 GitHub repository of Hello World, Supertrend

ATR Trailing Stop

by JohnsonHsiao
1 stars

This indicator plots an ATR trailing stop on the price chart. It multiplies the average true range by a user multiplier and ratchets the stop with price while the close stays on the same side of the line. When price crosses the stop, the line flips to the oppo

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · None stated GitHub repository of ATR Trailing Stop

This strategy builds a normalised band reading from Bollinger Bands, Keltner Channels or the average of both, using Heikin Ashi closes over a 200-bar window by default, with an optional EMA smoothing. Bullish and bearish breakout levels at one and zero define

Strategy v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Breakout Bollinger Band and Keltner Channel Strategy
318 stars

This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B

Indicator v5 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Multiple Moving Averages

3Commas Bot

by hasnocool
106 stars

This strategy overlays moving averages on the price chart to generate long and short trade signals compatible with 3Commas bot automation. It sets stop losses relative to recent swing pivots buffered by an ATR multiplier, while exits are handled by a risk-to-r

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 3Commas Bot

Adaptive Price Zone

by mihakralj
99 stars

The Adaptive Price Zone indicator calculates volatility bands around a double-smoothed exponential moving average baseline directly on the price chart. It calculates internal smoothing factors using the square root of the user-specified period, double-smoothin

Indicator v6 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Adaptive Price Zone

EMA Ribbon MACD

by iamrichardD
57 stars

This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD

Day Trading Booster

by iamc1oud
56 stars

Day Trading Booster plots session highlights for Sydney, Tokyo, Frankfurt, London and New York sessions on the price chart. It shows opening ranges for selected sessions and day open reference levels derived from ATR. A tabular view displays global forex marke

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Day Trading Booster

This indicator displays a customizable dashboard table on the price chart. It combines Market Action Pulse state, McClellan breadth z-score, VIX Mood Ring status, and Risk Assessment Model hazard score. Users select symbols such as NASDAQ:QQQE or VIX, toggle c

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a mean-reversion strategy that combines Bollinger Bands with the Relative Strength Index. It enters long positions when price crosses below the lower band with RSI above 30, and enters short positions when price crosses above the upper

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy
16 stars

This strategy implements a trend-following Donchian breakout system with pullback-based pyramiding. It initiates trades on Donchian channel breakouts and sizes positions based on ATR volatility risk. Instead of immediately adding units when the trend advances

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 14: Pullback Pyramid
10 stars

This indicator implements a Traders Dynamic Index (TDI) calculation tailored for Bitcoin on four-hour charts, plotting signals directly on the price chart. It calculates a Relative Strength Index (RSI), moving averages, and volatility bands around the RSI line

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 4H
9 stars

This indicator calculates Average True Range across four presentation modes: raw ATR, percentage of price, normalized z-score, and percentile rank. It plots the transformed ATR line alongside a smoothed signal line, an ATR-versus-signal histogram, and optional

Indicator v6 Volatility & bands
Updated 3 days ago · MIT GitHub repository of ATR Advanced [WavesUnchained]
7 stars

This indicator calculates a lag-compensated SuperSmoother based on John Ehlers' filter techniques, combining hybrid Butterworth filters with dynamic lag adjustment. It computes adaptive trend metrics and lag-compensated momentum, plotting them in a separate pa

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Ehlers Adaptive Trend Filter

This indicator plots three exponential moving averages and a Bollinger Band envelope on the price chart. The band basis can be an SMA, EMA, SMMA, WMA, or VWMA, with adjustable length, source, standard-deviation multiplier, and horizontal offset. Default EMA le

Indicator v6 Moving averagesVolatility & bands
Updated 5 months ago · None stated GitHub repository of EMA 21, 50, 200 & Bollinger Bands
7 stars

This indicator plots standard Bollinger Bands alongside scaled Average True Range (ATR) bands directly on the price chart. It is designed to assist traders in identifying price consolidation zones, potential breakout levels, dynamic stops, and take-profit targ

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Bollinger and ATR Bands
6 stars

This indicator detects market stress in cryptocurrency perpetual futures by measuring the spot-to-perp basis, open interest impulses, and liquidation wicks. It signals long-squeeze risks, short-squeeze risks, cascade starts, and market reset completions when b

Indicator v6 Volatility & bandsVolume
Updated 2 months ago · MIT GitHub repository of Capital41 Crypto Perp Stress

PropFirm Ultra Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This strategy overlays the price chart and combines Smart Money Concepts with prop-firm account limits. It scores setups using break of structure, fair value gaps, order blocks, volume spikes, and optional London or New York killzones. Entries use a minimum sc

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Ultra Strategy - QuantAlgo
4 stars

This long-only strategy overlays a slow simple moving average and Bollinger bands on the price chart and uses RSI as a filter. It enters when the close is at or below the lower band and RSI is at or below the oversold input, and it closes when the close is at

Strategy v6 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Tetrad Elektro BB (Long Only)

Linear Regression Channel

by Hugs-4-Bugs
4 stars

The Linear Regression Channel indicator calculates the slope, average and intercept of a linear regression line over the specified length using the chosen source. It plots the base regression line and upper and lower channels on the price chart. The channels a

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Linear Regression Channel

GERMENCIK-AT

by Kalumur
4 stars

This indicator plots custom upper and lower bands on the price chart based on a weighted moving average using hlc3 source, length of 50, and a standard deviation multiplier of 2. It also includes Arnaud Legoux Moving Average with adjustable length, offset, and

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 2 years ago · None stated GitHub repository of GERMENCIK-AT

Calculates Kaufman's Adaptive Moving Average (KAMA) based on Kaufman's Efficiency Ratio to adjust smoothing dynamically according to market volatility and efficiency. Plotted directly on the price chart, it adapts faster during trending markets and slows down

Indicator v5 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Kaufman's Adaptive Moving Average (KAMA)

This strategy combines Williams Vix Fix calculations with Stochastic and RSI indicators to identify potential market bottoms. It calculates synthetic volatility using standard deviation Bollinger Bands and percentile thresholds on the Williams Vix Fix. Long en

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · Apache-2.0 GitHub repository of Vix FIX / StochRSI Strategy

ADR % Ranges

by g-moe
3 stars

This indicator computes the Average Daily Range over the last specified number of days and plots the full ADR level along with one-third of the ADR and an anchor line on the price chart. It displays historical ADR levels from prior sessions and a table showing

Indicator v5 Volatility & bandsSupport & resistance
Updated 5 months ago · None stated GitHub repository of ADR % Ranges
3 stars

The Directional Flow Oscillator combines momentum, cumulative volume delta, price range position, trend ratio, and relative volatility into a single bounded composite indicator. It fetches lower-timeframe volume data to calculate cumulative volume delta and no

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Directional Flow Oscillator

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