Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 40)

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

DX SPX VLT

by g-moe
3 stars

DX SPX VLT is an overlay indicator that evaluates market trends by combining moving average slope analysis, Aroon filters, and DTEK Supertrend components. It plots colored background highlights to represent overall trend direction, displays a moving average li

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of DX SPX VLT

Supply & Demand Zones XL

by rosijay17-cmd
1 stars

An overlay indicator that finds swing pivots, with adjustable bars left and right, and turns them into supply and demand zones sized by an ATR multiple. Overlap rules stop zones of the same or opposite type from stacking. Zones can be extended, historical and

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL

DEPV2 DEBUG S33

by YuceSezar89
1 stars

This indicator monitors up to twenty cryptocurrency perpetual pairs across four analytical categories: trend, momentum, volatility, and volume. It generates trade signals using multiple modes, including single-method execution, simultaneous confluence requirin

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

Plots standard deviation, variance and mean absolute deviation of close over a chosen length in a separate pane, and overlays a simple moving average of the same length on the price chart. The length input defaults to five. It also contains hand-written versio

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Standard Deviation Plots

Bubbles Indicator

by capissimo
114 stars

Bubbles Indicator visualizes market squeezes and bursts in a separate pane using standard deviation and normalized Bollinger Bands. It incorporates a Sinusoid oscillator, a scaled Commodity Channel Index (CCI), and a fast and slow RSI divergence factor to iden

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Bubbles Indicator

Decay Min-Max Channel

by mihakralj
99 stars

Decay Min-Max Channel plots a price channel whose upper and lower bounds decay toward their midpoint. Each bar it stores highs and lows in a rolling window, tracks the latest extremes, and applies exponential decay when no new high or low appears. The decay co

Indicator v6 Support & resistanceVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Decay Min-Max Channel
46 stars

Range Projections [Statistical Levels] calculates and projects expected price range levels based on historical statistical percentile data for specific trading session opens, such as Globex, London, NY Futures, and NY RTH. It uses day-of-week data to plot stat

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Range Projections [Statistical Levels]
16 stars

This strategy enters on Donchian channel breaks and can trade long, short, or both. Position size for each unit is based on a percentage of equity divided by an initial ATR stop. A chandelier stop trails a multiple of ATR from the highest high since entry for

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 7: Chandelier Trail

This strategy evaluates market signals using a combination of Trend Indicator A-V2, Supertrend, and QQE Mod along with a VWMA trend line. It generates long or short entries when a specified minimum number of sub-strategies align. Position management includes c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya A006

Game Theory EMA Strategy

by eddiebelaval
7 stars

The Game Theory EMA Strategy combines triple Exponential Moving Averages with game theory modeling to generate trade entries on price charts. It evaluates buyer and seller momentum alongside volume weighting to compute expected utility metrics and Nash equilib

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Game Theory EMA Strategy
4 stars

This strategy trades USD/JPY on the price chart. It enters long when a fast EMA crosses above a slow EMA and short when the fast EMA crosses below, but only during the Tokyo or London sessions in GMT. Each entry places an ATR-based stop loss and take profit us

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of USD/JPY Forex Strategy [trugurpala]
1 stars

A strategy conversion of a supply and demand zone indicator. Zone detection, strength scoring and break detection are unchanged: pivots with set bars left and right form ATR-sized zones that can be scored and tracked as they break. A new entries section places

Strategy v6 Support & resistanceVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL Strategy

DEPV2 DEBUG S34

by YuceSezar89
1 stars

DEPV2 DEBUG S34 is a multi-symbol crypto signal indicator that analyzes 20 Binance pairs (BTC, ETH, SOL, and others) using trend, momentum, volatility, and volume methods. It plots signals in a separate pane based on user-selected confirmation modes such as si

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

This strategy calculates Global Minimum Variance Portfolio (GMVP) optimal weights across three asset symbols using matrix algebra in Pine Script v6. It fetches log returns for the specified assets, computes their covariance matrix, and inverts it to rebalance

Strategy v6 Screeners & dashboardsVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Markowitz GMVP Sovereign v6

Supertrend Comparison

by ivansoft
1 stars

Plots the built-in Supertrend with a factor of 3 and ATR period of 10, then plots a hand-written Pine version of the same calculation so the two can be compared. Green segments mark an uptrend and red segments a downtrend. It appears in a separate pane rather

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Comparison

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart
47 stars

This indicator calculates adaptive Jurik Volatility Bands and plots an upper band, a lower band, and a filled channel directly on the price chart. It dynamically adjusts band width according to prevailing market volatility using an adaptive volatility weightin

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Jurik Volatility Bands (JBANDS)
16 stars

This strategy enters long or short breakouts when price crosses a Donchian channel and exits with a volatility-adaptive Donchian lookback that is shorter in low volatility and longer in high volatility. It sizes each unit from a percentage of equity and an ATR

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 8: Adaptive Exit
7 stars

Calculates a proxy for options gamma hedging pressure by combining ATR-normalized candle range, price acceleration, and volume participation normalized by a volume moving average. The smoothed pressure metric is plotted as a color-coded histogram in a separate

Indicator v6 Volatility & bandsVolume
Updated 3 months ago · None stated GitHub repository of Gamma Hedging Pressure (Proxy)

Calculates three Exponential Moving Averages (short, intermediate, long) alongside Stochastic RSI to identify short trade entries. A short position opens when the EMAs align in a downward trend, Stochastic K crosses below D, and a bearish price bar closes belo

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Triple EMA + Stochastic Short Strategy
3 stars

This strategy generates long trade entries when a short exponential moving average crosses above a long exponential moving average. It features comprehensive position management tools including an ATR-based stop loss, a maximum percentage loss threshold, a pro

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of EMA Crossover ATR Strategy

Normalized Average True Range

by mushroom-men-Trading
2 stars

The Normalized Average True Range indicator calculates NATR as a percentage of the current close price using a true range based on the specified length. It plots the resulting value on a separate pane for easy viewing. The main input setting is the length para

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Normalized Average True Range

G Trend

by wynnforthework
2 stars

G Trend is an overlay indicator that builds ATR trailing stops around the midpoint of each bar and flips between a long and a short state when price crosses the opposite stop. A buy label appears when the state turns long and a sell label when it turns short.

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

DEPV2 DEBUG S35

by YuceSezar89
1 stars

DEPV2 DEBUG S35 is a debugging indicator that calculates multi-symbol trading signals using four methods: trend, momentum, volatility, and volume. It monitors 20 different crypto pairs including BTCUSDT, ETHUSDT, and others. The script allows users to select s

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

A trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 2 makes a reversal a two-stage event: the opposite side must break the active ATR trail for consecutive closes, then show persistence, trade m

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NEXUS v2 - Anti-Whipsaw MTF
330 stars

Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Alert BB + RSI [Alorse]

Chop and Explode

by capissimo
114 stars

Chop and Explode is a momentum indicator designed to identify consolidation zones and potential breakout moves. It applies minimax scaling to price data over a set lookback window before calculating a Relative Strength Index (RSI). The indicator plots the modi

Indicator v4 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode
16 stars

Seykota Alt 9: Time Exit Primary executes a Donchian breakout trend-following strategy that prioritizes time-based exits over price-based trailing stops. It enters long or short on 55-bar Donchian channel breakouts, sizing positions by ATR-based risk and pyram

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 9: Time Exit Primary

This strategy combines Trend Indicator A-V2, Supertrend and QQE Mod to generate long and short signals on the price chart. It enters positions based on the combined trend signals and manages exits using take profit and stop loss levels. Position sizing follows

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya C002

VİOP Session Strategy

by trugurpala
4 stars

This strategy trades Turkish VIOP BIST 30 futures on the price chart. It opens positions when a fast exponential moving average crosses a slow one, but only while chart time falls inside the 09:30 to 18:15 UTC+3 session. Stop loss and take profit distances are

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of VİOP Session Strategy

Price Action Trading 策略

by wynnforthework
2 stars

Calculates and plots a customizable moving average alongside trailing ATR bands, forming the Profit Maximizer trend-following framework. It supports multiple moving average algorithms including EMA, ZLEMA, VAR, and TSF, alongside configurable ATR multipliers.

Strategy v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Price Action Trading 策略

DEPV2 DEBUG S36

by YuceSezar89
1 stars

DEPV2 DEBUG S36 is a multi-symbol quantitative research indicator rendered in a separate pane. It evaluates market conditions across up to twenty cryptocurrency pairs by combining four distinct analytical dimensions: trend, momentum, volatility, and volume. Us

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

Chop and Explode for XBTUSD, etc calculates a relative strength index (RSI) applied to price data scaled via a minimax normalization function over a specified lookback period. It plots the custom RSI line in a separate pane with horizontal reference bands and

Indicator v4 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode for XBTUSD, etc

AVWAP Strategy

by hasnocool
106 stars

This overlay strategy builds a smoothed price source from expanded candle and Heikin-Ashi inputs using AMA, T3, or Kaufman's adaptive moving average. The Kaufman path can adapt with a Jurik fractal dimension, and a Garman-Klass-Yang-Zhang volatility filter can

Strategy v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of AVWAP Strategy

The Market Stress Oscillator plots a bi-directional Williams VIX Fix in a separate pane, with separate bull and bear stress lines. It applies JMA smoothing to both series and shows ADX strength as context for judging noisy readings. Peak-hold markers mark stre

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of MSO - Market Stress Oscillator [WavesUnchained]
7 stars

This indicator plots a zero-lag EMA center line with ATR bands on the price chart. It marks bullish or bearish mode after closes stay beyond a band for a set number of bars and the center line slopes that way. Confirmed buy and sell labels appear only after th

Indicator v6 TrendMoving averages Repaints
Updated 3 months ago · None stated GitHub repository of GK Trend Ribbon SWING + PREPARE HUD
2 stars

Expected Value Monte Carlo analyzes historical price returns and projects potential future outcomes directly on the price chart using statistical simulations. It calculates historical performance metrics over a configurable sample period and simulates future p

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Expected Value Monte Carlo
2 stars

This strategy plots period high and low breakout bands on the price chart and trades breaks of those bands. It goes long when price closes above the upper band while that band is above a simple moving average, and short on the opposite setup. Position size is

Strategy v4 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Trend #1 - ATR+Breakout high/low

DEPV2 DEBUG S37

by YuceSezar89
1 stars

DEPV2 DEBUG S37 is a separate-pane indicator that watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs. It forms directional signals from four method classes: trend, momentum, volatility, and volume. Modes use one class, requi

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

CODEX NO1 Flip Engine v2

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. It uses an ATR trail, a zero-lag EMA for fast structure and a slow baseline, plus ADX, choppiness, efficiency and RSI inputs. An optio

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

This strategy calculates a composite rating from a TechnicalRating library using moving averages and oscillators. It plots signals directly on the price chart. The ratingSignal setting selects which components to base the signal on: MAs, Oscillators, or All. W

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Technical Ratings Strategy

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