Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 13)

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

Triple Supertrend

by shyrwinsia
5 stars

This indicator calculates three distinct Supertrend lines on the main price chart, designated as short, medium, and long term. Each Supertrend line utilizes its own Average True Range period and multiplier settings to identify trend directions across different

Indicator v4 TrendVolatility & bands
Updated 5 years ago · MIT GitHub repository of Triple Supertrend

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay indicator that screens price with seven selectable components: Mercury Fear, Connors RSI-2, volatility-spike reversal, EMA stack, Supertrend, multi-sigma bands, and an optional funding proxy. Auto-Detect chooses one method, whil

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Antigravity Elite

ATR Levels

by trugurpala
4 stars

This indicator calculates the Average True Range and a Simple Moving Average of closing prices. It plots a central basis line along with dynamic support and resistance levels derived from multiples of the ATR. The main settings control the ATR length and the m

Indicator v6 Support & resistanceVolatility & bands
Updated 2 months ago · MIT GitHub repository of ATR Levels

VolTargeting

by Robot-Wealth
4 stars

VolTargeting is a Pine Script v5 library of functions for volatility-based position sizing. ewmaVol estimates exponentially weighted annualised volatility from squared simple returns and scales it by the square root of 365 days for crypto or 252 days otherwise

Library v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of VolTargeting

Drift [DojiEmoji]

by kevinhhl
4 stars

This indicator calculates market drift using logarithmic returns adjusted for variance over a configurable lookback period. It measures underlying directional movement and plots a continuous line in a separate pane, colored blue when drift is positive and red

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Drift [DojiEmoji]

Bollinger Band Strategy

by might-tree
4 stars

The Bollinger Band Strategy is a mean-reversion trading strategy designed to trade bounces off Bollinger Bands. It enters long positions when the closing price crosses above the lower band and short positions when it crosses below the upper band. Upon entry, t

Strategy v5 Volatility & bandsMean reversion
Updated 3 years ago · None stated GitHub repository of Bollinger Band Strategy

This strategy overlays Ichimoku Cloud components alongside SuperTrend and RSI indicators directly on the price chart. It evaluates trend conditions using Tenkan-Sen, Kijun-Sen, and cloud spans, combining them with SuperTrend signals and RSI momentum boundaries

Strategy v4 TrendOscillators & momentum
Updated 6 years ago · Apache-2.0 GitHub repository of Ichimoku Cloud - Kijun-Sen - RSI - SuperTrend

EMA Cross Strategy

by degenview
3 stars

This strategy enters a long position when a fast EMA crosses above a slower EMA and closes that long when the fast EMA crosses back below. While a long is open, it places an ATR-based stop and a profit target measured from the average entry price. The main set

Strategy v6 TrendMoving averages
Updated 2 days ago · GPL-3.0 GitHub repository of EMA Cross Strategy
3 stars

ATD+ST+T3 Kripto Tarama is a chart overlay indicator and cryptocurrency scanner that combines AlphaTrend, SuperTrend, and T3 moving average signals. It plots trend lines, fills, and buy/sell label shapes directly on the main price chart while providing configu

Indicator v5 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of ATD+ST+T3 Kripto Tarama

ATR Pip Control

by ricksimpsontrading
3 stars

ATR Pip Control is a volatility indicator that computes the Average True Range over a user-specified period and plots adaptive upper and lower bands around price using coefficients for band width. It applies a minimum filter size in ticks or pips to validate s

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 10 days ago · None stated GitHub repository of ATR Pip Control

Average True Range

by jash-git
3 stars

This indicator calculates the average true range by taking a simple moving average of the true range over a user-set length. It plots that value as a thick line in a separate pane. The only setting changes the smoothing length, which defaults to 13 bars. The p

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

This indicator combines Supertrend for main trend filtering, DeMarker for momentum extremes, and Stochastic RSI for overbought/oversold signals on multiple timeframes. It plots buy/sell arrows and trend labels directly on the price chart. Additional filters in

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Zerith - Supertrend + DeMarker + Stoch RSI Multi-TF Signal
3 stars

This overlay indicator recreates short-setup conditions and audits their later outcomes on the price chart. It scores optional percent-surge, RSI overbought rollover, Bollinger exhaustion, volume spike, and EMA trend filters, then marks BASE or STRONG signals

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Outcome Auditor

MOTO ka AgniAstra

by HelloMoto069
3 stars

MOTO ka AgniAstra is a price-chart overlay that smooths the selected source with a Gaussian window and draws upper and lower bands from a scaled mean absolute error. When repainting smoothing is on, it recalculates the curve across recent bars and marks band c

Indicator v5 Volatility & bandsTrend Repaints
Updated 1 year ago · None stated GitHub repository of MOTO ka AgniAstra

Sapphire FiboBands Strategy

by sapphire-edge
3 stars

This strategy plots Fibonacci Bollinger Bands on the price chart. It generates buy and sell signals based on selected Fibonacci ratios (1.618, 2.618, or 4.236) combined with Bollinger Band calculations using a configurable source and length. Trades enter on ma

Strategy v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Sapphire FiboBands Strategy

Supertrend Strategy

by imzeeshan
3 stars

This systematic trend-following strategy executes long trades based on Supertrend indicator flips. Entry occurs when the Supertrend direction turns bullish, provided the date range and optional benchmark filter are satisfied. The benchmark filter verifies whet

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MIT GitHub repository of Supertrend Strategy

This strategy overlays a linear regression channel and two moving averages on the price chart. It uses the regression deviation and optional Supertrend ATR filter to qualify direction, and can enter on a moving-average cross when that option is enabled. Long t

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading Strategy Trailing Stop

This overlay indicator plots a 20-period Bollinger Band envelope with a two-standard-deviation width on the price chart. It marks a long bounce when price reclaims the lower band, 14-period RSI is between 30 and 70, 14-period ADX is above 25, and Binance BTCUS

Indicator v6 Volatility & bandsOscillators & momentum

Algo

by TamTH-Dev
2 stars

Algo is an overlay indicator that combines Deviation Scaled Moving Averages (DSMA), multi-layer Ripster exponential moving average clouds, and ATR-based trading levels on the price chart. It calculates adaptive DSMA lines alongside five configurable EMA pairs

Indicator v6 Moving averagesTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of Algo

GEO P Momentum Strategy

by newsfriend
2 stars

Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart. Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Strategy
2 stars

Implements a strategy combining Oliver Kell's Cycle of Price Action with Mark Minervini's Volatility Contraction Pattern (VCP). It identifies breakout setups such as wedge pops and EMA crossbacks aligned with EMA 10/20/50/200 and an optional Minervini Trend Te

Strategy v6 TrendBreakout
Updated 3 months ago · Custom licence GitHub repository of Kell + Minervini VCP Backtest

Alper

by avatar-lavventura
2 stars

Alper is a trend-following strategy based on a custom volatility stop calculation using the Average True Range. It tracks price extremes and computes a trailing stop level to determine market direction. When the price trades above the volatility stop, the scri

Strategy v5 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper
2 stars

This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line

Strategy v5 TrendOscillators & momentum Repaints
Updated 8 months ago · MIT GitHub repository of MACD & VWAP Strategy with ATR SL/Targets

fungi Bands [aifungi]

by mushroom-men-Trading
2 stars

This indicator draws three bands on the price chart from the highest and lowest prices over a chosen length, expanded by a long ATR times a deviation setting. It smooths the stored extremes into upper and lower bands and an average midpoint, then changes the m

Indicator v6 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of fungi Bands [aifungi]

QQE + AK Trend + EFI

by realanthonyc
2 stars

This Pine Script indicator combines QQE, AK Trend, and EFI indicators. It calculates the QQE using RSI with smoothing and displays it as a histogram in a separate pane. The AK Trend line is formed by two exponential moving averages whose scale adjusts accordin

Indicator v6 Oscillators & momentumTrend
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

Mean Reversion

by nxtaiapp
2 stars

This strategy executes mean-reversion trades using Bollinger Bands combined with a fast RSI oscillator and MACD confirmation. It enters long or short positions when price reaches band extremes during oversold or overbought RSI levels, with optional MACD trend

Strategy v5 Mean reversionScalping
Updated 11 months ago · MIT GitHub repository of Mean Reversion
2 stars

This strategy overlays Bollinger Bands and Keltner Channels on the price chart alongside an internal KDJ oscillator. It identifies a volatility squeeze when Bollinger Bands contract inside the Keltner Channels. Long entries trigger after price closes below the

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of BB-Keltner Squeeze with KDJ strategy

QQE MOD 副图指标

by iceberg211
2 stars

This indicator calculates a dual Quantitative Qualitative Estimation (QQE) momentum oscillator alongside Bollinger Bands in a separate pane. It computes smoothed Relative Strength Index values paired with Wilder-style ATR trailing bands across two independent

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of QQE MOD 副图指标

The Quantitative Qualitative Estimation indicator calculates a smoothed Relative Strength Index combined with a dynamic, volatility-based trailing line. It plots a fast smoothed RSI line alongside a slow trailing line in a separate pane, with a midline set at

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Quantitative Qualitative Estimation (QQE)

Average Pivot Range - JD

by JorisDuyck
2 stars

Calculates the price range between swings determined by Jurik Moving Average turning points as an alternative to Average True Range (ATR). The script computes the magnitude of upward and downward price movements between pivots, displaying values in percentage

Indicator v4 Volatility & bandsMoving averages
Updated 5 years ago · MIT GitHub repository of Average Pivot Range - JD

Bollinger Bands

by mydcc
1 stars

The Bollinger Bands indicator plots a middle band calculated from a moving average of the selected source and upper and lower bands that are a specified number of standard deviations away from the middle band. Users can adjust the length of the moving average,

Indicator v6 Moving averagesVolatility & bands
Updated 2 days ago · Custom licence GitHub repository of Bollinger Bands

Draws weekly and monthly volatility forecast levels on the price chart from a text block pasted into a settings box. Lines show 75th percentile and median ranges for five-day and month high-low and open-close moves, together with week open, week high and low,

Indicator v6 Volatility & bandsSupport & resistance

ZeroDTE MEIC v1

by xynkro
1 stars

An overlay that follows a ladder of same-day iron condors on the S&P 500 index or its ETF and mini equivalents. At four configurable time slots in the afternoon it estimates short call and put strikes from realized volatility sampled on five-minute bars, using

Indicator v6 Sessions & timeVolatility & bands
Updated 2 days ago · None stated GitHub repository of ZeroDTE MEIC v1

Intraday Regime Follower

by nvolpe2007-cell
1 stars

A long and short trend strategy that compares a 50-bar and 200-bar EMA with price position and EMA slope. It goes long in an uptrend, short in a downtrend and flat otherwise. A hysteresis band must be broken before the state flips, and an ATR-versus-cost gate

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Intraday Regime Follower
1 stars

This script is a deprecated compatibility stub for the Market Lab indicator. It intentionally plots no data on the price chart and emits no formulas, signals, or alerts. The purpose of this stub is to direct users toward the canonical Market Lab script. The as

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 2 days ago · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

A multi-part overlay that combines a Gravity Squeeze module, supply and demand inflection zones and optional pivot levels. The squeeze module filters by minimum volume and a maximum ADX and can draw shark icons and support markings. Inflection zones are boxes

Indicator v6 Support & resistanceVolatility & bands Repaints
1 stars

A Supertrend strategy drawn on the price chart whose multiplier can adapt to the detected market regime using ADX. Entries need a minimum signal score and can be filtered by a trend EMA, a skip-ranging rule, a volume filter and a bar cooldown. Stop loss can us

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of SuperTrend AI Strategy Adaptive

Academia PO3 Professional v3

by rosijay17-cmd
1 stars

An indicator that scores the market through the phases of the power of three model on the price chart: accumulation, manipulation, expansion, trend and exhaustion. Scores combine ATR contraction, price efficiency, bar overlap, relative volume, a flow proxy, li

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Academia PO3 Professional v3

DEPV2 A1 · TR + ATR

by YuceSezar89
1 stars

This indicator calculates and plots True Range (TR) and Average True Range (ATR) in a separate pane. True Range accounts for price gaps between bar closes, while Average True Range smoothes TR over a configurable length parameter, which defaults to 10 bars. Tr

Indicator v6 Volatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A1 · TR + ATR
1 stars

Computes support and resistance zones on the chart by clustering 1h moving averages, Bollinger bands, daily pivots, volume profile levels and optionally the previous day high and low. It reads weekly, daily, 4h and 1h trend bias and moves a status through wait

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 3 weeks ago · None stated GitHub repository of Options Short Ladder (Auto)

Zimpact Buy/Sell v2

by acquillemac
1 stars

An ATR-based band indicator with a ratcheting SuperTrend line built from RMA of highs and lows. It shows upper and lower bands, an optional outer channel, an optional teal oscillator line, buy and sell signals when direction flips, and two take profit levels a

Indicator v5 TrendVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Zimpact Buy/Sell v2
1 stars

An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window. Optional trend and ATR percentage filters ca

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean ETH 15min
1 stars

An indicator in a separate pane that builds a 0 to 100 gauge of market risk from several other markets rather than the chart symbol: an equity ETF, the VIX, the dollar index, the 10-year yield and a high-yield credit ETF. Their returns or changes are turned in

Indicator v5 Volatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of CASA v2 Cross-Asset Risk Gauge
1 stars

A price-chart indicator built on the UT Bot ATR trailing stop idea, with sensitivity and ATR period inputs and a preset chosen from the chart timeframe. It prints buy and sell labels when price crosses the trailing line and offers an optional line, ribbon fill

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Luxy UT GOD UT-BOT Forecast

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