Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 4)

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

Btc Version5pine

by WMW333
3 stars

This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh

Strategy v5 VolumeVolatility & bands
Updated 4 years ago · None stated GitHub repository of Btc Version5pine

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

Combines Ichimoku Cloud, SuperTrend, Bollinger Bands, and three moving averages into a single overlay indicator. It plots trend direction, volatility bands, and key averages directly on the price chart. The indicator features a Bollinger Band pinch detector th

Indicator v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Ichimoku + SuperTrend + 3MA + Bollinger Bands

BB RSI Strategy

by infinityhao
3 stars

BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of BB RSI Strategy

BBI

by blackcat1402
3 stars

BBI is a price-chart indicator that builds two upper Bollinger bands from the close: a 100-bar band with a 1.25 standard-deviation multiplier and a 300-bar band with a 0.75 multiplier. It plots a small red BBI label above the bar when those bands cross and the

Indicator v4 Volatility & bands
Updated 5 years ago · MIT GitHub repository of BBI

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper
2 stars

The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Adaptive Decycler Supertrend

FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger

Strategy v6 TrendOscillators & momentum
Updated 3 weeks ago · MIT GitHub repository of FortiTrade Elite Multi-Strategy with DeepSeek Turbo

Crypto Trading Strategy

by AmjadSaidam
2 stars

Crypto Trading Strategy identifies breakout setups on the price chart by combining Bollinger Bands with daily cumulative volume delta. It computes a standard Bollinger Band envelope alongside a daily resetting cumulative volume series normalised into z-scores.

Indicator v6 BreakoutVolume
Updated 5 weeks ago · MIT GitHub repository of Crypto Trading Strategy

Gamma Levels v3 Auto

by Timonkru
2 stars

Gamma Levels Auto plots daily options-derived dealer gamma levels directly on the price chart. It projects structural levels (7 to 45 DTE) and near-term 0DTE levels, including gamma flip zones, call and put walls, max pain, expected move, and Vanna or Charm st

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of Gamma Levels v3 Auto

This indicator plots Gamma Exposure (GEX) levels, market breakout structures, and session anchors directly on the price chart for ES, SPX, and SPY. It renders key options analytics including Zero Gamma, Max Pain, Call and Put Walls, Volatility Bands, and Delta

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — ES/SPX/SPY
2 stars

Wave Amplitude Levels is an overlay indicator that measures average daily price amplitude as half the daily high-low range, smoothed over a user-set lookback. It requests the previous daily close and that average with a one-bar offset, then plots five stepline

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Wave Amplitude Levels
2 stars

The Fake Breakout / Breakdown Setup indicator identifies false breakouts (FBO) and false breakdowns (FBD) by tracking liquidity sweeps of previous price highs and lows. It validates reversals using follow-up price action and a confirmation scoring system based

Indicator v6 BreakoutOscillators & momentum
Updated 8 weeks ago · None stated GitHub repository of Fake Breakout / Breakdown Setup
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

TFX Gold Sniper - V26 Black-Gold

by vijayavardhanarajumahanandi-cell
2 stars

This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of TFX Gold Sniper - V26 Black-Gold
2 stars

ATR% Multiple from MA measures price extension relative to a moving average, expressed in multiples of Average True Range percentage. It calculates ATR as a percentage of close, evaluates the percentage distance between the price and its moving average, and no

Indicator v6 Moving averagesVolatility & bands
Updated 3 months ago · Apache-2.0 GitHub repository of ATR% Multiple from MA

RedK EVEREX v2.0

by bigzhu
2 stars

The RedK EVEREX v2.0 indicator examines effort versus results by plotting normalized bands comparing price change to volume. It computes rate of flow using selectable moving averages with smoothing options, and applies lookback averaging to highlight anomalies

Indicator v5 Moving averagesVolume
Updated 3 months ago · None stated GitHub repository of RedK EVEREX v2.0

ATR Helper [btankutt]

by btankutt
2 stars

ATR Helper is a trade planning indicator that calculates dynamic stop-loss levels and multi-stage profit targets. It uses an Average True Range multiple with selectable smoothing to determine the stop distance from either the current close or a manual entry pr

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of ATR Helper [btankutt]

BTC Pattern Breakout Final

by Yashiine-code
2 stars

This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts. Signals are filtered using moving average volume expansion, ATR momentum growth, and ex

Indicator v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of BTC Pattern Breakout Final

BB Breakout Reversal Strategy

by WayneMoore1006
2 stars

This quantitative strategy calculates custom Bollinger Bands using a standard moving average and standard deviation multiplier. It generates long entry signals when the bar close breaks above the upper band, and short entry signals when the close breaks below

Strategy v6 Volatility & bandsBreakout
Updated 6 months ago · None stated GitHub repository of BB Breakout Reversal Strategy
2 stars

This indicator applies Omori's law from seismology to post-crash volatility. It flags a mainshock when price falls a set percentage from a recent high, then plots a power-law decay envelope from elapsed bars, productivity, time offset, and decay exponent. Afte

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Omori Law: Market Shockwaves

Hari Sweep Scalper

by godlesscherry
2 stars

This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter. Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters

Strategy v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Hari Sweep Scalper

Premarket Metrics Dashboard

by realanthonyc
2 stars

This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Premarket Metrics Dashboard

alpyvix

by avatar-lavventura
2 stars

This strategy implements a self-calibrating WaveTrend oscillator with rolling percentile-based dynamic entry zones rather than fixed levels. It enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zone

Strategy v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of alpyvix
2 stars

This indicator measures market deleveraging and liquidation stress on a 0 to 100 scale, plotted in a separate pane. It evaluates extreme downside price velocity via standardized log returns, volatility expansion using an ATR Z-score, a rolling stress bar casca

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · MPL-2.0 GitHub repository of Deleveraging Detection Score
2 stars

This indicator calculates real-time risk metrics and position duration limits based on Average True Range (ATR) volatility. It estimates how many minutes a position can remain open before hitting maximum allowable drawdown, considering user inputs for account

Indicator v5 Volatility & bandsScreeners & dashboards Repaints
Updated 9 months ago · None stated GitHub repository of Espérance de Vie Trading - ATR
2 stars

This indicator calculates the Bollinger Band Width Percentile (BBWP) across multiple selectable timeframes to assess relative volatility levels. It evaluates the current bandwidth against historical lookback periods and plots percentile values alongside moving

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Bollinger Band Width Percentile - Multi Time Frame

This indicator plots Bollinger Bands and Keltner Channel on the price chart to analyze volatility and price action. It supports switching between Bollinger Bands, Keltner Channel, Parallel Channels, and VWAP Bands. Users select the source price, moving average

Indicator v6 Volatility & bandsMoving averages
Updated 9 months ago · MPL-2.0 GitHub repository of Bollinger Bands + Keltner Channel Refurbished

BMNR Power Law

by 0xDkd
2 stars

BMNR Power Law is a crypto-focused valuation channel indicator that plots dynamic power law bands on the main chart. It calculates top, middle, and bottom valuation lines using exponential model parameters applied to daily prices. An optional Average True Rang

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 9 months ago · MIT GitHub repository of BMNR Power Law

Magic Sequential 9

by realanthonyc
2 stars

Magic Sequential 9 tracks price sequences by comparing the current close to the close four bars prior, drawing numerical markers on the chart for counts seven, eight, and nine. It incorporates an optional Average True Range volatility threshold to filter out s

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MPL-2.0 GitHub repository of Magic Sequential 9

VWAP Price Channel Enhanced

by realanthonyc
2 stars

Calculates an adaptive price channel anchored to Donchian extremes, combining VWAP resets on dynamic highs and lows. The indicator automatically toggles between short-term and long-term calculation lengths based on the chosen timeframe. It plots upper and lowe

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of VWAP Price Channel Enhanced

This indicator combines five technical metrics normalized between 0 and 100 in a separate pane: RSI (with optional divergence detection), Stochastic, Relative Volatility Index (RVI), Average Directional Index (ADX), and Money Flow Index (MFI). Users can select

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TLC 0 to 100 Five Indicators VolMom

2Mars - MA / BB / SuperTrend

by wynnforthework
2 stars

This strategy combines moving averages, Bollinger Bands, and SuperTrend indicators to generate long and short entry signals. It uses configurable moving average crossovers and Bollinger Band threshold levels for trade execution, complemented by optional SuperT

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of 2Mars - MA / BB / SuperTrend
2 stars

The Covered Calls Optimizer indicator helps traders analyze covered call option strategies directly on price charts. It calculates target strike prices and estimated yields based on stock volatility (ATR and 20-day historical volatility) and user-defined risk

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MIT GitHub repository of Covered Calls Optimizer
2 stars

The Multi EMA + VWAP Combo indicator consolidates five Exponential Moving Averages (EMAs) and a Volume Weighted Average Price (VWAP) into a single chart overlay. It calculates five configurable EMAs (defaulting to 9, 21, 50, 100, and 200 periods) to track mult

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multi EMA + VWAP Combo
2 stars

The Multi-Indicator Trading System is an indicator that plots EMAs on the price chart. It calculates EMA50 and EMA200 crossovers on the 15-minute timeframe, with optional trend filters from 1H or 4H timeframes. Confirmations come from RSI, MACD, Bollinger Band

Indicator v6 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

This indicator identifies bullish and bearish Fair Value Gaps (FVG) on the main price chart based on three-bar price imbalances. It features an optional ATR-based displacement filter to isolate gaps formed during strong market momentum. Detected gaps are displ

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Pro SMC Fair Value Gap (FVG) Indicator

1-Minute ATR Table

by ryangaraygay
2 stars

This indicator calculates 1-minute Average True Range (ATR) values for three different period lengths: 5, 8, and 14. It applies predefined multipliers to these ATR values to compute estimated stop-loss distances in price ticks. The output is displayed in a cus

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 1 year ago · MIT GitHub repository of 1-Minute ATR Table
2 stars

The indicator calculates volatility-based stepped support and resistance levels overlaying the price chart. It tracks a central average that shifts incrementally when price exceeds an ATR-scaled boundary. From this baseline, it projects two upper resistance le

Indicator v5 Support & resistanceVolatility & bands
Updated 1 year ago · Custom licence GitHub repository of Predictive Ranges [LuxAlgo]

Logan Bollinger Bands

by RsKBruno
2 stars

This Pine Script strategy plots Bollinger Bands on the price chart using a central line and standard deviation for volatility detection. It includes an optional EMA trend filter and ADX strength filter to refine signals. The strategy allows buy or sell entries

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of Logan Bollinger Bands

ICT Macros

by klimasevskiy
2 stars

The ICT Macros indicator plots volatility periods based on ICT smart money concepts on the price chart. It highlights London Macros (02:33-03:00, 04:03-04:30), New York AM Macros (08:50-09:10, 09:50-10:10, 10:50-11:10), and New York Lunch + PM Macros (11:50-12

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Macros

Advance Trading Script

by devgaganin
2 stars

This overlay indicator applies a recursive multi-pole filter to a chosen price source and is set up to scale that filter with a filtered true range. The pole count selects the filter order from one to nine, while the sampling period controls how quickly the sm

Indicator v6 TrendMoving averages
Updated 1 year ago · GPL-3.0 GitHub repository of Advance Trading Script

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