Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 31)

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

Conditional Volatility (CV)

by mushroom-men-Trading
2 stars

Conditional Volatility (CV) calculates annualized volatility using a GARCH(1,1) econometric model based on log returns of closing prices. It plots the resulting annualized variance percentage as a continuous line in a separate pane to display volatility dynami

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Conditional Volatility (CV)
2 stars

TrendSignal + Supertrend Strategy detects trend changes using a custom indicator based on recent high-low ranges and a percentage K value calculated from RISK input. It sets buy or sell signals when the trend shifts. Supertrend is overlaid using ATR period and

Strategy v4 TrendVolatility & bands
Updated 4 years ago · MIT GitHub repository of TrendSignal + Supertrend Strategy
1 stars

A strategy that scores signals from ten sources: RSI, MACD, Bollinger Bands, head and shoulders, wedges, multiple tops and bottoms, candlestick reversals, pivot support and resistance, volume spikes and an EMA ribbon filter. A trade needs a minimum pattern sco

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 2 days ago · None stated GitHub repository of Fall Strategy 10-Pattern Engine

DEPV2 C6 Gölge Kasa

by YuceSezar89
1 stars

This indicator evaluates signal performance and multi-timeframe market dynamics through a shadow bankroll tracking framework. It measures market conditions across trend, momentum ROC Z-scores, ATR volatility expansion, and volume flow, alongside multi-timefram

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C6 Gölge Kasa

Root Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on root mean square deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks that is compared with long and short thres

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Deviation Loop
1 stars

V10 Swing Sniper (KLSE) is a daily chart overlay indicator designed for swing trading Bursa Malaysia equities based on Mark Minervini's Stage 2 and Volatility Contraction Pattern (VCP) principles. It calculates exponential moving averages, relative strength ag

Indicator v5 TrendBreakout
Updated 4 months ago · None stated GitHub repository of V10 Swing Sniper (KLSE)
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. Settings include a long ATR length with a multiplier, how many levels to display, maximu

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-2

Stochastic+SQZMOM_LB_v1

by gabriel-klettur
1 stars

This strategy plots exponential moving averages of 10, 55 and 200 on the price chart and shades the background when a smoothed stochastic is oversold or overbought. It opens long positions when the stochastic K line crosses above D below the oversold level, in

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic+SQZMOM_LB_v1

Liquidation Heatmap

by ymlee1104
1 stars

The Liquidation Heatmap indicator detects potential liquidation zones by scanning recent price swings and calculating volume or range-based weights over a configurable lookback period. It overlays boxes and labels on the price chart to highlight long and short

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap
1 stars

This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements. It generates buy and sell signals based on volatil

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ultimate Buy and Sell Indicator
1 stars

An indicator on the price chart that filters price with a range-based line. The smoothed average absolute price change over a sampling period, 100 by default, is multiplied by a range multiplier to give a band size. The filter only moves when price leaves the

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Range Filter Buy and Sell 5min

Bollinger BandWidth

by ivansoft
1 stars

Plots Bollinger BandWidth, the distance between the upper and lower Bollinger Bands relative to the middle band, in a separate pane. Two extra lines track the highest value over a chosen expansion length and the lowest over a contraction length, both 125 bars

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Bollinger BandWidth

Technical Analysis Namespace

by fiji-solutions
1 stars

This indicator calculates common technical analysis variables including RSI, Stochastic Oscillator, EMA moving average, ATR volatility, and MACD with signal and histogram. It plots the MACD line, signal line, and histogram in a separate pane. The script serves

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of Technical Analysis Namespace

Max Index

by JohnsonHsiao
1 stars

Max Index is an oscillator that measures range expansion and contraction over rolling periods. It calculates a rolling high-low range over a user-defined lookback window, applies double exponential smoothing to that range, computes the ratio between the two sm

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Max Index

The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup

ESU2023 Futures 1M

by dearvn
257 stars

This strategy calculates volume-weighted moving averages and standard deviation Fibonacci channels using price data from multiple timeframes. It overlays these volatility bands directly on the main price chart to identify potential trend levels. Automated trad

Strategy v5 Moving averagesVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of ESU2023 Futures 1M

LAMA-based Strategy

by capissimo
114 stars

This indicator calculates two Log-Normal Moving Averages (LAMA) based on John Ehlers' adaptive process and generates trend-following signals on the price chart. Entry signals trigger when the fast LAMA crosses the slow LAMA, optionally filtered by ATR volatili

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of LAMA-based Strategy
47 stars

The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · MIT GitHub repository of Donchian Channels (DCHANNEL)
37 stars

This strategy plots Bollinger Bands on the price chart using a simple moving average and a multiple of standard deviation. It places a long stop entry when close crosses above the lower band and a short stop entry when close crosses below the upper band. Pendi

Strategy v5 Volatility & bandsMean reversion
Updated 3 years ago · MIT GitHub repository of Bollinger Bands Strategy directed
16 stars

This trend-following strategy plots Donchian channels and execution signals directly on the price chart. It calculates Average True Range volatility to determine position sizing based on a fixed risk percentage of account equity. Long and short entries trigger

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 27: Asymmetric R/R
9 stars

This indicator plots a volume-weighted moving average as a central trend baseline and surrounds it with ATR-based volatility bands. It colors the trend and optional price bars according to whether price is on the bullish or bearish side of those bands. Users c

Indicator v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Volume Weighted Trend [QuantAlgo]

Supertrendx3

by PipC
8 stars

The indicator calculates three distinct Supertrend lines on the main price chart using separate customizable ATR periods and multipliers. Users can switch between standard ATR and SMA-based true range calculations. It can highlight background trend states, dis

Indicator v4 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Supertrendx3

Volatility Risk Premium

by eddiebelaval
7 stars

Calculates the Volatility Risk Premium (VRP) by comparing implied volatility against realized volatility calculated using Close-to-Close, Parkinson, or Garman-Klass methods. It plots VRP values as a histogram or line in a separate pane with optional Bollinger

Indicator v6 Volatility & bands
Updated 3 months ago · None stated GitHub repository of Volatility Risk Premium

MA ROC Strategy

by suyons
7 stars

MA ROC Strategy calculates five configurable moving averages (SMA, EMA, or WMA) and plots ATR-based Keltner Channels directly on the price chart. It combines moving average crossovers and Rate of Change (ROC) calculations to generate long and short trading sig

Strategy v5 Moving averagesOscillators & momentum
Updated 4 months ago · None stated GitHub repository of MA ROC Strategy

EMAs + BB Squeeze + Trend Long Strategy is an overlay strategy combining multi-timeframe Exponential Moving Averages with Bollinger Bands squeeze dynamics. It evaluates short, medium, and long EMAs defaulting to daily resolution alongside Bollinger Bands to id

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of EMAs + BB Squeeze + Trend Long Strategy

Elton's Kimi Claw

by eltonaguiar
4 stars

This indicator calculates a composite volume score using relative volume ratios, short-term volume trends, moving averages, and spike thresholds. It plots buy and sell signals directly on the price chart alongside Average True Range based take-profit and stop-

Indicator v5 VolumeVolatility & bands
Updated 2 days ago · None stated GitHub repository of Elton's Kimi Claw
4 stars

This indicator modifies the classic Supertrend calculation by incorporating the Commodity Channel Index (CCI) to determine trend direction. It calculates ATR bands around the median price and updates trailing stop levels based on whether CCI is above or below

Indicator v4 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Simple Supertrend CCI
2 stars

This indicator calculates the Relative Strength Index from a chosen price source and length and plots it in a separate pane. It draws horizontal bands at 70, 50, and 30 and fills the area between the outer bands. An optional moving average can smooth the RSI u

Indicator v6 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of Relative Strength Index

Alpy Kazan

by avatar-lavventura
2 stars

This strategy tracks market direction using an ATR-based trailing envelope similar to Supertrend, combined with Bollinger Bands, Keltner Channels, and momentum filters. Long and short entry signals trigger on trend direction shifts within a specified backtest

Strategy v4 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alpy Kazan

Intrabar Efficiency Ratio

by regalouisei
2 stars

Intrabar Efficiency Ratio calculates an efficiency ratio indicator using lower timeframe intrabar data to measure price efficiency and market noise. It plots in a separate pane using customizable visual modes such as Line, Candles, or Circles based on moving a

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Intrabar Efficiency Ratio

DEPV2 D1 Giriş Kalitesi

by YuceSezar89
1 stars

This indicator evaluates trade entry quality across trend, momentum, volatility, and volume dimensions. It calculates momentum ROC z-scores, ATR-based volatility expansion, volume flow thresholds, and multi-timeframe Heikin Ashi alignment across multiple timef

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 D1 Giriş Kalitesi

Root Mean Deviation Trail

by vedkanani123
1 stars

An overlay indicator that measures how far price sits from a central EMA, smooths the signed deviation with a selectable moving average, and normalizes it with a root mean square deviation to scale a trailing band. The multiplier shrinks when deviation is stro

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Mean Deviation Trail

Scalping BB CCI ROC

by rubbermetal
1 stars

Scalping BB CCI ROC is an indicator that marks Scalp L or Scalp S labels when the close is outside a Bollinger Band while CCI and rate of change are both beyond their thresholds in the same direction. It draws the bands with a fill colored by price position, a

Indicator v6 ScalpingMean reversion
Updated 4 months ago · MPL-2.0 GitHub repository of Scalping BB CCI ROC
1 stars

Corpus Exit Qty Percent is a Pine Script strategy that executes trades based on exponential moving average crossovers and manages positions with Average True Range levels. It calculates 12-period and 26-period EMAs along with a 14-period ATR. When the fast EMA

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Exit Qty Percent
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. This variant uses looser body thresholds, allowing a base candle body up to the full can

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-2

Liquidation Heatmap

by ymlee1104
1 stars

This indicator draws a liquidation heatmap on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by minimum intensity and merges nearby labels. An optional ZigZag plots swings, w

Indicator v6 Support & resistanceVolume
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

NR7 Range Breakout

by Basant1Saini
1 stars

NR7 Range Breakout identifies narrowest range bars over a specified lookback period and trades breakouts beyond their high or low price boundaries. It plots an exponential moving average trend filter alongside visual highlights for range compression and breako

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of NR7 Range Breakout

ES Professional Fade

by knectardev
1 stars

This strategy executes gap-fade trades on E-mini S&P 500 futures during Regular Trading Hours. It compares the current market open with the prior session close to identify opening gaps, qualifying entries using minimum gap percentages, index point minimums, an

Strategy v5 Mean reversionSessions & time
Updated 9 months ago · None stated GitHub repository of ES Professional Fade

MTB_10

by JohnsonHsiao
1 stars

This indicator calculates multi-layered Bollinger Bands based on a simple moving average baseline and standard deviation offsets. It projects 15 upper bands and 15 lower bands spaced at 0.2 standard deviation increments, spanning from 0.2 up to 3.0 standard de

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of MTB_10

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup

Function - Logistic Equation

by ricardosantos79
261 stars

Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Function - Logistic Equation
106 stars

This strategy runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 9:22 5 MIN 15 MIN BANKNIFTY

Bollinger Bands Width

by TWODS-CAPITAL
37 stars

Bollinger Bands Width plots the width of Bollinger Bands on a separate pane. It calculates the ratio of the band width using the formula of upper band minus lower band divided by the basis. The main settings let users change the length of the simple moving ave

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands Width
16 stars

Implements a Donchian breakout trend-following strategy filtered by ADX trend strength. It initiates long or short positions when price breaks Donchian channel extremes and ADX exceeds a specified threshold. Positions are sized using ATR volatility with Turtle

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 28: ADX Filter

This short-only trading strategy combines exponential moving averages across daily timeframes with Bollinger Band squeeze logic. It evaluates long-term trend conditions or volatility squeeze setups to trigger short entries. Position management includes customi

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of EMAs + BB Squeeze + Trend Short Strategy
4 stars

This overlay indicator combines up to six optional signals and scores how many of them agree. It checks RSI-2 crosses of 30 and 70, MACD line crosses, Bollinger squeeze breakouts, volume spikes, triple EMA alignment, and price relative to the Ichimoku cloud. E

Indicator v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Ensemble Validator STEPFUN

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