Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 19)

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

Trading Latino

by micayael
1 stars

A separate-pane indicator, short title LVA, that pairs a squeeze momentum histogram with an ADX-style line. Cross markers on the zero line show whether Bollinger Bands are inside Keltner Channels. It adds an optional higher-timeframe status monitor with an adj

Indicator v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Trading Latino

This indicator turns Bollinger Bands, Keltner Channels or the average of both into a single normalised line in a separate pane, computed from Heikin Ashi close prices over a 200-bar window by default. The line is coloured lime above a bullish breakout level, r

Indicator v5 Volatility & bandsBreakout
Updated 4 years ago · None stated GitHub repository of Breakout Bollinger Band and Keltner Channel

Turtle Trader

by rocketbrainsurgeon
1 stars

The Turtle Trader indicator merges Donchian channels with trend detection to classify market state. It computes upper and lower channel levels from recent highs and lows, along with stop levels, and plots them directly on the price chart. Green bars signal upw

Indicator v4 TrendVolatility & bands
Updated 5 years ago · GPL-3.0 GitHub repository of Turtle Trader

Weinstein MAs

by rosskevin
1 stars

Weinstein MAs plots adaptive simple and volume-weighted moving averages based on Stan Weinstein's Stage Analysis framework. On weekly charts, it calculates 10, 30, and 40-period MAs, whereas on non-weekly intervals it uses 50, 150, and 200-period MAs. Both sim

Indicator v4 TrendMoving averages
Updated 5 years ago · AGPL-3.0 GitHub repository of Weinstein MAs

Kelt-BBand Combo

by digasic
1 stars

An overlay indicator that plots a 20-period Bollinger basis line with bands at one, two and three standard deviations, shaded in graded white fills. It also computes a Keltner channel from a 20-period EMA and EMA of true range, used to define pinch and consoli

Indicator v4 Volatility & bands
Updated 6 years ago · None stated GitHub repository of Kelt-BBand Combo

This indicator combines three technical tools into a single price overlay: dual Exponential Moving Averages (EMA), Parabolic SAR (PSAR), and ATR-derived stop loss levels. It calculates fast and very fast EMAs (defaults 9 and 21) using a custom EMA function, pl

Indicator v4 TrendMoving averages
Updated 6 years ago · GPL-3.0 GitHub repository of EMA-PSAR-ATR Indicators [Numchuck]

Mojito v3 Strategy

by namuan
318 stars

The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Mojito v3 Strategy
257 stars

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint

Flip Flop

by harryguiacorn
220 stars

Flip Flop is an overlay indicator that analyzes candle data over a customizable lookback period to track structural market extremes. It locates key levels, including the low of the highest bullish candle and the high of the lowest bearish candle within the win

Indicator v5 Support & resistanceVolatility & bands
Updated 1 year ago · None stated GitHub repository of Flip Flop

This strategy combines Linear Regression Candles with UT Bot trailing stop signals to generate trading setups. It calculates smoothed linear regression open, high, low, and close values alongside a signal line, while computing an ATR-based trailing stop. Long

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Linear Regression Candles and UT Bot Strategy

Adaptive Price Channel

by mihakralj
99 stars

This indicator calculates an adaptive price channel by independently smoothing bar highs and lows using exponential moving averages. It plots an upper band from smoothed highs, a lower band from smoothed lows, a yellow midpoint line, and a shaded channel area

Indicator v6 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Adaptive Price Channel

RSI Div at dVWAP StDev

by cryptorife
75 stars

This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of RSI Div at dVWAP StDev

Day Trading

by iamc1oud
56 stars

This indicator plots global forex trading sessions, opening ranges, and opening channels for Sydney, Tokyo, Frankfurt, London, and New York markets. It calculates and draws daily reference levels based on Average True Range (ATR) multipliers from the day open

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading

Calculates normalized moving average trend strength, historical volatility, and volatility-adjusted position sizing in a separate pane. It computes the percentage distance between fast and slow EMAs relative to price, evaluates standard deviation of daily retu

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Risk-Based Position Size Calculator

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

LoD Intraday Entry

by ChartsLector
41 stars

This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c

Indicator v6 Support & resistanceVolatility & bands
Updated 4 days ago · None stated GitHub repository of LoD Intraday Entry
29 stars

Zen Bar Range Projections calculates the Average Bar Range (ABR) over a user-defined lookback period and projects 0.5x and 1x measured move levels above and below the prior bar close. Users can choose between the current chart timeframe or a higher timeframe m

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a volatility-based mean reversion system that calculates Bollinger Bands using price and standard deviation. It generates long and short signals when price crosses the upper and lower bands respectively. Entries are filtered with RSI(14

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy
16 stars

This Pine Script implements a trend-following strategy inspired by John Seykota's methods. It enters positions on Donchian channel breakouts using a longer lookback period of 55 bars and exits on shorter 10-bar signals. Volatility gating prevents adding to pos

Strategy v6 TrendMoving averages
Updated 12 months ago · None stated GitHub repository of Seykota Alt 13: Vol-Gated Adds

HalfTrend + EMA

by msongkiet
16 stars

This indicator combines the HalfTrend trend-following algorithm with five exponential moving averages overlayed directly on the price chart. HalfTrend determines directional bias by evaluating local high and low price extrema over a selectable amplitude alongs

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of HalfTrend + EMA
10 stars

This indicator calculates custom Traders Dynamic Index (TDI) conditions on the price chart using a 30-period Relative Strength Index (RSI), volatility bands, and fast/slow RSI moving averages. It plots green buy labels below bars and red sell labels above bars

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 1D
9 stars

Calculates volume-weighted average price anchored to automatically detected swing pivots, period starts, or a custom manual timestamp. It plots volume-weighted standard deviation bands with configurable multiples and measures price distance from VWAP in standa

Indicator v6 Moving averagesVolatility & bands Repaints
Updated 3 days ago · MIT GitHub repository of Anchored VWAP [WavesUnchained]

Nexural JMA

by JasonTeixeira
9 stars

Nexural JMA plots a Jurik moving average on the price chart. Length, phase, power, and source change the average. It scores momentum from rate of change, volume from a volume percentile, volatility from ATR, and trend strength from price distance to the averag

Indicator v6 Moving averagesOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of Nexural JMA
7 stars

This strategy plots a customizable Bollinger Band basis using selectable moving average types such as HMA, SMA, EMA, or others. It draws the basis line, multiple standard deviation levels, and fills the region between L1 and L6 on the price chart. Buy signals

Strategy v5 Volatility & bandsMoving averages
Updated 4 months ago · None stated GitHub repository of Bollinger Bands Strategy

ATR Bands

by SynergOps
7 stars

This indicator plots upper and lower bands around price using a scaled average true range. It offsets the bands from the close and lets the user set the ATR period and multiplier. Optional opposite bands mark take-profit zones at a separate scale factor. An op

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ATR Bands

Confluence

by trsdn
6 stars

The Confluence indicator combines Bollinger Bands, RSI and MACD to generate signals on the price chart. It plots the upper Bollinger Band in green, lower Bollinger Band in red, the middle basis in blue, the RSI value and the MACD line with signal. A confluence

Indicator v5 TrendOscillators & momentum
Updated 7 days ago · MIT GitHub repository of Confluence

30 Laws Dashboard

by AllienNova
5 stars

This indicator overlays a regime and risk dashboard on the price chart. It calculates ADX from DMI, an ATR ratio against a long moving average of ATR, and a daily VIX close. It labels the market SHOCK, TRENDING, RANGING, or TRANSITION using those thresholds. I

Indicator v5 Screeners & dashboardsTrend
Updated 8 weeks ago · None stated GitHub repository of 30 Laws Dashboard
4 stars

This strategy is a multi-strategy backtesting engine that draws entries and exits on the price chart. The user picks one approach, including Connors RSI-2, z-score mean reversion, EMA and MACD momentum, Bollinger squeeze, VWAP reversion, Supertrend, Ichimoku,

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 CURSOR [Elton Engine]
4 stars

This indicator plots classic Bollinger Bands on the price chart using a simple moving average basis and upper and lower bands set by a length and multiplier. It shades the area between the bands and, when enabled, marks a squeeze when band width equals its low

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

Bollinger Bands

by bfoura
4 stars

This indicator calculates standard Bollinger Bands using a simple moving average basis line along with upper and lower bands derived from standard deviation. It includes logic to detect when price action comes within a configurable distance of the lower or upp

Indicator v4 Volatility & bandsMoving averages
Updated 4 years ago · None stated GitHub repository of Bollinger Bands

DFO 3

by jawauntb
3 stars

DFO 3 plots a directional flow oscillator in a separate pane. It averages five normalized components: a composite RSI momentum index, a cumulative volume delta built from one-minute volume, a price position over a 100-bar range, an EMA-versus-SMA trend spread,

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of DFO 3

RTF Strategy

by blackcat1402
3 stars

RTF Strategy is an overlay strategy that tracks Bollinger bands and a lookback of recent highs and lows to decide long and short cycles. It opens a long or short when price crosses the band by a set pivot level, then closes the trade when a take-profit percent

Strategy v4 Volatility & bandsBreakout
Updated 5 years ago · MIT GitHub repository of RTF Strategy
2 stars

The SuperTrend Regime Confluence strategy combines an adaptive SuperTrend indicator with market regime detection to generate trading signals. It computes a composite conviction score using an ADX regime lookback, a trend EMA, and a volume moving average. Trade

Strategy v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of SuperTrend Regime Confluence
2 stars

This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in

Strategy v6 BreakoutTrend
Updated 4 months ago · None stated GitHub repository of XAUUSD Momentum Breakout Strategy

Alpy Vix

by avatar-lavventura
2 stars

Alpy Vix is a strategy that computes the Wave Trend oscillator from HLC3 using EMA and SMA, the Williams VIX Fix formula, VWAP levels, and Bollinger Bands on WVF. It generates signals on WT crosses and WVF conditions like long_VWMA or close strength versus pri

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

This indicator serves as a grid range plugin for the Grid Bot framework by calculating an RSI-based channel. Plotted in a separate pane, it computes smoothed RSI levels, overbought and oversold thresholds, and channel width constraints using custom multi-timef

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Grid Range Plugin RSI Channel [psyll]
2 stars

This indicator overlays a volatility filter on the price chart. It loads CBOE VIX and VIX3M closes, divides VIX by VIX3M, and smooths that ratio with a five-bar simple moving average. A breakout is marked allowed only when the smoothed ratio is below 0.98 and

Indicator v5 Volatility & bandsBreakout
Updated 10 months ago · MIT GitHub repository of Harter VIX Curve Breakout Filter

Box Scalper v4

by wynnforthework
2 stars

Box Scalper v4 is a strategy that plots buy and sell signals on the price chart using ADX trend filters, QQE momentum oscillator, and BOX channels. It signals entries based on crossovers and zone conditions, with trailing stop loss and take profit targets. Par

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Box Scalper v4

Breakout Strategy

by Web3Degenerate
2 stars

This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di

Strategy v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Strategy

Sell Signal

by tuanmcwar
2 stars

This indicator plots sell signals directly on the price chart using shape plots and text labels. It triggers a sell alert when four conditions coincide: a bullish candle with at least a five percent price increase, volume at least five times greater than the p

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Sell Signal

This overlay indicator combines several ZigZag lengths with an ATR-based ZigZag Supertrend and oscillator settings to mark trend direction on the price chart. It reads close or an optional alternative source and keeps a limited pivot history. A movable table s

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Multi-ZigZag Multi-Oscillator Trend Detector

STC+TrendTrader

by theupslidedown
2 stars

This indicator combines the Schaff Trend Cycle (STC) oscillator with Andrew Abraham's Trend Trader indicator in a separate pane. It calculates the STC oscillator using fast and slow moving averages combined with double stochastic smoothing, plotting a colored

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of STC+TrendTrader

Order 65 bars

by DaniilOkrug
2 stars

This indicator calculates the percentage distance between the current price and the highest high price over the last 65 bars. It maintains an array of closing prices for the specified number of bars and identifies the maximum high value. The script then plots

Indicator v5 Volatility & bandsSupport & resistance
Updated 4 years ago · MIT GitHub repository of Order 65 bars

Undercut

by kat3samsin
2 stars

Undercut is a momentum and volatility strategy that evaluates relative strength, choppiness, and stochastic indicators in a separate pane. It enters long trades when RSI remains above the Choppiness Index for a specified lookback period and Stochastic %K cross

Strategy v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · MIT GitHub repository of Undercut
1 stars

A test indicator on the price chart that plots a trailing stop level derived from the wick of the last closed candle. The long stop sits below the previous low and the short stop above the previous high, each offset by an amount that can combine an ATR multipl

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of Wick Trailing SL Test
1 stars

Looks for a large, strong-bodied candle, measured against ATR with a body-to-range filter and a largest-in-lookback check, and treats it as an impulse. It then draws a ladder of range-extension levels from that candle's low and range width, with optional price

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of Impulse 4H Range Levels

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