Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 8)

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

ADX Trend Strategy

by pcjtse
1 stars

This strategy goes long when ADX is above a threshold and price crosses above a 20-period simple moving average, and goes short on the opposite cross. Each entry carries an ATR-based stop loss and take profit, set by two multipliers. Orders use all available e

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of ADX Trend Strategy

Kotegawa Pump Tracker

by davccavalcante
1 stars

Kotegawa Pump Tracker is an overlay indicator aimed at volatile crypto markets. It combines an adaptive SuperTrend with a clustering step that sorts recent volatility into high, medium and low levels over an analysis window, and it also uses RSI. According to

Indicator v6 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Kotegawa Pump Tracker

LKG 1.0

by sudesharoshaseneviratne
1 stars

A combined overlay that calculates several well-known indicators in one script: an ATR-based stop distance that colors bars yellow when price moves beyond it, ADX with directional indices, RSI with a selectable moving average or Bollinger Bands and optional di

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of LKG 1.0
1 stars

A strategy template that sets up Bollinger Bands, MACD and an RSI with its own Bollinger band, each with adjustable lengths, and uses a share of equity for sizing. Orders carry a percentage stop loss and take profit, defaulting to 3 and 30. The condition secti

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Boll MACD RSI Strategy
1 stars

Daily Range Volatility calculates the percentage range of each bar relative to its midpoint price. It plots this amplitude as silver columns in a separate pane alongside three simple moving averages: a 30-period baseline, a fast 3-period average, and a smoothe

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of Daily Range Volatility

RootNet Trader

by amiremadi
1 stars

A price-chart indicator that shows buy and sell signals together with a numeric strength score for each signal. Options include a signal strategy mode and sensitivity with an automatic setting, filters for consolidation, high volume and smart signals, candle c

Indicator v5 TrendVolatility & bands
Updated 1 year ago · GPL-3.0 GitHub repository of RootNet Trader

Bollinger Bands Signals

by techteam92
1 stars

This indicator calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Signals

EMA Crossover + RSI Strategy

by danielhyuncoder
1 stars

This strategy generates long signals on the price chart using EMA conditions and RSI levels. It enters long positions when the buy condition, based on EMA alignment checks over specified back bars, is satisfied. Exits occur at a stop loss calculated from the e

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of EMA Crossover + RSI Strategy

BB_signal1

by subhrapratim07
1 stars

This indicator plots standard Bollinger Bands consisting of an upper band, lower band, and a simple moving average directly on the price chart. It calculates the Relative Strength Index to identify overbought conditions. A bearish signal displays as a red down

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of BB_signal1

Trend Reversal

by Trader-IKU
1 stars

Combines an ATR-based Supertrend with an On Balance Volume momentum oscillator. The Supertrend bands, with adjustable ATR period, source and multiplier, appear on the price chart with up and down trend highlighting. The OBV momentum compares a short and a long

Indicator v5 TrendVolume
Updated 2 years ago · MIT GitHub repository of Trend Reversal

Multi Indicator

by ali-rezahashemi
1 stars

This indicator combines four tools on the price chart: three simple moving averages (12, 24 and 50 by default), a SuperTrend with an inner zone band and a slower long-term SuperTrend, NSDT HAMA-style candles with gradient colours, and a UT Bot style trailing s

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Multi Indicator
1 stars

This indicator combines a squeeze momentum histogram with an ADX line in a separate pane. The squeeze part compares Bollinger Bands with Keltner Channels and marks the squeeze state with coloured crosses on the zero line, while the histogram shows a linear reg

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of ADX + Squeeze Momentum Indicator

3Commas Bot

by amico1234
1 stars

This strategy plots two moving averages on the price chart and uses their relationship to bias long or short trades. Entries can be limited to one direction or allowed to reverse. Stops sit beyond a swing high or low by an ATR multiple, and a reward-to-risk li

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of 3Commas Bot

LWTI-pro

by 78i87
1 stars

LWTI-pro is a custom momentum oscillator plotted in a separate pane. It computes a normalized line from the difference between current and per-bar-close prices divided by ATR then scaled to center at 50. Optional smoothing applies SMA EMA WMA or RMA to the lin

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of LWTI-pro
1 stars

Plots a modified Bollinger setup on the price chart. It draws a 20-bar EMA basis with inner bands at one standard deviation and outer bands at an adjustable multiplier, plus a 13-bar EMA and a 200-bar EMA coloured by price position. Band width is compared with

Indicator v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of Modified Bollinger by Alex

Señal Compra/Venta

by LucasNatoli
1 stars

This indicator plots buy and sell markers on the price chart using RSI and Bollinger Bands. A buy triangle appears when RSI is at or below the oversold level and the close is at or below the lower band. A sell triangle appears when RSI is at or above the overb

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · CC0-1.0 GitHub repository of Señal Compra/Venta
1 stars

This indicator overlays two variants of Bollinger Bands and four simple moving averages on the price chart. It plots the Bollinger basis along with upper and lower bands for two adjustable settings using different lengths and multipliers. It also displays MA7,

Indicator v4 Moving averagesVolatility & bands
Updated 2 years ago · None stated GitHub repository of Multi-Indicator Script

ADX Breakout

by merdunal
1 stars

A strategy that treats a low ADX, below 18 by default, as consolidation. It draws a box from the highest high and lowest low of the last 20 bars and enters when price crosses the box edge while ADX is low. The stop loss is half the box width and the profit tar

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · None stated GitHub repository of ADX Breakout

SuperBollingerTrend

by eduardofx
1 stars

A price-chart overlay that builds a trailing line from Bollinger Bands calculated on highs and lows. The line follows the lower band while price is above it and the upper band while price is below, flipping colour when price crosses. Each flip can draw a zigza

Indicator v5 TrendVolatility & bands
Updated 2 years ago · None stated GitHub repository of SuperBollingerTrend

Engulf Indicator

by theomgdev
1 stars

The Engulf Indicator calculates a custom candlestick metric in a separate pane by evaluating the ratio of candle body size to total candle range, comparing it with the previous bar's body size, and normalizing the result with the Average True Range (ATR). It p

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

An overlay indicator that draws Bollinger-style bands around a 20-period simple moving average using four standard deviation multipliers based on Fibonacci ratios: 2, 2.618, 3.618 and 4.618 by default. Upper bands are red and lower bands green, and the outermo

Indicator v5 Volatility & bandsMean reversion
Updated 3 years ago · GPL-3.0 GitHub repository of Bollinger Bands Fibonacci Ratios

2Mars Strategy

by facejungle
1 stars

A multi-entry strategy combining a moving average cross, Bollinger Band touches and an optional SuperTrend confirmation. Extra orders can open when price reaches chosen outer bands, up to three entries in the same direction. Take-profit levels use standard dev

Strategy v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of 2Mars Strategy
1 stars

An indicator in a separate pane that estimates annualised volatility with a barrier method. It resets a price barrier whenever high or low moves beyond a set fractional distance, records how long each exit took, averages those times over a window, and converts

Indicator v5 Volatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of Barrier Volatility Estimator

X Trend

by Sikako
1 stars

X Trend is an overlay strategy that identifies trend direction and potential entry points using a custom X Trend trailing line, exponential moving averages, and Half Trend calculations. It includes optional Impulse MACD filtering designed to avoid ranging mark

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of X Trend
1 stars

A strategy that combines an Ichimoku-style cloud built from Donchian midpoints, MACD, a stochastic and ATR on the price chart. ATR-based stop loss and take profit multipliers, each defaulting to 1.0, set exit distances. A position side setting limits trading t

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of FXFUNDINGMATE Trend Indicator
1 stars

A separate-pane indicator that ranks the current Bollinger Band Width against its own history and shows the result as a percentile line from 0 to 100. Settings include the price source, basis moving average type, band length, a lookback of 252 bars, line colou

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Bollinger Band Width Percentile

12-BB

by sam30606
1 stars

This overlay strategy combines a Bollinger-style band with separate ATR upper and lower envelopes and optional ADX, Volume Flow Indicator, and RSI filters. It sizes positions as a percentage of equity. Settings change band length and multiplier, ATR periods an

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of 12-BB

ATR

by AliSawari
1 stars

An indicator that draws stop-loss and take-profit style lines on the price chart using a 14-period ATR. A 200-period EMA decides direction: in an uptrend the lower line sits one ATR below the close and the upper line one ATR above, and in a downtrend they swap

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MPL-2.0 GitHub repository of ATR

Sabarobe

by jinjernot
1 stars

An overlay indicator that stacks many familiar tools on one chart: Bollinger Bands, simple moving averages at 5, 10, 50, 100 and 200, exponential averages at 10, 55, 100 and 200, and an Ichimoku cloud. It also marks triangles when a reversal-style candle forms

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Sabarobe

Keltner Width KW

by Kasra-Saeid
1 stars

The Keltner Width indicator calculates the percentage width of Keltner Channel bands based on a moving average of a selected source price multiplied by a range such as ATR or True Range. It plots the resulting width value in a separate pane using column style

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Keltner Width KW
1 stars

Standard Deviation Refurbished plots the standard deviation of a chosen source in a separate pane, with optional smoothing using several moving average types and optional normalization to a 0 to 100 range. Up to ten moving averages of the standard deviation ca

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Standard Deviation Refurbished

Altcoin Analyzer [Lysergik]

by LysergikProductions
1 stars

This indicator plots the relative price of an altcoin against Bitcoin by dividing the current symbol's OHLC values by INDEX:BTCUSD data. It displays the synthetic pair as either a simple line or custom candlesticks with an optional Heikin-Ashi calculation in a

Indicator v5 Volatility & bandsCandlestick patterns Repaints
Updated 4 years ago · AGPL-3.0 GitHub repository of Altcoin Analyzer [Lysergik]
1 stars

This strategy template plots indicators directly on the price chart, including exponential moving averages, relative strength index, and average directional movement. It incorporates position management options such as account leverage, percentage-based positi

Strategy v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Strategy Template

Nadaraya-Watson Envelope

by 0xfffangel
1 stars

An overlay that fits a Nadaraya-Watson kernel regression curve to recent prices and wraps it with upper and lower bands set at a multiple of the mean absolute error. The window size, bandwidth, band multiplier and source are adjustable. Arrows mark where price

Indicator v5 Mean reversionVolatility & bands Repaints
Updated 4 years ago · None stated GitHub repository of Nadaraya-Watson Envelope

Barbwire v1.0.0

by itmakesyousick
1 stars

Looks for barbwire zones, runs of bars with unusually small ranges, and boxes them on the price chart. It measures how small recent bars are using Heikin-Ashi data, scaled over a period with a level threshold and a minimum number of bars. Settings choose open

Indicator v5 Candlestick patternsVolatility & bands
Updated 4 years ago · None stated GitHub repository of Barbwire v1.0.0
1 stars

A multi-tool overlay that bundles several classic studies on one chart, each with its own on/off switch. These include a blended BBI moving average colored by position against price, four configurable EMAs, Bollinger bands, parabolic SAR, zigzag with fib level

Indicator v5 TrendMoving averages
Updated 4 years ago · MIT GitHub repository of Victorinox by Illupute v1
1 stars

A multi-study overlay that plots a triple exponential moving average, short SMAs, EMAs at 9, 20, 50, 100 and 200, and an ATR band around an EMA midline. It shades the background when the 9 and 20 EMAs cross and when the CCI moves back through plus or minus 100

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of TEMA + 9 EMA + ATR + CCI + WR

RSI & Stochastic

by tkittich
1 stars

The script plots the Relative Strength Index and Stochastic oscillator indicators in separate panes. It calculates the RSI with customizable length, source, and MA type including Bollinger Bands, and the Stochastic oscillator with %K and %D periods. It draws o

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of RSI & Stochastic

0DTE IF

by tyler314
1 stars

This indicator simulates zero-day-to-expiration options trades by plotting scheduled entry and exit shapes directly on the price chart. It signals entries on Mondays, Wednesdays, and Fridays at a user-defined time when the VIX remains below a specified limit.

Indicator v5 Sessions & timeVolatility & bands
Updated 4 years ago · None stated GitHub repository of 0DTE IF

Leo Supertrend

by kodtodya
1 stars

Leo Supertrend calculates and plots a Supertrend indicator alongside an Exponential Moving Average on the main price chart. It determines trend direction by tracking price relative to an ATR-based volatility band, supporting both standard RMA and simple moving

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

Risk

by tseitz
1 stars

An indicator in a separate pane that estimates a normalised risk metric between 0 and 1. It takes the log distance between price and its 365 period simple moving average, scales it by the bar index raised to a power, then normalises it against the running high

Indicator v5 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Risk
330 stars

This strategy calculates Bollinger Bands and Aroon oscillator values to identify mean-reversion opportunities. It enters a long position using full equity when the closing price crosses below the lower Bollinger Band while Aroon Up remains above a user-specifi

Strategy v5 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger bands + Aroon [Alorse]

Consolidation Filter

by capissimo
114 stars

Consolidation Filter identifies market indecision and sideways ranges characterized by low volatility. It computes a forecast oscillator variant comparing price against an exponential moving average or a McGinley dynamic across three selectable methods. When t

Indicator v5 Volatility & bandsMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Consolidation Filter

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