Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 26)

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

RSI/BB 1minute Study

by SammyEnigma
18 stars

This 1-minute strategy combines the Relative Strength Index (RSI), Bollinger Bands, and Bollinger Band Width to trigger trades. It plots the RSI curve and custom buy or sell threshold lines in a separate pane. Long entries trigger when price and RSI drop below

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB 1minute Study
16 stars

This strategy implements Turtle System 1 fast trend following directly on the price chart. It opens long or short positions upon 20-bar Donchian channel breakouts and exits on opposing 10-bar Donchian extremes. Position sizing is calculated dynamically from AT

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Fast Breakout (S1)

Trend Compass 4H

by chris-c-thomas
14 stars

Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 4H

Renko Acceleration

by f-cksociety
11 stars

Calculates the time elapsed between consecutive bars to measure market speed and volatility, designed primarily for Renko chart blocks where bar duration varies. In Momentum mode, it contrasts the current duration against a 100-period moving average baseline,

Indicator v4 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Renko Acceleration
9 stars

This separate-pane indicator calculates multi-period volatility regimes by analyzing fast, medium, and slow Average True Range (ATR) metrics alongside volume integration, gap adjustments, and session weighting. It visualizes volatility states using a heat map

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · Custom licence GitHub repository of QVS Pro - Raw Volatility Edition

This indicator plots On Balance Volume in a separate pane and can overlay a smoothing average of that series. By default it draws a 20-period SMA of OBV with Bollinger Bands set two standard deviations away, plus a fixed 10-period EMA of OBV. A fill between th

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · None stated GitHub repository of On Balance Volume & Bolliner Bands

SuperTrend

by SiegerTerpstra
5 stars

This indicator calculates and plots dynamic SuperTrend volatility bands around median price to identify market trend direction. It signals bullish conditions when price stays above the green support line and bearish conditions when price falls below the red re

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of SuperTrend

Elton's Screener

by eltonaguiar
4 stars

Elton's Screener is an indicator that runs in a separate pane and scores one of twenty selectable strategies, or auto-selects a route from the symbol type. It filters signals by a minimum confidence level and a higher-timeframe EMA trend alignment. ATR multipl

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of Elton's Screener

Relative Liquidity Index

by InNoobWeTrust
4 stars

The Relative Liquidity Index measures market volatility and liquidity dynamics by calculating the Relative Strength Index (RSI) of the Average True Range (ATR). Displayed in a separate pane, it highlights low and high liquidity states based on configurable thr

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Relative Liquidity Index

Zeguela Supertrend

by danielvm-git
2 stars

This strategy plots a Supertrend indicator directly on the price chart to generate trend-following trade signals. It calculates dynamic upper and lower bands using a chosen ATR period, multiplier, and calculation method. Entries trigger when the trend switches

Strategy v4 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Zeguela Supertrend

Lakshmi Zones v3

by voletiramu
2 stars

Lakshmi Zones v3 is an overlay indicator that builds demand and supply boxes from a volume-profile histogram of recent bars, then merges nearby levels and limits how many zones appear and how far they sit from price. Optional plots include a Magic Line channel

Indicator v6 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v3

Alper

by avatar-lavventura
2 stars

This strategy combines the WaveTrend oscillator with Bollinger Bands and Keltner Channels squeeze momentum calculations in a separate pane. It displays WaveTrend signal lines, oscillator difference areas, threshold levels, and crossover points directly in the

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

The Grid Bot Direction Plugin Supertrend Pivot indicator calculates dynamic market trend direction for automated grid trading. It computes a smoothed center level derived from pivot highs and lows, combining it with ATR-based bands to generate a trailing stop

Indicator v5 TrendSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Direction Plugin Supertrend Pivot psyll

Average True Range Percent (ATRP)

by mushroom-men-Trading
2 stars

This indicator calculates Average True Range as a percentage of the closing price and plots that value in a separate pane. True range is the largest of the bar range and the gaps from the previous close. An RMA-style average with a warmup correction smooths th

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Average True Range Percent (ATRP)
2 stars

Plots timeframe-adaptive moving averages and technical overlays directly on the price chart. It displays standard daily moving averages, weekly trends, or intraday averages depending on the active timeframe. The 200-period simple moving average dynamically shi

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Key Moving Averages

Z-Score Highlighter

by ryangaraygay
2 stars

Calculates the Z-score of closing prices over a specified moving average period and standard deviation length. It identifies potential statistical outliers by checking if the Z-score breaches positive or negative threshold levels during a user-configurable tra

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · MIT GitHub repository of Z-Score Highlighter

MACD Cross Strategy

by Web3Degenerate
2 stars

This strategy generates buy and sell signals on the price chart using MACD crossovers. It applies an EMA 200 filter requiring price to trade above or below the EMA. Only the first MACD crossover is used after the filter condition is met. Stop loss is calculate

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD Cross Strategy

Mean Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on mean absolute deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks and compared with long and short thresholds.

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Mean Deviation Loop

Neural Probability Channel

by tthanhvu002sgu
1 stars

Draws a volatility channel around a kernel regression baseline on the price chart. The baseline is a weighted average of recent hlc3 prices using a rational quadratic kernel, with bandwidth and alpha settings controlling smoothness. Channel width comes from th

Indicator v5 Mean reversionVolatility & bands
Updated 3 months ago · None stated GitHub repository of Neural Probability Channel

KLSE VCP Stage v2

by kevinesk
1 stars

This indicator classifies market structure into volatility contraction pattern (VCP) stages on the main price chart. It evaluates a Mark Minervini Trend Template score alongside Bollinger Band width percentiles and volume metrics to determine stages such as Co

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of KLSE VCP Stage v2

Crypto AMT v6.1 Risk

by latifangren
1 stars

The Crypto AMT Toolkit v6.1 - Conservative Risk is a Pine Script indicator that overlays Volume Profile with customizable value area boxes and right-side visuals on the price chart, along with VWAP bands, EMA trend filters, higher-timeframe bias, lower-timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT v6.1 Risk
1 stars

Strong Trending - Momentum Rider is a trend-following strategy designed for intraday and swing trading. It evaluates market strength using a composite momentum score based on exponential moving averages, the Directional Movement Index (DMI/ADX), candle body ra

Strategy v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Strong Trending - Momentum Rider

LeBeau

by turnupdigital
1 stars

LeBeau is a trend-following overlay indicator based on Charles Le Beau's Chandelier Exit strategy. It calculates trailing stop-loss levels using the Average True Range (ATR) applied to standard price data or smoothed Heikin Ashi bars. When the price crosses ab

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of LeBeau
1 stars

A Pine v4 indicator in a separate pane that compares the chart symbol's volatility with that of the S&P 500 index. For both, it measures the distance of the current low from the highest high over a short window and a window ten times longer, expressed as perce

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Tykhe Stock Volatility

SuperTrend

by everget
947 stars

SuperTrend is a trend-following indicator that detects trend direction by computing ATR-based stop levels. It plots long and short stop lines on the price chart and fills the region between the mid-price and the active stop line to show the current trend state

Indicator v6 TrendVolatility & bands
Updated 12 days ago · GPL-3.0 GitHub repository of SuperTrend

Bollinger Bands Force

by harryguiacorn
220 stars

This indicator modifies standard Bollinger Bands to measure directional trend force based on line alignment. It calculates a simple moving average basis along with upper and lower volatility bands. When all three lines move upward or downward simultaneously, i

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Force

Adaptive MA Slope

by capissimo
114 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) on a chosen price source and determines trend direction based on the slope across a configurable lookback window. Signals can be filtered by short-term volatility expansion using ATR comparison

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Adaptive MA Slope

5 Minute Scalp

by hasnocool
106 stars

This strategy overlays three exponential moving averages on the price chart, with periods of 9, 50, and 200. It calculates a MACD histogram from a 1-minute timeframe, applies Bollinger Bands to the histogram, and tracks two RSI oscillators of different lengths

Strategy v5 ScalpingMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute Scalp

ATR Bands (ATRBANDS)

by mihakralj
99 stars

This indicator calculates volatility envelope bands around a moving average center line on the price chart. It computes the middle line using a rolling moving average of the input source, while band width is derived from an Average True Range calculated via RM

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of ATR Bands (ATRBANDS)
41 stars

ATR Matrix calculates Average True Range and a 50-period Simple Moving Average to display multi-tier volatility levels and risk-reward metrics. It project stop levels using negative ATR multiples from an entry price, alongside target levels from 0x to 11x ATR

Indicator v5 Volatility & bandsSupport & resistance

Zen Toolkit ETH

by Zen-Tim
29 stars

This indicator plots intraday reference levels, projection targets, and opening range boundaries tailored for continuous electronic trading session instruments such as gold. It calculates Average Bar Range targets in bullish and bearish multiples, previous day

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · MIT GitHub repository of Zen Toolkit ETH

Ichimoku Bands

by benso87
24 stars

This indicator plots Ichimoku-style conversion and base lines as Donchian midpoints on the price chart, then surrounds each line with upper and lower bands derived from the standard deviation of that line. The conversion and base lengths set the lookback for e

Indicator v5 TrendVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of Ichimoku Bands

RSI/BB 1minute Study

by SammyEnigma
18 stars

This strategy calculates the Relative Strength Index (RSI) alongside Bollinger Bands to identify oversold bounce opportunities on fast timeframes. Drawn in a separate pane, it plots the RSI oscillator with customizable overbought and oversold thresholds. A lon

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB 1minute Study
16 stars

This strategy implements the classic Turtle System 1 fast breakout model on the price chart. It calculates 20-bar Donchian channel highs and lows for trade entries and 10-bar bands for exits, utilizing ATR for position sizing and trailing stops. The strategy e

Strategy v6 BreakoutTrend
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Fast Breakout (S1)
9 stars

This strategy scaffold calculates a standard Volume Weighted Average Price (VWAP) alongside upper and lower volatility bands set 1.5 ATRs away. It generates long entry signals when a confirmed bar closes below the lower band and short entry signals when a conf

Strategy v5 Mean reversionMoving averages
Updated 2 weeks ago · Custom licence GitHub repository of Nexural VWAP Reversion Scaffold
9 stars

Peak Trading Activity Graphs displays historical market activity across cyclical timeframes directly on the main chart using an on-screen dashboard table. It evaluates volume or volatility across selected periods, including hours of the day, days of the week,

Indicator v6 VolumeVolatility & bands
Updated 4 months ago · MIT GitHub repository of Peak Trading Activity Graphs [LuxAlgo]

Signal Engine ANTIGRAVITY

by eltonaguiar
4 stars

This indicator generates buy and sell signals on the price chart by combining RSI, MACD, Bollinger Bands, EMA crossovers, Stochastic, ADX, VWAP, volume confirmation and momentum oscillators. A non-repainting mode option is available along with ATR-based TP and

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Signal Engine ANTIGRAVITY
4 stars

This indicator plots an anchored volume-weighted average price on the price chart. It resets the VWAP at a chosen anchor such as the session, week, month, quarter, year, or corporate events including earnings, dividends, and splits. Optional bands sit above an

Indicator v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Volume Weighted Average Price
2 stars

This indicator plots drawdown distribution statistics in a separate pane. It measures price drawdowns over a chosen lookback, smooths them, and overlays percentile bands and standard deviation bands. Optional calculations add Sharpe, Sortino and Calmar style r

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Drawdown Distribution Analysis (DDA)

Bollinger Band Width (BBW)

by mushroom-men-Trading
2 stars

The Bollinger Band Width indicator calculates the width between the upper and lower Bollinger Bands based on a chosen source series, lookback period, and standard deviation multiplier. It plots this BBW value in a separate pane to visualize volatility changes

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Bollinger Band Width (BBW)

My First Indicator

by wynnforthework
2 stars

This strategy plots EMA 25 in yellow and EMA 100 in green on the price chart. It generates buy signals on EMA 25 crossing above EMA 100 when ATR length 14 rises over two prior bars and volume exceeds prior bar. It opens a long position of 1 unit on signal. It

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of My First Indicator

Despite the name, an indicator that combines many studies on the price chart: RSI overbought and oversold signals, MACD, Bollinger Bands, ATR, Stochastic, ADX trend strength, VWAP with bands, pivot-based support and resistance levels, simple candlestick patter

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Advanced Multi-Indicator Strategy

Donchian Channel Breakout

by pineforge-4pass
1 stars

This strategy tracks price breakouts using Donchian Channels calculated from the highest highs and lowest lows over configurable lookback periods. It plots the upper, lower, and mid entry channels directly on the price chart. A long entry triggers when the bar

Strategy v6 TrendBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Donchian Channel Breakout

DEPV2 C1a Temel Skor

by YuceSezar89
1 stars

This indicator calculates a composite base score using trend, momentum, volatility, and volume components. It computes HLC3 SMA trend levels, ROC momentum z-scores, ATR-based volatility expansion ratios, and volume participation rates. Additional MTF Heikin As

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C1a Temel Skor

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