Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 9)

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

104 stars

This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at

Strategy v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands and RSI Strategy

Hull Keltner Channel

by cryptorife
75 stars

Hull Keltner Channel calculates and plots a customized Keltner Channel overlaid directly on the price chart. It replaces the traditional moving average baseline with a Hull Moving Average variation, offering standard HMA, exponential EHMA, and triple THMA opti

Indicator v4 Moving averagesVolatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of Hull Keltner Channel

Momentum Rider DAILY FINAL

by greenpeas007
58 stars

This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider DAILY FINAL

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of AM TBR — NQ Stats

CombinedBinHAndClucV8

by viktors1982
36 stars

This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of CombinedBinHAndClucV8

BBfib

by modster
32 stars

This indicator plots Bollinger Bands on the price chart using a 15-bar simple moving average of ohlc4 as the basis line. It calculates upper and lower bands at one standard deviation multiplied by 1.12, plus additional outer levels at 1.5, 1.75, and 0.5 deviat

Indicator v4 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of BBfib

Zen ABR Ladder

by Zen-Tim
29 stars

Zen ABR Ladder plots multiple Average Bar Range (ABR) lookbacks (2, 4, 8, 16, 32) alongside an Average Daily Range (ADR) scalp threshold in a separate pane. It measures bar ranges in price points and displays layered translucent shading between the scalp line

Indicator v6 Volatility & bandsScalping
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Ladder

Bands

by heyphat
26 stars

This library exports a Band type and functions that build a simple-moving-average basis with upper and lower envelopes from standard deviation. It classifies a source as above, below, or inside those envelopes, measures band width, and scales an imported z-sco

Library v6 Volatility & bandsMoving averages
Updated 2 months ago · AGPL-3.0 GitHub repository of Bands

Bayesian BBSMA Oscillator

by tistaharahap
25 stars

This indicator calculates directional probabilities based on price position relative to Bollinger Bands and a simple moving average over a rolling lookback window. It computes breakup, breakdown, and combined prime probability percentages, plotting up to three

Indicator v4 Oscillators & momentumMoving averages
Updated 6 years ago · None stated GitHub repository of Bayesian BBSMA Oscillator

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation Scanner

Seykota / Turtle Core

by trustdan
16 stars

This trend-following strategy implements classic Turtle Trading rules based on Ed Seykota's breakout principles. It uses 55-period Donchian Channels for trade entries and 10-period channels for exits, combined with ATR-based volatility sizing. Risk per unit is

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota / Turtle Core
15 stars

This indicator overlays Bollinger Bands and smoothed HAMA candles directly on the main price chart. It calculates standard Bollinger Bands using a simple moving average and standard deviation, alongside custom smoothed open, high, low, and close values. A cent

Indicator v5 TrendMoving averages
Updated 4 months ago · Apache-2.0 GitHub repository of NSDT HAMA Candles with Bollinger Bands
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy
11 stars

Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · Apache-2.0 GitHub repository of Estrategia Donchian Breakout
10 stars

Calculates and plots a multi-component indicator in a separate pane, integrating Relative Strength Index (RSI), Average Directional Index (ADX), Directional Movement Index (DMI), and price Bollinger Bands. It detects institutional movement conditions by testin

Indicator v6 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · AGPL-3.0 GitHub repository of Whales + RSI/ADX/DMI

The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · MIT GitHub repository of Adaptive Cycle Detector [WavesUnchained]

Repanocha V4 Edited

by wocclyl
9 stars

This strategy plots a Tillson T3 average on the price chart and colors it by slope. It combines the T3 direction with a range filter, ADX, RSI, MACD and parabolic SAR to mark long and short entries, including optional unconfirmed signals. Positions can be rest

Strategy v4 TrendOscillators & momentum Repaints
Updated 7 years ago · MIT GitHub repository of Repanocha V4 Edited

ATR Values

by lunarticktrading
7 stars

This indicator calculates the Average True Range over a user-defined lookback period and reference offset, displaying the resulting values alongside multiple selectable ATR multipliers. Instead of plotting line curves, it presents current volatility metrics in

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of ATR Values
7 stars

The Average Sentiment Oscillator (ASO) measures bullish and bearish market sentiment by evaluating intrabar and group price ranges over a specified period. It plots bull and bear sentiment lines in a separate pane along with optional shifted lead or lag lines

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Average Sentiment Oscillator

A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Bollinger + RSI + SMA Trend Filter
7 stars

This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · GPL-3.0 GitHub repository of TEMA + Bollinger Bands Strategy

Bollinger Bands

by trsdn
6 stars

This indicator plots classic Bollinger Bands on the price chart. It calculates a simple moving average of the selected source over the chosen length, then places upper and lower bands at a multiple of the standard deviation around that basis. The basis, upper

Indicator v5 Volatility & bandsMoving averages
Updated 6 days ago · MIT GitHub repository of Bollinger Bands

Calculates price projection ranges over a specified horizon using Monte Carlo simulations via empirical bootstrap or parametric normal distributions. It plots projected price range boundaries directly on the price chart alongside a distribution profile histogr

Indicator v6 Support & resistanceVolatility & bands
6 stars

Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i

Strategy v6 Oscillators & momentumTrend Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System 2

MultiVolatility

by wanjo-tech
6 stars

This indicator estimates multi-horizon volatility in a separate pane. It requests the chart symbol's daily and 15-minute close, volume, time, and turnover, then walks backward until each window covers a target number of hours. It computes the variance and stan

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of MultiVolatility

Breakout AVAAI (TV mirror)

by tarasprystavskyj
5 stars

Breakout AVAAI is a crypto breakout strategy mirrored from a Python trading platform. It filters potential trades by evaluating ATR relative to close price and measuring momentum over 6-hour and 12-hour lookbacks. Positions are taken when volatility meets user

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI (TV mirror)
5 stars

Greeffer's Scalping Strategy combines multi-timeframe Exponential Moving Averages, Bollinger Bands, and Donchian Channels to execute dip-buying trades directly on the price chart. It triggers long entries when price dips below both the lower Donchian Channel a

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Strategy

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Antigravity Elite

BB Remix

by InNoobWeTrust
4 stars

This indicator plots a quadruple Bollinger Band overlay on the price chart by combining fast and slow period lengths with inner and outer standard deviation multipliers. It calculates average upper and lower band boundaries, tracks band directional momentum, a

Indicator v6 Volatility & bandsTrend
Updated yesterday · None stated GitHub repository of BB Remix
4 stars

This indicator calculates and plots predicted future Bollinger Bands mid, upper, and lower lines for 300 bars ahead using linear extrapolation. It draws these prediction lines in a separate pane below the price chart. Users can adjust the prediction horizon in

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of GOM BB Prediction (300 bars)

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane. It divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and bac

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of Volatility-Adjusted Momentum Oscillator (VAMO)

Chande Kroll Stop

by Hugs-4-Bugs
4 stars

This indicator plots the Chande Kroll Stop on the price chart. It builds a long stop from the lowest low over a lookback plus a multiple of average true range, then takes the lowest of that series over a second window. It builds a short stop from the highest h

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chande Kroll Stop

VT-Lite

by algoboy-kevin
4 stars

VT-Lite is a Pine Script v5 mean-reversion strategy that draws in a separate pane. It sizes equity-percent entries from a short-term EMA and ATR band distance, with a volatility EMA threshold and a choice of close, low, or ATR-band source. It can add reentries

Strategy v5 Mean reversionVolatility & bands
Updated 2 years ago · None stated GitHub repository of VT-Lite

AYDIN-FIBO V2

by Kalumur
4 stars

This indicator plots three EMAs with customizable lengths, narrow and wide Bollinger Bands, ALMA with adjustable offset and sigma, and multiple Fibonacci retracement levels on the price chart. It generates buy and sell signals on EMA5 crossing EMA13. Main sett

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of AYDIN-FIBO V2
4 stars

This strategy calculates a target position size based on exponentially weighted moving average volatility forecasts. It plots the current position size, target position size, and a configurable trade buffer region in a separate indicator pane. When the current

Strategy v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of Vol-Targeted Position Size Strategy

Bollinger Band

by might-tree
4 stars

This indicator calculates upper and lower Bollinger Bands using a Simple Moving Average and standard deviation. It plots both bands with a colored background fill between them, alongside the closing price in a separate indicator pane. Users can customize the c

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

FTX Premium Indicator

by blenessy
4 stars

The FTX Premium Indicator calculates and plots the relative price spread between cryptocurrency futures and spot contracts in a separate pane. It compares perpetual or dated contracts against spot markets and can normalize the difference into an annualized per

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · MIT GitHub repository of FTX Premium Indicator

AT+T3

by gocaman
3 stars

AT+T3 is a TradingView Pine Script indicator that overlays the T3 moving average (with Fibonacci variant) and AlphaTrend on price charts for BIST stocks. T3 uses Tim Tillson's smoothing formula with adjustable length and volume factor to produce trend lines th

Indicator v5 TrendVolatility & bands Repaints
Updated yesterday · None stated GitHub repository of AT+T3

RSI Mean Reversion

by GifariKemal
3 stars

This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T

Strategy v5 Oscillators & momentumVolatility & bands
Updated 4 days ago · MIT GitHub repository of RSI Mean Reversion

ATR Pip Control

by ricksimpsontrading
3 stars

ATR Pip Control is a volatility indicator that plots adaptive upper and lower bands based on ATR calculations. It draws signal triangles, labels, and bar colors on the price chart for breakout direction. Local end support and resistance lines appear on both si

Indicator v6 Volatility & bandsBreakout Repaints
Updated 9 days ago · None stated GitHub repository of ATR Pip Control

Chandelier Exit

by AkashSasikumar47
3 stars

This indicator plots a Chandelier Exit trailing stop on the price chart. It subtracts a multiple of ATR from the highest high or highest close for the long stop and adds the same distance to the lowest low or lowest close for the short stop. The active stop ra

Indicator v6 Volatility & bandsTrend
Updated 2 weeks ago · MIT GitHub repository of Chandelier Exit

PCA Risk Indicator

by jash-git
3 stars

The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual

Indicator v5 Oscillators & momentumTrend Repaints
Updated 4 weeks ago · None stated GitHub repository of PCA Risk Indicator

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