Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 23)

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

This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Predictive Ranges [psyll]
2 stars

This indicator tracks market volatility regimes by calculating the ratio between the CBOE Volatility Index (VIX) and the 3-Month Volatility Index (VIX3M). Plotted in a separate pane, a line displays the VIX to VIX3M ratio alongside a dashed reference line at 1

Indicator v5 Volatility & bands
Updated 10 months ago · MIT GitHub repository of VIX Curve Regime (Simple)

Heikin Ashi Supertrend

by wynnforthework
2 stars

This strategy applies a Supertrend calculation to Heikin Ashi price data to identify trend direction and potential market reversals. It executes trades based on Supertrend trend shifts and incorporates an On-Balance Volume filter. Risk management includes a co

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Heikin Ashi Supertrend

Daily Deviation

by Electrified-Trading
2 stars

This library calculates arrays of daily price deviations from the open to the high, low, and close over a user-specified number of days. It optionally filters outliers using a maximum deviation threshold. The fromOpen function returns a normalized value showin

Library v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Daily Deviation

Day Trading Range

by Web3Degenerate
2 stars

This indicator plots daily trading range lines on the price chart using higher timeframe data. It detects new trading days and draws the open price line in white, upper and lower ATR bands in aqua based on the ATR length and multiplier, yesterday's high in red

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Day Trading Range

Trading Rush Choppy Market

by theupslidedown
2 stars

Trading Rush Choppy Market identifies trending versus choppy market conditions based on consecutive bar close price movements. It evaluates sequences of higher or lower closes over the previous six bars to assign trend strength levels. When conditions indicate

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Trading Rush Choppy Market

OI Profile

by rellis3
1 stars

Shows an options book as a picture on the price chart, from an export pasted into a settings box. It draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike,

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of OI Profile

EMA Trend Strategy

by jayadevrana
1 stars

Calculates a 9-period fast EMA, 21-period slow EMA, and 200-period trend EMA overlaid on the price chart. It enters long positions when the fast EMA crosses above the slow EMA while price is above the 200 EMA, and short positions when the fast EMA crosses belo

Strategy v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of EMA Trend Strategy

Oleg Aryukov Strategy

by kanylbullen
1 stars

This strategy combines multiple technical indicators into a unified trading system, including RSI, Williams %R, TSI, KDJ, Bollinger Bands %B, Nadaraya-Watson filter, and an RCI Ribbon. Traders can individually toggle each indicator module on or off while custo

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of Oleg Aryukov Strategy

Kinetic Trend Envelope

by vedkanani123
1 stars

An adaptive trailing-stop indicator on the price chart from the GoemonYae trading system community edition. It estimates price with a selectable filter, measures volatility with a choice of estimators such as Yang-Zhang, and builds an envelope that trails pric

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Kinetic Trend Envelope
1 stars

This strategy executes mean-reversion trades using the Relative Strength Index combined with Bollinger Band boundary audits. It enters long when the RSI crosses above the oversold threshold while the bar low touches or breaches the lower Bollinger Band. Conver

Strategy v6 Mean reversionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of RSI Mean Reversion Sovereign v6

Fear and Greed Indicator

by rubbermetal
1 stars

Fear and Greed Indicator combines five proxies into one 0 to 100 sentiment score in a separate pane: RSI with rate of change, inverted ATR, a market index read from a daily request, price position within Bollinger Bands, and distance from the recent high. Each

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 months ago · MPL-2.0 GitHub repository of Fear and Greed Indicator

This overlay indicator combines a rolling volume profile, anchored VWAP, and trend filters for crypto chart analysis. It builds a value area from recent bars and can draw right-side profile boxes, with an Auto performance mode that reduces lookback, row count,

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v6.2 - Info Auto Performance

Supertrend Enhanced

by haydarkadioglu
1 stars

Supertrend Enhanced plots a classic ATR Supertrend on the price chart and marks trend flips as buy and sell signals. It builds upper and lower bands from an ATR or a simple moving average of true range, then flips direction when price crosses the opposite band

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Supertrend Enhanced
1 stars

An indicator on the price chart that smooths price with a Kalman filter, builds a band around it from a weighted average of bar ranges multiplied by a deviation setting, and runs a SuperTrend on the filtered line. Trend is set when the close moves outside the

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Range Filtered Trend Signals

Hello World

by fiji-solutions
1 stars

Demonstrates symbol information functions alongside basic Average True Range (ATR) conversions. It calculates a 14-period ATR, converts the values into mintick points and pips, and plots each metric in a separate pane. Additionally, on the most recent historic

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of Hello World
1 stars

The RSI-ADI-Combo indicator combines Relative Strength Index (RSI), Money Flow Index (MFI), and Average Directional Index (ADX) into a single separate pane visualizer. It plots RSI and MFI line graphs along with a color-coded ADX column histogram that highligh

Indicator v4 Oscillators & momentumVolume
Updated 6 years ago · GPL-3.0 GitHub repository of RSI-ADI-Combo [Numchuck]
318 stars

This indicator calculates and plots two moving averages, which can be configured as either exponential or simple, along with a shaded fill between them to highlight trend direction. It also derives and plots upper and lower deviation levels using a customizabl

Indicator v5 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of TVT Short Term (1h)

STRG-BBForce

by harryguiacorn
220 stars

STRG-BBForce is a Bollinger Bands trend-following strategy. It calculates standard Bollinger Bands and tracks directional alignment across the upper, lower, and basis lines. When all three lines slope upward, it opens a long position and closes short positions

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of STRG-BBForce
16 stars

This strategy enters long or short when a chart-timeframe Donchian breakout agrees with a higher-timeframe confirmation, using breakout, moving average, or both. It exits on a shorter Donchian channel and can flatten on a time rule. Position size risks a set p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 17: Dual TF Confluence

QFA Pro Elite Refined

by JasonTeixeira
9 stars

This indicator plots a smoothed fear index in a separate pane. It measures how far the current low sits below the highest close over a lookback, scales that reading by an ATR percentile, and smooths it with a zero-lag EMA. A volatility regime raises or lowers

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of QFA Pro Elite Refined
9 stars

This indicator implements an L1 proximal regularized filter to smooth price action while preserving significant market trends. It calculates a dynamic noise threshold based on a 200-period ATR and applies soft-thresholding to estimated velocity updates. The in

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of L1 Proximal Filter [LuxAlgo]

Linear Regression Channel - Eterna

by EternaHybridExchange
9 stars

This strategy plots a linear regression of close and deviation bands on the price chart. It enters long when price crosses up from the lower band in an uptrend defined by an EMA and a rising regression line, and enters short on a rejection from the upper band

Strategy v5 TrendMean reversion Repaints
Updated 7 months ago · MIT GitHub repository of Linear Regression Channel - Eterna

This overlay indicator plots a zigzag when price reverses by a chosen share of the last pivot, or by an ATR length times a multiplier. It draws zigzag lines, confirmed pivots, and optional price labels on the price chart. Separate toggles show harmonic and cha

Indicator v4 Support & resistanceVolatility & bands
6 stars

Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Core Strategy

Quantile-Based Adaptive Detection calculates statistical distribution thresholds using weighted quantile moments and percentiles. It computes adaptive deviation, skewness, and kurtosis levels relative to a calculated median center using moving window data or s

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Quantile-Based Adaptive Detection

SM and MACD

by jerryinyang
5 stars

This strategy combines Squeeze Momentum and MACD indicators to generate trading signals. It plots the Squeeze Momentum histogram and MACD in a separate pane. The strategy enters long positions when squeeze enters and MACD is bullish, and short when squeeze ent

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of SM and MACD

This long-only strategy combines a 200-period Exponential Moving Average, Stochastic RSI, and three distinct Supertrend indicators with varying ATR periods and multipliers. It enters long trades when price trades above the 200 EMA, Stochastic RSI crosses up fr

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

SuperTrend Follow

by latentwill
4 stars

The SuperTrend Follow strategy determines trend direction using a simple ATR value derived from the moving average of high-low ranges. It plots on the price chart and enters long positions when price exceeds the ATR value or short when price falls below. The s

Strategy v5 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of SuperTrend Follow
4 stars

This strategy trades directional momentum breakouts for crude oil on the price chart. It enters long or short positions when a fast exponential moving average crosses a slow exponential moving average, provided that current Average True Range exceeds its movin

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of CL Crude Oil Momentum [trugurpala]
4 stars

The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Keltner Channel Strategy

Dipmix

by gocaman
3 stars

Dipmix is a separate-pane momentum and scanning indicator designed to identify market bottoms and oversold conditions. It calculates a WaveTrend oscillator using EMA-smoothed price channels, alongside an integrated Awesome Oscillator and Accelerator Oscillator

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of Dipmix

Elite Algo Modded

by IAMATOMIC001
3 stars

This overlay indicator plots optional buy and sell signals on the price chart, with a selectable strategy mode, sensitivity, and an automatic sensitivity option. Filters can limit signals during consolidation, to smart signals, or to high-volume bars, and cand

Indicator v5 Volatility & bandsTrend
Updated 12 months ago · None stated GitHub repository of Elite Algo Modded

Hyper Flow Indicator

by jawauntb
3 stars

This indicator calculates a composite RSI oscillator paired with STARC volatility bands in a separate pane. It evaluates momentum by combining RSI differentials with smoothed RSI readings, while also referencing higher-timeframe data, moving averages, and esti

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Hyper Flow Indicator

Oscillator

by TamTH-Dev
2 stars

This indicator plots a composite oscillator in a separate pane, integrating squeeze momentum, directional flux, divergence detection, and confluence gauges. It calculates momentum dynamics and squeeze conditions, highlights regular or hidden divergences with l

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 6 weeks ago · None stated GitHub repository of Oscillator

WaveTrend with Crosses [LazyBear]

by avatar-lavventura
2 stars

This strategy combines multiple technical indicator systems into a composite trading setup. It computes an Ichimoku Cloud, an ATR-based trailing stop system (nKRAL) with optional Heikin Ashi smoothing, Bollinger Bands, Parabolic SAR, and higher-timeframe Super

Strategy v4 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of WaveTrend with Crosses [LazyBear]

This indicator builds a Supertrend-style channel from ATR and the median price, then tracks the highest and lowest prices between trend flips. It plots a grid high, grid low and midpoint, shifted by an offset, and can filter the channel by minimum and maximum

Indicator v6 TrendVolatility & bands Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Supertrend Channel [psyll]

Average Daily Range (ADR)

by mushroom-men-Trading
2 stars

This indicator calculates the range of each bar as high minus low and smooths those ranges into an average daily range. The user chooses a lookback length and a smoothing method: simple, exponential, or weighted moving average. It plots the resulting value as

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Average Daily Range (ADR)

QQE MOD

by iceberg211
2 stars

QQE MOD is a separate-pane oscillator that builds two smoothed RSI-based QQE trails. The primary trail uses a fast factor and Bollinger bands around the centered line; the secondary trail uses a smaller factor and a fixed threshold. It plots the secondary QQE

Indicator v4 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of QQE MOD
2 stars

This strategy combines Momentum, Chande Momentum Oscillator, and Commodity Channel Index alongside standard deviation Bollinger Band bounds. It calculates oscillator values across customizable timeframes and lengths to track market momentum and volatility in a

Strategy v4 Oscillators & momentumVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of [CBB] MOM/CCI Divergence Strategy

Range Filter [DW]

by theupslidedown
2 stars

The Range Filter indicator filters out minor price fluctuations directly on the price chart to provide a clearer view of underlying market trends. Inspired by QQE volatility concepts, it calculates a smooth range using methods such as ATR, Average Change, Stan

Indicator v4 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Range Filter [DW]

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