Pine Library · 2,503 open-source scripts

Free Volatility and Band Pine Scripts (page 53)

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

ATR Trailing

by g-moe
3 stars

Calculates a dynamic trailing stop based on the Average True Range (ATR) and a sensitivity multiplier. It plots the trailing stop directly on the price chart, coloring the line green during uptrends and red during downtrends. Buy and sell labels appear when th

Indicator v4 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of ATR Trailing

Volume Breakout

by pineforge-4pass
1 stars

The Volume Breakout strategy identifies directional price movements confirmed by trading volume spikes and Average True Range thresholds. It enters long positions when prices rise beyond a volatility-adjusted distance accompanied by above-average volume, and s

Strategy v6 VolumeVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Volume Breakout
99 stars

This Pine Script indicator plots the Geometric Brownian Motion Reference line on a separate pane. It calculates the reference value as the close price multiplied by e raised to the drift parameter, creating a simulated price path under GBM assumptions. The dri

Indicator v5 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Geometric Brownian Motion Reference

Holt-Winters Channel

by mihakralj
99 stars

This overlay indicator estimates a Holt-Winters-style level, trend, and acceleration from the close, then projects a middle line one step ahead. It tracks a smoothed squared forecast error and multiplies its square root by the multiplier to form upper and lowe

Indicator v5 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Holt-Winters Channel

Squeeze Pro

by mihakralj
99 stars

Squeeze Pro measures market volatility compression by comparing Bollinger Bands against three tiers of Keltner Channels (wide, normal, and narrow). It calculates squeeze intensity based on whether Bollinger Bands fall within these respective channel boundaries

Indicator v5 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Squeeze Pro

TTM Squeeze

by mihakralj
99 stars

This indicator detects volatility compression by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation and Average True Range over a user-defined period, plotting a binary column in a separate pane. When the Bollinger Band width fal

Indicator v5 Volatility & bandsBreakout
Updated 4 weeks ago · Apache-2.0 GitHub repository of TTM Squeeze

Volatility Stop

by mihakralj
99 stars

The Volatility Stop indicator calculates a trailing stop level based on Average True Range (ATR) to help identify trend direction and reversal levels. It tracks price changes over a user-defined ATR period and multiplier, plotting a green line during uptrends

Indicator v5 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volatility 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