Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 52)

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

Bands Indicator

by g-moe
3 stars

This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Bands Indicator
1 stars

This strategy trades long only on the price chart. It enters when a fast exponential moving average crosses above a slower one and sizes the next order from the last closed trade: the recovery quantity after a negative result and the full quantity otherwise. I

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Ledger Outcome Throttle
106 stars

This strategy plots an Ichimoku cloud on the price chart and opens long or short trades from a selectable crossover. Signal choices cover Tenkan and Kijun, price against those lines or the cloud, and cloud color, with optional confirmation that price is beyond

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BV's ICHIMOKU CLOUD SIGNAL TESTER

Squeeze Momentum

by mihakralj
99 stars

This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a

Indicator v6 Volatility & bandsOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Squeeze Momentum

Bankai + DTEK

by g-moe
3 stars

Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai + DTEK
1 stars

The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Meridian DMI Regime
99 stars

The Standard Deviation (STDDEV) indicator calculates the standard deviation of the input source series over a user-defined period. It employs a circular buffer for O(1) streaming computation, ensuring efficient memory usage. The indicator plots the standard de

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Deviation (STDDEV)

PMax Explorer

by regalouisei
2 stars

The PMax Explorer strategy calculates the Profit Maximizer indicator by applying an ATR trailing stop band to various moving average types including EMA, VAR, ZLEMA, and TSF. It plots the selected moving average and PMax line directly on the price chart to tri

Strategy v4 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of PMax Explorer

PineForge — Mosaic Map Regime

by pineforge-4pass
1 stars

PineForge — Mosaic Map Regime is a trend-following strategy that dynamically scales trading signals using volatility regimes. It calculates an Exponential Moving Average and ATR, using a map to assign risk weights based on whether ATR percentage exceeds an exp

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Mosaic Map Regime

Calculates a linear regression trend line and standard deviation bands based on the residuals over a user-defined lookback window. The script plots the central linear regression line along with upper and lower channel boundaries directly on the price chart, fi

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Standard Deviation Channel (SDCHANNEL)

PineForge — Orbit MTF Trend

by pineforge-4pass
1 stars

Orbit MTF Trend is a multi-timeframe strategy that plots higher-timeframe and local exponential moving averages on the price chart. It generates long entries on local EMA crossover above the higher EMA and closes positions on the reverse crossover. Risk manage

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Orbit MTF Trend
3 stars

This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes

Strategy v5 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of BB + LaRSI Strategy

PineForge — Prism Matrix Vote

by pineforge-4pass
1 stars

The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Prism Matrix Vote
106 stars

This strategy plots a mapped EMA-and-standard-deviation difference in a separate pane and trades moving-average crossovers filtered by that line. After the 50-period EMA crosses the 200-period SMA, it waits for price to stay on the crossover side and for the m

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of EMA Difference Mapping with Trades
3 stars

Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Buy Low Sell High Composite

Grover Llorens Activator

by regalouisei
2 stars

The Grover Llorens Activator strategy calculates a custom volatility trailing stop line based on Average True Range and price movement. It generates buy signals when price crosses above the activator line and short signals when price crosses below. Positions a

Strategy v4 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Grover Llorens Activator
1 stars

This strategy enters one long position when a fast exponential moving average crosses above a slow one. While the trade is open, it keeps an ATR stop and target under the same exit identifier. For the first revision hold bars those distances stay wide; afterwa

Strategy v6 Moving averagesVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Revision Exit Replacement
3 stars

The CM Williams Vix Fix indicator calculates Larry Williams' synthetic VIX formula in a separate pane to identify market panic and potential price bottoms. It measures the percentage distance between the highest close over a lookback period and the current bar

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of CM Williams Vix Fix

PineForge — Rivet Calc Fill

by pineforge-4pass
1 stars

This strategy identifies bullish trends using a fast EMA crossing above a slow EMA to enter long positions when no trade is open. Once entered it attaches a stop loss and limit order using ATR multiplied by the input values of 1.7 and 2.2 respectively. The fas

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Rivet Calc Fill

The Commodity Channel Index Custom indicator plots a customizable oscillator in a separate pane on the price chart. It calculates the CCI using a selected source such as HLC3 and a moving average method including SMA EMA or others. Main settings allow adjustin

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Commodity Channel Index Custom

PineForge — Sextant CCI HMA

by pineforge-4pass
1 stars

PineForge — Sextant CCI HMA is a trend-following momentum strategy that combines the Commodity Channel Index with a Hull Moving Average filter. The strategy opens long positions when the CCI crosses above a specified entry level, provided the HMA is rising and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Sextant CCI HMA

Ezieh Str.v2

by hasnocool
106 stars

Ezieh Str.v2 is a momentum and volatility strategy combining Bollinger Bands with two distinct RSI periods to identify trading opportunities. It opens long positions when a fast RSI crosses above an oversold threshold while price crosses over the lower Bolling

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Ezieh Str.v2
1 stars

This overlay strategy keeps a bounded deque of one-bar rate-of-change values and measures how many are positive and their average. It enters one long position of two units when the positive share rises through the minimum share, the average return is positive,

Strategy v6 Oscillators & momentumMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Spectrum Array Deque

PineForge — Terrace Pyramid

by pineforge-4pass
1 stars

This strategy plots the Trend EMA and Deep Terrace levels on the price chart to identify rising trends. It signals long pyramid entries in staged terraces when price crosses above the first, second, or third ATR-based levels during an upward trend, with up to

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Terrace Pyramid

Golden Buy

by hasnocool
106 stars

This strategy runs on the price chart under the title golden buy. It sets cash order size and a percent commission. Traders adjust an ATR stop-loss multiplier and a risk-reward ratio, and they can enable shorts or divergence filters. The visible inputs configu

Strategy v4 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of Golden Buy

Calculates and plots the Stoller Average Range Channel directly on the price chart. It constructs a middle baseline using a Simple Moving Average and projects upper and lower envelope bands based on the Average True Range scaled by a user-defined multiplier. I

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stoller Average Range Channel (STARCHANNEL)
3 stars

This indicator modifies traditional Donchian Channels by applying a weighted moving average to the highest high and lowest low over a customizable period, expanding the bands using twice the 14-period Average True Range. It calculates and plots upper, lower, a

Indicator v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Donchian Channels
1 stars

This strategy computes the MACD with user-defined fast, slow, and signal lengths, then plots the MACD line, signal line, and histogram in a separate pane. It generates long entries on MACD crossover and short entries on MACD crossunder, but restricts signals t

Strategy v6 Oscillators & momentumSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Waypoint Weekday MACD
99 stars

This indicator calculates SuperTrend-style upper and lower bands from the high-low midpoint, offset by an average true range times a multiplier. A rolling buffer keeps the true-range sum over the chosen period, and the bands only tighten until the source close

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Super Trend Bands (STBANDS)

SuperTrend

by mihakralj
99 stars

This indicator calculates SuperTrend from an ATR-smoothed band around the midpoint of high and low. It plots the active band on the price chart, green in an uptrend and red in a downtrend. Trend flips when close crosses the opposite band and otherwise holds. A

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of SuperTrend

MA5X_L

by hasnocool
106 stars

MA5X_L is a long-only trend-following momentum strategy built on weighted and simple moving averages combined with an ATR trailing exit. It calculates four moving averages (short, medium, long, extra-long WMA/SMA) and enters long trades when the short WMA cros

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of MA5X_L

GM VWAP

by g-moe
3 stars

This overlay indicator plots a volume-weighted average price from a chosen source, defaulting to the average of high, low, and close. It resets the cumulative volume sums at a selectable anchor such as the session, week, month, quarter, year, decade, century,

Indicator v5 VolumeVolatility & bands
Updated 5 months ago · None stated GitHub repository of GM VWAP

Range Filter

by pineforge-4pass
1 stars

Calculates an exponential moving average of candle ranges scaled by a multiplier to build an adaptive, stateful trend filter. It updates dynamic upper and lower bands that drift with price action and track market direction. The strategy enters long when the fi

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Range Filter

Prototype

by hasnocool
106 stars

This strategy overlays Supertrend-style ATR trailing stop levels on the price chart alongside multi-period moving averages, volume metrics, and Bollinger Bands. It flags trend direction changes using an ATR offset channel, plotting buy and sell signals directl

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Prototype
3 stars

Kane Bollinger Bands calculates and plots traditional Bollinger Bands alongside a percentage change plot for upper band movement directly on the main price chart. It establishes a Simple Moving Average basis line and generates upper and lower channel boundarie

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Kane Bollinger Bands

Spread Entry Strategy

by hasnocool
106 stars

This strategy overlays bull and bear setup filters on the price chart. It compares a reference symbol, QQQ by default, on the daily timeframe with hot and cool percent-change levels, then combines RSI, DMI, three simple moving averages, Bollinger Bands, and Ke

Strategy v4 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Spread Entry Strategy

RSI with Bollinger Bands

by pineforge-4pass
1 stars

Calculates the Relative Strength Index (RSI) and wraps Bollinger Bands directly around the RSI series rather than price. It enters long positions when the RSI drops below its lower band and hooks back upward, and enters short positions when the RSI exceeds the

Strategy v6 Oscillators & momentumVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of RSI with Bollinger Bands
106 stars

This strategy evaluates trade entries by combining Stochastic RSI crossovers with MACD momentum and three exponential moving averages (8, 15, and 50 EMAs). Positions are filtered by directional alignment across indicators and date ranges. Exits are managed via

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Stoch RSI Crossover Strat + EMA

MyVIXFIX

by g-moe
3 stars

MyVIXFIX calculates the Williams Vix Fix as the percentage distance from the highest close over a lookback to the current low. It plots that reading as histogram columns in a separate pane. Columns turn red when the value reaches the upper Bollinger band or an

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of MyVIXFIX

Range Filter

by g-moe
3 stars

Range Filter is a chart strategy that estimates a smoothed price range from absolute bar-to-bar changes using two exponential averages and a multiplier. It plots a filtered price line plus high and low target bands on the price chart, colors bars by filter dir

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Range Filter

Swing Pivot ATR

by pineforge-4pass
1 stars

Swing Pivot ATR is a trend-breakout strategy that identifies swing highs and lows using pivot points and enters positions on price breakouts. It tracks historical pivot high and low levels, plotting them as steplines directly on the price chart. When price clo

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Swing Pivot ATR

VWAP Bands

by mihakralj
99 stars

This indicator plots a volume-weighted average price on the price chart and resets the calculation when the selected session changes. It builds first and second standard-deviation bands from a volume-weighted variance of the chosen source, which defaults to th

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of VWAP Bands
99 stars

This indicator calculates a volume-weighted average price from a chosen source and the chart volume, then plots upper and lower bands at a chosen number of standard deviations. Cumulative price-volume sums reset when the selected session interval changes, or o

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of VWAP with Standard Deviation Bands
3 stars

This overlay indicator plots ATR-based trigger, target and Fibonacci levels around a prior close taken from a higher timeframe chosen by the trading type. Day, multiday, swing, position and long-term modes map to daily through yearly data. Optional CALL and PU

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Saty ATR Levels + CALL/PUT
3 stars

Supertrend Channels is a price-chart overlay. It builds ATR bands around the hl2 midpoint using a length and a multiplier, then tightens the upper or lower band while price stays on one side. A binary trend state flips when close crosses the opposite band. Fro

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Supertrend Channels

ATR Trailing Stop

by mihakralj
99 stars

Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during

Indicator v5 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of ATR Trailing 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