Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 48)

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

Market Rhythm Adaptive Trading Algo V1 is an overlay indicator that combines Kaufman Adaptive Moving Averages (KAMA), an ADX regime filter, Choppiness Index, Rate of Change, and RSI to identify market rhythm and trend entries. Depending on whether the ADX valu

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Market Rhythm Adaptive Trading Algo V1

Trailering K004

by ruckard
13 stars

Trailering K004 is a long-only strategy designed with integrated Zignaly automated alert webhooks. It calculates entry signals and dynamically adjusts capital allocation based on the number of active sub-strategy conditions met over a specified lookback period

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering K004

VWAP Trader NXi

by eddiebelaval
7 stars

VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous

Indicator v5 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Trader NXi

The Keltner Center Of Gravity Channel Mutations Indicator calculates adaptive channel metrics based on Donchian range Fibonacci levels (38.2% and 61.8%) and Average True Range (ATR) offsets. The lookback period automatically adjusts according to the active tim

Indicator v5 Volatility & bandsVolume
Updated 8 months ago · None stated GitHub repository of Keltner Center Of Gravity Channel Mutations Indicator
106 stars

This strategy backtests a long Bollinger Band deal on the price chart for 3Commas-style bots. It plots short and long simple moving averages, offset bands, and the average entry price of the open deal. A long starts when price crosses the lower band inside a c

Strategy v4 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 3Commas Bollinger Strategy
1 stars

A price-chart indicator that plots a zero-lag EMA with an ATR band around it. The trend flips long when price closes above the upper band and short when it closes below the lower band, marked with buy and sell labels and a shaded channel. Optional features inc

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Adaptive Zero-Lag Reversal Engine
106 stars

3x Supertrend and Stoch RSI is an overlay strategy combining three Supertrend indicators with Stochastic RSI momentum and a 200-period Exponential Moving Average. It uses the 200 EMA to establish the primary trend direction, requiring agreement across fast, me

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3x Supertrend and Stoch RSI
3 stars

This indicator combines Bollinger Bands, fractal detection, and RSI-based swing analysis within a customizable trading session. It identifies regular or Bill Williams fractals during active session hours and generates long or short signals when fractal extreme

Indicator v5 Volatility & bandsSessions & time
Updated 5 months ago · None stated GitHub repository of MCF and Trendy Pipsy

Apex Ultra Engine v3

by vedkanani123
1 stars

An overlay indicator built on a zero-lag EMA with an ATR trailing stop. It reads market regime from ADX, adds RSI and Stochastic RSI momentum filters, and treats volume or oversized candles as spikes with a cooldown. Entries can display three take profit level

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Apex Ultra Engine v3

TnS_ICT_V20

by raybird
1 stars

TnS_ICT_V20 is a Pine Script v6 strategy that identifies institutional trading opportunities using ICT concepts. It calculates pivot swings as support and resistance levels, OTE zones, and a thermodynamic audit based on free energy and fractal entropy to filte

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TnS_ICT_V20
99 stars

This indicator calculates the interquartile range of a chosen price source over a lookback window. It estimates the 25th and 75th percentiles with linear interpolation, then plots their difference as a line in a separate pane. The source and lookback period ar

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Interquartile Range (IQR)

Calculates and plots a multi-band envelope on the price chart based on mean reversion principles and Keltner Channel concepts. Instead of standard moving averages, it uses advanced filters such as Ehlers SuperSmoother, Butterworth, Gaussian, or traditional ave

Indicator v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Mean Reversion Channel - MRI Variant

TnS_ICT_V6

by raybird
1 stars

TnS_ICT_V6 is a Pine Script v6 strategy that identifies liquidity sweeps and displacement moves exceeding a multiple of ATR. It detects Fair Value Gaps and Optimal Trade Entries in the 62 to 79 percent retracement zone of the displacement leg to generate buy a

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnS_ICT_V6
1 stars

This strategy is a validation probe that opens one long at 08:00 and one short at 20:00 when the position is flat. Each entry sets an ATR-based stop, a limit at twice that stop distance, and a trailing stop whose trail points equal the current ATR. ATR length

Strategy v6 Volatility & bandsSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 91 - atr trail fixed entry

Grok Apex Flip Engine v1

by vedkanani123
1 stars

An always-in flip indicator on the price chart, written in Pine version 5, where BUY exits a short and enters long and SELL does the reverse. It uses a wide Supertrend-style ATR trail with a cap on how far the trail can move per bar, plus an optional volume-we

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Grok Apex Flip Engine v1

This indicator calculates a volatility-adaptive SuperTrend by applying k-means clustering to ATR values over a user-defined training period. It segments historical volatility into high, medium, and low clusters to dynamically adjust the SuperTrend bands to shi

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Machine Learning Adaptive SuperTrend [AlgoAlpha]

TNT Opening Drive OD

by nishpa800
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD

TnS_StochDiv_V6

by raybird
1 stars

This Pine Script strategy detects causal reversals using a smoothed stochastic oscillator to track momentum. It identifies harmonic divergences in price versus the oscillator and applies a Kronos resonance proxy based on phase coherence. ATR dynamically sets s

Strategy v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of TnS_StochDiv_V6

Nexus Prime Engine v1

by vedkanani123
1 stars

An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v1
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v2

This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Breakout Confluence V6
99 stars

This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Adaptive Envelope Bands

Volatility Stop

by TWODS-CAPITAL
37 stars

This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MIT GitHub repository of Volatility Stop
1 stars

An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v2.1 Anti-Noise
1 stars

This strategy draws on the price chart and filters directional signals with four optional checks. It compares a fast exponential moving average with a slower one, requires volume above its average when the volume audit is on, and aligns close with a higher-tim

Strategy v6 Moving averagesVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Confirmed

This strategy calculates an Adaptive Hull Moving Average (HMA+) that dynamically adjusts its period based on market volatility measured by fast and slow ATR indicators. It uses slope angle calculations to categorize market conditions into trending, consolidati

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 72s Strategy: Adaptive Hull Moving Average+ pt.1

Volty Expan Close Strategy

by TWODS-CAPITAL
37 stars

Volty Expan Close Strategy is a volatility expansion breakout strategy that enters long or short positions when price exceeds the closing price by a specified ATR multiple. It calculates an ATR-based volatility threshold using a simple moving average of true r

Strategy v5 Volatility & bandsBreakout
Updated 3 years ago · MIT GitHub repository of Volty Expan Close Strategy
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

TnSovereign Fakeout Filter V6 is a trend-following strategy designed to reduce false breakouts by evaluating entries against a four-layer scoring system. It checks fast and slow EMA crossovers alongside volume surges, higher-timeframe trend alignment, and ATR

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Filter V6
1 stars

Parallel Universe Price Forecast is an indicator that detrends price using moving averages to extract slopes and angles from two universes weighted by fast and slow factors. It normalizes the combined angle into a symmetrical oscillator and projects the price

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Parallel Universe Price Forecast

This overlay strategy enters when a fair-value gap is larger than a minimum ATR multiple, volume exceeds 1.5 times its 20-bar average, and path efficiency over 20 bars clears a threshold. Longs also require price below a lookback high, and shorts require price

Strategy v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of TnSovereign Imbalance Confluence
37 stars

This indicator plots a volume-weighted average price on the price chart. It accumulates the selected source, defaulting to the average of high, low, and close, against volume and resets when the chosen anchor begins. Anchors include session, week, month, quart

Indicator v5 VolumeVolatility & bands Repaints
Updated 3 years ago · MIT GitHub repository of Volume Weighted Average Price

MicroQuant Trend

by g-moe
3 stars

MicroQuant Trend is a Supertrend-based indicator that calculates dynamic bands using EMA of high and low prices adjusted by ATR. It plots green circles for uptrend direction and red for downtrend. Background colors change to green or red when the trend flips.

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend
1 stars

The strategy detects range expansion by comparing the previous bar's range to its ATR multiple. It places pending stop entries above highs of up bars or below lows of down bars. On trigger it enters positions with take profit and stop loss in ticks using OCA g

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97 - tp/sl gap reversal oca

888 BOT Backtest

by hasnocool
106 stars

888 BOT Backtest is a multi-indicator trading strategy that evaluates market conditions by combining a Jurik Moving Average, Range Filter, Average Directional Index (ADX), Parabolic SAR, volume-weighted RSI, MACD, and volume thresholds. Each individual filter

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 888 BOT Backtest
3 stars

MicroQuant Trend Strat is a trend-following strategy overlaid on the price chart that utilizes a modified Supertrend calculation built with EMA bands and Average True Range volatility bounds. It opens long positions when the trend direction turns bullish and s

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend Strat
1 stars

An overlay indicator that tries to show only larger reversals through a very wide ATR trail. A main buy or sell requires a trail break with confirmation closes, a swing high or low break, minimum travel from the last flip, and a minimum pullback from the leg p

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Nexus Prime Engine v6 Major Only
3 stars

This strategy executes trades based on a modified Supertrend indicator combining exponential moving averages, price channels, and ATR bands. It enters long positions when the trend direction turns bullish and short positions when it turns bearish, filtered by

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of MicroQuant Trend Strat +TS
1 stars

A reversal strategy that looks for liquidity sweeps: price pokes beyond the prior swing high or low and closes back inside. Entries must agree with a higher-timeframe EMA 50 and 200 trend, pass an ATR volatility corridor and a candle body check, and optionally

Strategy v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Reversal Engine

Keltner Channel (KC)

by mihakralj
99 stars

This indicator calculates a Keltner Channel on the price chart. The middle line is an exponential moving average of the chosen source, with a warmup weight so the average builds from the first bars. Upper and lower bands sit a multiple of average true range aw

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Keltner Channel (KC)
1 stars

A test strategy from a reference corpus that arms pending stop entries after a range expansion. When the previous bar's range exceeds a multiple of the prior ATR, it places a buy stop at the previous high if that bar closed up, or a sell stop at the previous l

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 97c Range Expansion Pending Stop

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