Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 97)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

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

Hercules Srategy

by g-moe
3 stars

This strategy detects momentum breakouts identified as lightning candles where the absolute candle body size exceeds a user-defined tick threshold. It enters long positions on large bullish candles and short positions on large bearish candles, with an option t

Strategy v5 BreakoutOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Hercules Srategy
3 stars

Ichimoku Cloud Weight calculates an aggregated quantitative score based on multiple Ichimoku Cloud components from a chosen timeframe. It assigns weighted bullish and bearish points to Tenkan and Kijun crosses, price and Kijun crosses, Kumo breakouts, Senkou S

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud Weight

This indicator renders Ichimoku cloud components consisting of conversion line, base line, leading span A and leading span B. It tracks Tenkan-Kijun crosses and assigns a numeric score to each based on whether the cross occurs below, inside or above the Kumo c

Indicator v5 Moving averagesSupport & resistance
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud Weight Original
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
3 stars

This Pine Script v5 indicator demonstrates the matrix.new function for creating custom types. It plots a single label containing the text Hello world at the high price on the chart. The script is set to overlay mode with no input settings and serves as a minim

Indicator v5
Updated 5 months ago · None stated GitHub repository of Matrix New Type Example 1

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
3 stars

This overlay indicator builds a volume profile from a chosen number of recent bars and splits the price range into rows. It draws a horizontal volume histogram on the price chart, highlights the point of control, and can optionally show a rolling point of cont

Indicator v5 VolumeSupport & resistance
Updated 5 months ago · None stated GitHub repository of myVolume Profile [LUX]
3 stars

This indicator plots classic On Balance Volume in a separate pane. It accumulates volume according to the sign of each close change, then overlays a smoothing moving average. Users choose the average method among SMA, EMA, RMA, WMA, and VWMA, set its length, a

Indicator v5 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of On Balance Volume

PSAR

by g-moe
3 stars

This indicator plots the Parabolic SAR (PSAR) on the price chart combined with Relative Strength Index (RSI) momentum filters. It calculates SAR dots and triangle markers to display trend direction. When a PSAR trend reversal occurs alongside confirmation from

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of PSAR

QQE Glaz

by g-moe
3 stars

This indicator calculates a Quantitative Qualitative Estimation (QQE) variant and plots it in a separate pane. It computes an EMA-smoothed RSI alongside a double Wilder-smoothed ATR of that RSI. From these, it creates fast and slow trailing stop bands based on

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of QQE Glaz

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

RSI Strategy

by g-moe
3 stars

The RSI Strategy calculates the Relative Strength Index with a user-defined length. It generates long entries on crossover above the oversold threshold and short entries on crossover below the overbought threshold. The strategy overlays signals directly on the

Strategy v5 Oscillators & momentumMean reversion
Updated 5 months ago · None stated GitHub repository of RSI Strategy

RVOL++

by g-moe
3 stars

This indicator measures relative volume by comparing cumulative session volume against a historical average for the same time of day across previous days. Drawn in a separate pane, it renders a multi-color gradient area and stepline plot across four activity z

Indicator v5 VolumeSessions & time
Updated 5 months ago · None stated GitHub repository of RVOL++

Sandbox Test

by g-moe
3 stars

This indicator plots a custom volume profile on the price chart. It divides the price range into rows and calculates volume distribution by summing bar volumes that fall within each price level over a lookback period. Horizontal bars represent volume at each l

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Sandbox Test
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

Tracks local swing highs and lows to determine market structure and current market bias. It draws horizontal price lines required to break structure, labels structural reversals or breaks, and highlights Buy The Dip and Sell The Rally setup points. Settings al

Indicator v5 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of SCL True Market Structure

SHORT eMACD

by g-moe
3 stars

SHORT eMACD is a short-only strategy that evaluates bearish momentum using MACD crossunders, exponential moving averages (EMA), and consecutive candle filters. It offers five configurable entry modes combining MACD signals and custom EMA candle logic. Users ca

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of SHORT eMACD
3 stars

This indicator plots smoothed Heiken Ashi candles on the price chart using two stages of exponential moving averages. It computes smoothed open, high, low, and close values with adjustable lengths of 10. Bullish candles appear green and bearish candles appear

Indicator v5 Candlestick patternsTrend Repaints
Updated 5 months ago · None stated GitHub repository of Smoothed Heiken Ashi Candles
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

Beta Convexity

by mihakralj
99 stars

Beta Convexity plots the second difference of a linear regression fitted to the close. It estimates how that fitted series bends over a rolling window and draws the result in a separate pane with a zero reference line. The period input sets the regression leng

Indicator v5
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Convexity

CSV Feed Reference

by mihakralj
99 stars

CSV Feed Reference is a Pine Script v5 indicator that plots the close price as a blue line in a separate pane. The published source contains no user inputs and no additional calculations, signals, or overlays. The file name and title identify it as a CSV feed

Indicator v5
Updated 4 weeks ago · Apache-2.0 GitHub repository of CSV Feed Reference

Elder Impulse System

by mihakralj
99 stars

Elder Impulse System plots a column series in a separate pane. It compares a 13-period exponential moving average with its previous value and a MACD histogram with its previous value. A rising EMA and rising histogram print 1, a falling EMA and falling histogr

Indicator v5 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Impulse System
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

Rolling Minimum Index

by mihakralj
99 stars

Rolling Minimum Index calculates and plots the bar offset to the lowest closing price over a user-defined lookback window using Pine Script's built-in lowestbars function. Plotted in a separate indicator pane, it outputs a negative integer representing how man

Indicator v5 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Rolling Minimum Index

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

Volume-Weighted MACD

by mihakralj
99 stars

This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee

Indicator v5 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volume-Weighted MACD

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