Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 17)

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

29 stars

The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a

Indicator v5 Oscillators & momentumTrend
Updated 11 months ago · Custom licence GitHub repository of Supertrended RSI [AlgoAlpha]

Pine v6 Feature Test

by jpantsjoha
23 stars

This indicator is a Pine Script v6 demonstration that overlays the price chart. It calculates moving averages, oscillators, Bollinger Bands, ATR, highest and lowest values, rate of change, and moving-average crossovers from a chosen price source. Inputs set SM

Indicator v6 Moving averagesOscillators & momentum
Updated 4 weeks ago · Custom licence GitHub repository of Pine v6 Feature Test

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy builds Bollinger bands from a simple moving average and the standard deviation of the close. It opens a short when price crosses above the upper band and the 14-period RSI is above 80, and opens a long when price crosses below the lower band and

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

This trend-following strategy plots Donchian channels and trade signals directly on the price chart. It enters long or short positions upon Donchian channel breakouts and scales in with accelerated pyramiding every fraction of the Average True Range. Position

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 12: Accelerated Pyramid

Relative Strength Index

by deepentropy
13 stars

This indicator plots the Relative Strength Index in a separate pane from smoothed up and down price changes. It draws the RSI line with horizontal bands at 70, 50 and 30, plus overbought and oversold gradient fills. Optional settings add a smoothing moving ave

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · MIT GitHub repository of Relative Strength Index

Nexural Fisher Pro

by JasonTeixeira
9 stars

Nexural Fisher Pro is an advanced Fisher Transform indicator that plots in a separate pane. It calculates the Fisher transform using a configurable source such as high-low average. It incorporates adaptive period based on dominant cycle, volume-weighted calcul

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Fisher Pro

CE 1M + 3M Buy, Sell, Hold

by MeridianAlgo
9 stars

This indicator evaluates trend direction using Chandelier Exit calculations across two timeframes: the current chart and a requested 3-minute timeframe. A custom Chandelier Exit function calculates ATR-based trailing stop bands to determine directional bias. W

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of CE 1M + 3M Buy, Sell, Hold

Chandelier Exit - Eterna

by EternaHybridExchange
9 stars

This strategy calculates volatility-based Chandelier Exit bands using the Average True Range and high/low extremes, paired with an optional exponential moving average trend filter. It enters long when the close crosses above the long Chandelier line while abov

Strategy v5 TrendVolatility & bands
Updated 7 months ago · MIT GitHub repository of Chandelier Exit - Eterna

This strategy calculates a Supertrend line based on Average True Range parameters to identify market trends. It combines Supertrend trend reversals with an initial percentage-based stop loss and a dynamic trailing stop loss. Trades are taken according to the s

Strategy v4 TrendVolatility & bands Repaints
Updated 7 years ago · MIT GitHub repository of Supertrend ATR with Trailing Stop Loss
8 stars

This overlay strategy combines three distinct SuperTrend levels with multiple moving averages and volume profile analytics on the main price chart. It calculates trend directions using three configurable ATR periods and multipliers alongside SMA, EMA, and HMA

Strategy v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of ATR 3Lvls VP Strategy

TR IV Surface

by Enesp4rl4k
7 stars

This TradingView indicator draws an IV surface snapshot table on the price chart for VIOP options. It displays the ATM term structure with expiry, DTE, and ATM IV percent rows, plus 25-delta skew and term slope in vol points. The table updates statically on th

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 days ago · MIT GitHub repository of TR IV Surface
7 stars

This overlay indicator draws Nadaraya-Watson smoothed Bollinger Bands on the price chart using short, medium, and long periods and deviations. A smoothing factor controls the kernel bandwidth, and an optional setting can allow the estimate to repaint. Users ca

Indicator v5 Volatility & bandsAI / machine learning
Updated 4 months ago · None stated GitHub repository of Bollinger Bands And EMA

Confluence

by trsdn
6 stars

Confluence is an overlay indicator that calculates metrics across three classic tools: Bollinger Bands, the Relative Strength Index (RSI), and the Moving Average Convergence Divergence (MACD). It plots the upper, lower, and basis lines of the Bollinger Bands d

Indicator v5 Volatility & bandsOscillators & momentum
Updated 7 days ago · MIT GitHub repository of Confluence
6 stars

Capital41 ATR Volatility Bands v2 draws ATR-based bands around a customizable basis moving average on the price chart to visualize potential volatility ranges. The basis can be set to EMA or SMA, with adjustable lengths for both basis and ATR. It optionally pl

Indicator v6 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Capital41 ATR Volatility Bands v2

Moment-Based Adaptive Detection calculates higher-order statistical moments, including mean, deviation, skewness, kurtosis, and hyper-kurtosis, on price data to construct adaptive distribution bands on the main chart overlay. It computes a central basis line a

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

High - Low

by SiegerTerpstra
5 stars

High - Low measures the price range between the high and low of each bar to analyze market volatility and price expansion or contraction. It plots a histogram representing the per-bar high-low range along with a simple moving average line to highlight smoothed

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of High - Low

Ultimate Combo v1

by DexWilder
4 stars

This overlay strategy is written for MES and ES five-minute charts. It calculates a fast and slow EMA, a 200-period trend EMA, session VWAP, RSI, ATR, and a volume moving average, and it can restrict trading to an exchange-time session. Inputs set RSI extremes

Strategy v6 TrendOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v1
4 stars

This strategy identifies Bitcoin price trends using fast and slow EMA crossovers filtered by RSI and a 200 EMA. It plots the EMAs and entry signals on the price chart. Bullish crossovers open long positions with ATR-based stop loss and take profit. Bearish cro

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Bitcoin BTC Strategy [trugurpala]
4 stars

This long-only strategy plots an asymmetric ATR channel around a rolling moving average on the price chart. It enters long when a confirmed close breaks above the upper band and exits when a confirmed close breaks below the lower band. An optional setting exit

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of RMA ATR Bands (Long Only)
4 stars

This strategy demonstrates fixed-fraction position sizing based on a set percentage of account equity at risk. It calculates trade quantity dynamically using an Average True Range (ATR) stop distance. Long entries trigger when price crosses above a 50-period s

Strategy v5 Moving averagesVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Fixed-Fraction Sizing Example

Improvisando [Alorse]

by Hugs-4-Bugs
4 stars

Improvisando [Alorse] is a price-chart strategy that plots three exponential moving averages and a TTM Squeeze-style oscillator. It opens a long when price is above all three averages and the oscillator is rising while still below zero. Shorts use the opposite

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Improvisando [Alorse]

Interactive ATR Stop Loss

by ShabbirHasan1
4 stars

This indicator plots an interactive ATR-based trailing stop loss on the price chart. Traders click to set the starting point, with the stop loss trailing dynamically based on price action. It triggers on wick or close breaches of the ATR bands and displays fil

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of Interactive ATR Stop Loss

Dip Finder

by Kalumur
4 stars

Dip Finder is a multi-indicator oscillator and screening tool designed to identify market bottoms and potential reversal points. It calculates a WaveTrend oscillator with customizable overbought and oversold levels, combined with Awesome and Acceleration Oscil

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Dip Finder

Boll-Ort Tarama

by gocaman
3 stars

This overlay indicator plots a 200-period simple moving average labeled EMA-1, a narrow Bollinger band set with a 2.0 multiplier, and a wider band set with a 3.0 multiplier, filling the gaps between the two upper and lower lines on the price chart. It recolors

Indicator v5 Volatility & bandsMoving averages
Updated 2 days ago · None stated GitHub repository of Boll-Ort Tarama

Risk-Managed Scaffold

by jpantsjoha
3 stars

This strategy enters long when a 20-period EMA crosses above a 50-period EMA and price is above the previous closed daily close. It sizes the position from a percentage of equity and the ATR stop distance, then exits with an ATR stop and a reward-to-risk limit

Strategy v6 TrendMoving averages
Updated 4 weeks ago · Custom licence GitHub repository of Risk-Managed Scaffold
3 stars

This strategy plots long and short markers on the price chart. It builds a composite index from RSI change and a short RSI average, then requires that index, a one-minute cumulative volume delta, and a relative volatility index to agree. EMA, SMA, and VWAP rel

Strategy v5 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Composite RVI CVD Strategy
3 stars

Greeffer's Long Study calculates Donchian Channels alongside a volume moving average filter to generate trade signals. When price touches the lower or upper channel boundaries combined with volume exceeding a custom moving average multiplier, the indicator tri

Indicator v4 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long Study

RTF Indicator

by blackcat1402
3 stars

The RTF Indicator plots Bollinger Band signals on the price chart for trading signals. It uses inputs for band length, stddev, pivot point, recent bars, loss tolerance, pause bar, and take profit to determine entry and exit points. The script manages trade cyc

Indicator v4 Volatility & bandsSupport & resistance
Updated 5 years ago · MIT GitHub repository of RTF Indicator

Bollinger Bands

by piecioshka
2 stars

This indicator plots standard Bollinger Bands directly on the price chart using a simple moving average and standard deviation bounds. It displays filled background channels between the center moving average and the outer bands. Optional mean-reversion signal

Indicator v6 Volatility & bandsTrend
Updated 12 days ago · MIT GitHub repository of Bollinger Bands

Market Regime Dashboard

by vantradelabs
2 stars

The Market Regime Dashboard is a multi-timeframe dashboard indicator that evaluates market conditions across three user-defined timeframes. It measures four core dimensions: trend strength using ADX and DI direction, momentum using RSI z-scores, volatility via

Indicator v6 Screeners & dashboardsTrend
Updated 2 months ago · Custom licence GitHub repository of Market Regime Dashboard
2 stars

This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are

Strategy v6 Mean reversionSessions & time
Updated 4 months ago · None stated GitHub repository of XAUUSD Mean Reversion Strategy

Q-Trend

by middlechild0
2 stars

Q-Trend is a trend-following indicator that calculates a dynamic trend line using price channels and an ATR volatility offset. It plots a colored trend line directly on the price chart, switching between bullish and bearish modes when price breaches the upper

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Q-Trend

Alpy Vix

by avatar-lavventura
2 stars

This strategy calculates a rolling volume-weighted average price and Chris Moody's Williams Vix Fix to detect market bottoms and oversold volatility spikes. It plots in a separate pane and colors chart bars based on filtered exhaustion criteria and price actio

Strategy v5 Volatility & bandsMean reversion Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

This strategy plots a fast and a slow simple moving average on the price chart and enters long when the fast average crosses above the slow average, or short on a cross below. Longs also require ADX above a threshold, RSI below 65, ATR above a minimum, and a b

Strategy v5 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Quantum Entanglement (Filtered MA Crossover)

This indicator detects significant volume-driven market moves to serve as a controller plugin for the Grid Bot system. It calculates a normalized Volume Rate of Change based on a simple moving average of volume and compares it against historical maximums. When

Indicator v6 VolumeVolatility & bands
Updated 8 months ago · MIT GitHub repository of Grid Bot Controler Plugin Big Move [psyll]

This strategy enters long when the close breaks above the prior lookback high and volume exceeds its simple moving average, but only if a VIX regime score is at least three. The score counts whether the VIX to three-month VIX ratio and the VIX level sit below

Strategy v5 BreakoutVolatility & bands Repaints
Updated 10 months ago · MIT GitHub repository of Auto Breakout Strategy mit VIX Heatmap Gate

Box Scalper

by wynnforthework
2 stars

This strategy draws on the price chart and combines a momentum zigzag, a custom QQE built from RSI, ADX directional strength, an SSL filter, and a coefficient-of-variation weighted average. Box period, deviation, and threshold inputs set the box filter, while

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Box Scalper
2 stars

PriceCatch Stock Range Binning calculates the distribution of daily percentage price changes over a configurable historical lookback period, up to 2,000 trading days. It categorizes daily rate-of-change values into specific positive and negative percentage bin

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Stock Range Binning

Breakout Indicator

by Web3Degenerate
2 stars

Breakout Indicator plots high and low threshold levels for a chosen timeframe, such as daily, directly on the price chart. When price closes above the high or below the low, the indicator displays a breakout shape and marks ATR-based stop loss and take profit

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

RSI Scalping Machine [UT]

by theupslidedown
2 stars

This overlay indicator combines RSI, an RSI-VWAP length, RMI, ADX, volume, a range filter, and a cloud on the price chart. Settings change the ADX type, length, and threshold, the volume multiplier and average length, RSI source and lengths, the range-filter s

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · None stated GitHub repository of RSI Scalping Machine [UT]

This strategy plots SuperTrend lines on the price chart using ATR period and multiplier settings to identify trend direction and generate buy and sell signals. It integrates with Algomojo automation to automatically execute trades via API calls to supported br

Strategy v5 TrendVolatility & bands
Updated 4 years ago · MIT GitHub repository of SuperTrend Algomojo Trading Strategy with Target/Stoploss

Sandwich

by kat3samsin
2 stars

This strategy identifies sandwich patterns using RSI, ALMA, and Stochastic indicators. It plots RSI, Choppiness Index (CI), Stochastic K, and D in a separate pane. Long entries trigger when RSI is above CI, both Stochastic lines fall between CI and RSI, and K

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of Sandwich

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