Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 41)

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

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]
114 stars

This indicator implements a dual-direction variation of the Williams Vix Fix oscillator in a separate pane. It normalizes price data using min-max scaling to compute both upward and downward synthetic volatility metrics across two selectable calculation modes

Indicator v4 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of Combo Williams Vix Fix (Twin)

This long-only strategy trades intra-range mean reversion using standard or augmented Bollinger Bands overlayed on the main price chart. It triggers long entries when price dips below the lower band, provided the band spread stays within a defined threshold. E

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of B.Bands | Augmented | Intra-range | Long-Only

CRT + Turtle Soup Scanner

by alboogycOdR
6 stars

Calculates CRT session range boundaries and detects Turtle Soup setups to identify potential breakout signals. The script tracks session high, low, and midpoint values to determine intraday bias while measuring price break distances against ATR thresholds. It

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT + Turtle Soup Scanner

VWAP Bands [trugurpala]

by trugurpala
4 stars

This indicator plots a volume-weighted average price that restarts at the beginning of each daily session, using typical price and cumulative volume. It draws the VWAP line on the price chart and optional standard-deviation bands at two user-set multipliers. B

Indicator v6 VolumeVolatility & bands
Updated 2 months ago · MIT GitHub repository of VWAP Bands [trugurpala]

Parkinson Volatility (PV)

by mushroom-men-Trading
2 stars

This indicator calculates Parkinson volatility from the logarithm of each bar's high divided by its low. It squares that term, smooths it with an RMA over the chosen length, and takes the square root after scaling by four times the natural log of two. When ann

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Parkinson Volatility (PV)

Trend #4 - ATR+EMA channel

by wynnforthework
2 stars

Trend #4 - ATR+EMA channel is a strategy that plots ATR bands, a blue Keltner-style channel, and a red EMA on the price chart. It generates long entries when price crosses above the blue channel and red EMA with zero position, using position sizing based on st

Strategy v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend #4 - ATR+EMA channel

DEPV2 DEBUG S39

by YuceSezar89
1 stars

DEPV2 DEBUG S39 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It processes four analytical categories—trend, momentum, volatility, and volume—to evaluate market direction. Users can configure

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S39

CODEX NO1 Flip Engine v3

by vedkanani123
1 stars

A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 3 adds an adaptive KAMA component to the baseline and a reversal acceptance step that checks directional energy, close locatio

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v3

Bollinger Bands

by be-thomas
65 stars

This indicator plots standard Bollinger Bands directly on the price chart using hardcoded settings of a 5-period length and a 4 standard deviation multiplier. It displays the middle basis line in blue, the upper and lower outer bands in green, and fills the ch

Indicator v4 Volatility & bandsMean reversion
Updated 6 days ago · GPL-3.0 GitHub repository of Bollinger Bands
47 stars

This indicator calculates and plots a standard Keltner Channel directly on the price chart. It generates an exponential moving average middle line alongside upper and lower bands spaced by an Average True Range multiplier. The implementation features warm-up c

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Keltner Channel (KCHANNEL)

Session Statistical Levels

by TamaraKGreen
46 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Statistical Levels

DEPV2 DEBUG S42

by YuceSezar89
1 stars

This multi-asset indicator evaluates market conditions across four analytical dimensions: trend, momentum, volatility, and volume. Configured for up to twenty cryptocurrency pairs, it generates trade signals through isolated methods, simultaneous multi-method

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S42

CODEX NO1 Flip Engine v4

by vedkanani123
1 stars

A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 4 is a separate state machine using a fast ZLEMA, a slow baseline, KAMA and a widened ATR trail. A signal needs a completed-bo

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v4
330 stars

This strategy trades breakouts beyond custom Bollinger Bands and closes positions upon mean reversion back to the central moving average. It enters long when the close crosses above the upper band and exits when the close crosses below the simple moving averag

Strategy v4 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger Breakout [kodify]

TylerG FVG BB Reversal

by TradersPost
228 stars

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · None stated GitHub repository of TylerG FVG BB Reversal
114 stars

This indicator adapts Michael Chalek's Dual Thrust trading concept to plot breakout levels and overlay bands directly on the price chart. It calculates lookback ranges based on historical price action and provides two algorithmic variations along with multiple

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Dual Thrust Trading Algorithm

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

This indicator scores trend alignment across the chart timeframe and three configurable higher timeframes. It classifies each timeframe as bullish or bearish with Supertrend and, when enabled, a volatility regime, then combines the results into a 0–100 conflue

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of MTF Trend Alignment Dashboard [WavesUnchained]

DEPV2 DEBUG S43

by YuceSezar89
1 stars

Monitors up to twenty cryptocurrency perpetual contracts across four analytical dimensions: trend, momentum, volatility, and volume. The indicator evaluates signals using single-method triggers, simultaneous confluence thresholds, sequential execution chains w

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S43

CODEX NO1 Flip Engine v5

by vedkanani123
1 stars

A structure-confirmed trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A flip passes a chain of tests: confirmed close, clean regime, normalized baseline slope relative to ATR, displacement, a complete

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v5
114 stars

This indicator calculates a stepped trend line directly on the main price chart by combining price efficiency with adaptive standard deviation thresholds. When price exceeds the volatility band, the step level adjusts and changes color between green and red. T

Indicator v4 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Efficient Trend Step Mod

Faith JL

by g-moe
3 stars

This indicator evaluates market sentiment and momentum using Aroon crossovers, intra-bar buy and sell volume estimation, and an ATR-based calculation. It generates modular buy and sell conditions filtered by volume thresholds, percentage bands, and Aroon signa

Indicator v5 VolumeTrend
Updated 5 months ago · None stated GitHub repository of Faith JL

Price Series

by Web3Degenerate
2 stars

This indicator calculates the size of each candle as the difference between its high and low prices and the ratio of the current candle size to its size ten bars ago. It also plots volume. All series are drawn in a separate pane below the price chart. The scri

Indicator v5 VolumeVolatility & bands
Updated 2 years ago · None stated GitHub repository of Price Series

DEPV2 DEBUG S44

by YuceSezar89
1 stars

DEPV2 DEBUG S44 is a multi-asset signal and confluence indicator designed for cryptocurrency pairs. It monitors up to twenty Binance perpetual contracts across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script supports mu

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S44
330 stars

Exceeded Candle [Alorse] is a mean-reversion strategy that identifies candlestick engulfing patterns combined with Bollinger Bands filters. It enters a long position when a green candle surpasses the body of the previous red candle while price is below the mid

Strategy v4 Mean reversionCandlestick patterns
Updated 2 months ago · None stated GitHub repository of Exceeded candle [Alorse]

VWAP - Basic

by TradersPost
228 stars

VWAP - Basic plots an anchored Volume Weighted Average Price directly on the main price chart alongside two standard deviation bands. It calculates typical price weighted by volume, resetting the cumulative calculations at user-selected session, weekly, or mon

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP - Basic

Band-Zigzag TrendFollower Strategy is a trend-following trading system that combines volatility bands, such as Bollinger Bands or Keltner Channels, with pivot-based trend structure. It evaluates trend switches and invalidation levels using adaptive or sticky b

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Band-Zigzag - TrendFollower Strategy [Trendoscope]
99 stars

This indicator plots a Dynamic Momentum Index in a separate pane. It computes a volatility ratio from short and long population standard deviations, then clamps a rounded base period divided by that ratio between minimum and maximum lengths. A Wilder RMA RSI u

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Dynamic Momentum Index (DYMI)

CCI DC

by be-thomas
65 stars

This indicator plots the Commodity Channel Index of close in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. Short-term ATR relative to a longer ATR is ranked from 0 to 100; high volatility shortens the l

Indicator v4 Oscillators & momentumVolatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of CCI DC
46 stars

This overlay indicator plots an average daily range and an optional median line from a chosen lookback, plus boxes and labels for four user-defined sessions defaulting to Asia, London, the New York open, and the New York initial balance. It can show a session

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Statistcal Daily Profile & Ranges
6 stars

This overlay indicator maps a timed CRT session range and draws a range box, supply and demand zones, a midpoint take-profit line, and optional entry labels. It tracks range, manipulation, and distribution states, and can filter signals with market structure,

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
3 stars

Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Farid Makram Custom Levels

RSI Chart Signals

by Web3Degenerate
2 stars

This indicator plots a customized RSI line on the price chart along with buy and sell signals triggered by bullish and bearish engulfing candle patterns. It calculates RSI using a user-adjustable length and custom overbought and oversold thresholds. Signals oc

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Chart Signals

DEPV2 DEBUG S46

by YuceSezar89
1 stars

DEPV2 DEBUG S46 is a Pine Script v6 indicator that draws in a separate pane. It tracks up to twenty user-selected crypto perpetual symbols and combines four signal classes: trend, momentum, volatility, and volume. The signal mode can use one class, require sev

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S46

VWAP Bands Template

by TradersPost
228 stars

This indicator plots a volume-weighted average price and three standard-deviation bands on the price chart. It resets the running volume-weighted totals at the selected anchor, which can be the session, week, month, quarter, or year. The source price, band mul

Indicator v6 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Bands Template
106 stars

This strategy plots multiple indicators on the price chart for Bank Nifty index. It calculates MACD on different timeframes, RSI, ADX, Stochastic oscillator, and Bollinger Bands. The strategy generates buy signals when MACD shows upticks across timeframes, RSI

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Bank Nifty Bullish Intraday
6 stars

This overlay indicator maps a timed session range in SAST, then marks supply and demand zones, a midpoint target, and a four-hour manipulation trendline. It tracks range, manipulation, and distribution states and can plot long or short entry signals when marke

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
1 stars

This indicator plots a volume-weighted moving average as the central trend baseline on the price chart and surrounds it with ATR volatility bands. Trend conditions change when price breaks beyond those bands. Presets change the VWMA length and ATR multiplier f

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of Volume Weighted Trend [SkippAlgo]

FBF KC Companion v1

by nishpa800
1 stars

A companion indicator that draws about fifteen signal types on the price chart. It layers Keltner channel re-entry signals, triggered by a basis cross or a slope turn, over a pullback base, pocket pivot and pocket pivot down markers, displacement and a consoli

Indicator v5 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of FBF KC Companion v1
1 stars

A mean-reversion strategy that buys when price closes below a Bollinger Band while RSI stays above a floor level, and exits on upper-band breaks combined with RSI or MFI conditions. Three selectable versions exist: the first has no stop loss or take profit, wh

Strategy v4 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of Flawless Victory Strategy

This strategy overlays Supertrend on the price chart and trades only inside a set session and backtest date range. It enters long when Supertrend turns up, or after a chosen candle delay while the trend is up, and enters short on the opposite conditions. It cl

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty 5min Supertrend Based Strategy

Impulse Candles

by eddiebelaval
7 stars

Impulse Candles identifies unusually large price bars relative to an Average True Range baseline. It measures candle body size against a user-defined ATR ratio and optionally filters for reversal setups following two consecutive candles of the opposite directi

Indicator v6 Volatility & bandsCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Impulse Candles
6 stars

This overlay indicator maps a timed session range from a chosen SAST start hour and session length, then draws the range box, midpoint, supply and demand zones, and an optional four-hour manipulation trendline. It tracks range, manipulation, and distribution s

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES

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