Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 95)

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

2 stars

This indicator provides an interactive framework for validating Elliott Wave motive wave structures directly on the price chart. Users select six anchor points corresponding to wave origins and terminals (points 0 through 5) using interactive chart inputs. The

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Interactive Motive Wave Checklist
1 stars

This indicator aggregates price action into constant-volume candles based on a configurable cumulative volume threshold. It renders these volume bars directly on the price chart using boxes and wick lines, updating dynamically during live formation. A Zero-Lag

Indicator v5 VolumeMoving averages
Updated 7 weeks ago · None stated GitHub repository of Volume Candles by BITMOON618

This indicator plots a linear regression line based on closing prices using a 10-period window. The regression calculates a straight line that best fits the price data points over the specified length. It draws the resulting trend line in a separate pane for v

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Linear Regression
2 stars

Intersection Value Functions calculates the exact price level where two series intersect during a crossover or crossunder. It uses linear interpolation based on line slopes between consecutive bars to pinpoint the exact crossover value. The indicator plots two

Indicator v5 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Intersection Value Functions

This overlay indicator combines price-action swing structure with a MACD comparison and a dual moving-average filter. It finds pivot highs and lows, labels higher highs, lower highs, higher lows and lower lows, and builds a trend bias from those swings. It rep

Indicator v5 Candlestick patternsOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Price Action Candles with MACD Signals
1 stars

Zero-Lag Fractal KdV Smoothing is an indicator that applies fractal dimension-based smoothing to price data using a KdV-like wave equation. It computes a weighted average between the current close price and the prior filtered value, where the weights depend on

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Zero-Lag Fractal KdV Smoothing

This overlay strategy combines swing price structure with MACD structure and two higher-timeframe exponential moving averages. It finds pivot highs and lows over ten bars, labels higher highs, lower highs, higher lows and lower lows, and builds matching states

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Price Action Candles with MACD Signals Strategy
2 stars

Calculates and projects key liquidity levels directly on the main price chart based on volume pivot highs. When a volume peak is detected, the indicator captures the closing price from that period and plots horizontal lines across the chart. It also features o

Indicator v5 Support & resistanceVolume
Updated 8 months ago · None stated GitHub repository of Liquidity Levels [LuxAlgo]

This price-chart indicator finds swing highs and lows with a user-set pivot length and classifies them as higher high, lower high, higher low, or lower low. It tracks a trend state and the latest swing signal from those pivots. The same swing comparison is run

Indicator v5 Candlestick patternsSupport & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Pivot Trendlines

This indicator calculates moving averages with periods derived from a user-selected date range multiplied by Fibonacci ratios (1.0, 1.618, and 0.618). On the chart's final bar, it renders these moving average paths directly on the price chart using polylines.

Indicator v5 Moving averagesSupport & resistance

This indicator identifies pivot highs and pivot lows on the price chart using specified lookback and lookahead bar lengths. When a pivot low is detected, it plots a green triangle below the corresponding bar. When a pivot high is detected, a red triangle is pl

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Pivot Trendlines
2 stars

Live Economic Calendar by toodegrees overlays scheduled macroeconomic news events directly onto the price chart and displays an on-screen summary table. It retrieves economic release data across major global currencies, allowing traders to filter events by imp

Indicator v5 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Live Economic Calendar by toodegrees

This overlay indicator plots a chosen upper price, lower price, and their midpoint on the chart. Between two selected times it counts bars and sums high-to-low height for all candles and for rising and falling candles separately, and it stores the window high

Indicator v5 Support & resistance

This indicator draws supply and demand zones and break-of-structure markers on the price chart. It detects swing highs and lows over a user-set length, then labels them as higher high, lower high, higher low, or lower low when price-action labels are enabled.

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles with Zig Zag

Logging in Pine Script

by regalouisei
2 stars

This indicator plots pivot high and low lines on the price chart based on user-defined bars on each side of the pivot. It automatically logs messages for new pivots, higher highs, lower lows, and price crosses with color-coded text (gray for messages, orange f

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Logging in Pine Script

This indicator analyzes capital rotation and volume flow across 20 major cryptocurrency pairs. It compares volume changes and relative flow momentum across selected symbols to identify where market capital is migrating. The script overlays findings directly on

Indicator v5 VolumeScreeners & dashboards
3 stars

Price-Action Candles classifies swing structure from pivot highs and lows and colors chart candles bullish, bearish, or neutral. It marks higher highs, lower highs, higher lows, and lower lows, with a label mode that either offsets labels by the pivot length o

Indicator v5 TrendCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of Price-Action Candles
2 stars

This indicator tracks the most recent historical daily high higher than the current day's high and the most recent daily low lower than the current day's low. It scans back up to 5000 bars using daily security calls to identify these price levels, the elapsed

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Lowest / Highest From Widget
3 stars

Price-Action Candles (Lower) is a separate-pane indicator that classifies swing structure from pivot highs and lows. It marks higher highs, lower highs, higher lows, and lower lows, then assigns a bullish, bearish, or neutral trend from those swings and the cl

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Price-Action Candles (Lower)
2 stars

This indicator visualizes intrabar market activity by requesting lower timeframe open, close, and volume data. It constructs a visual heatmap directly on the price chart using colored box objects, where gradient shading represents volume intensity across intra

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of LTF Activity Heatmap [LuxAlgo]

Prior Day Levels

by g-moe
3 stars

Prior Day Levels plots horizontal reference lines for the previous day's high, low, close, and midpoint, plus the previous week's high, low, close, and midpoint. Each level can be shown or hidden, and its color, line style, and width can be set independently.

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Prior Day Levels
3 stars

Pro In Out Divergence is a lower-pane oscillator indicator that combines normalized stochastic layers, triple exponential moving averages (TEMA), and DMI/ADX state calculations. It tracks momentum shifts and inflow or outflow states relative to zero lines and

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Pro In Out Divergence

Psych Levels

by g-moe
3 stars

This TradingView indicator overlays horizontal zones on the price chart to highlight psychological rounding levels. It analyzes the close price's decimal length and mintick to compute baseline values for singles, tens, hundreds, and thousands zones. These leve

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Psych Levels

MA Sabres [LuxAlgo]

by regalouisei
2 stars

MA Sabres identifies trend reversals by monitoring direction changes in a selectable moving average after a user-defined trend duration. The indicator supports various moving average types including SMA, EMA, HullMA, VWMA, DEMA, and TEMA. When a moving average

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of MA Sabres [LuxAlgo]
3 stars

Psychological Levels is a strategy that plots horizontal grid lines based on whole, half, and quarter psychological price levels directly on the chart. It triggers trades during designated intraday session windows, filtering signals using a multi-timeframe mov

Strategy v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Psychological Levels
3 stars

Psychological Levels is a chart overlay indicator that draws horizontal quarter, half, and whole round-number levels. It marks buy and sell signals when volume crosses user thresholds near those levels, with an optional moving-average filter, a delay between s

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Psychological Levels
3 stars

Psychological Levels is a price-chart strategy that draws quarter, half, and whole rounded price levels. A rounding value sets the level spacing, and each level type can be toggled with its own color, line style, and width. Buy and sell volume thresholds, a pr

Strategy v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Psychological Levels
2 stars

Market Manipulation Index plots a composite oscillator from 0 to 1 in a separate pane. It averages a sine-wave fit error, a two-lag linear prediction residual, and a high-versus-low frequency variance ratio, each limited by price variance. An ATR-scaled window

Indicator v5 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Market Manipulation Index (MMI)
3 stars

Psychological Levels calculates and overlays key rounded price thresholds on the main chart, distinguishing between whole, half, and quarter price levels. It identifies potential trade setups filtered by defined session time windows, prior-day range conditions

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Psychological Levels

MC Bias Strategy Example

by regalouisei
2 stars

MC Bias Strategy Example is a Pine Script strategy designed to demonstrate automated trade execution driven by an external Markov Chain bias indicator. The script accepts a user-selected data source to determine directional bias and executes trades based on th

Strategy v5 AI / machine learningTrend
Updated 8 months ago · None stated GitHub repository of MC Bias Strategy Example
3 stars

Psychological Lines draws a grid of horizontal round-number levels on the price chart. It rounds a baseline price by the Rounding Value, then plots whole, half, and quarter steps above and below that baseline, up to ten steps on each side. Each group can be tu

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Psychological Lines
2 stars

The McDonald's Pattern indicator detects specific price patterns on the chart by finding top and bottom points using highest and lowest values over a user-defined length. It plots fries above top points and hamburgers below bottom points, then connects selecte

Indicator v5 Support & resistanceCandlestick patterns
Updated 8 months ago · None stated GitHub repository of McDonald's Pattern [LuxAlgo]
3 stars

This strategy trades swing high breakouts on lower timeframes in alignment with higher-timeframe moving average trends. It evaluates price highs using a configurable lookback period and applies higher-timeframe moving average filters along with an optional ATR

Strategy v5 TrendBreakout
Updated 5 months ago · None stated GitHub repository of Qullamaggie Breakout Fixed

The Range Percent Breakout Strategy identifies range contraction and inside bar patterns where the current bar's range is within a specified percentage threshold of the previous bar. When this condition is met while flat, breakout levels are established above

Strategy v5 BreakoutVolatility & bands
Updated 5 months ago · None stated GitHub repository of Range Percent Breakout Strategy
2 stars

The Moving Regression Prediction Bands indicator calculates polynomial regression bands from historical price data using a moving window. It fits a polynomial curve of specified degree to generate upper and lower bands representing expected price ranges with p

Indicator v5 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Moving Regression Prediction Bands

This multi-filter strategy triggers intraday entries by combining Relative Strength Index (RSI) range conditions with Volume Weighted Moving Average (VWMA) crossovers, Simple Moving Average (SMA) price alignment, and volume oscillator filters. Users can restri

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Rising Bars 30 Sec RSI SMA VWMA Exit Strategy
2 stars

Plots normalized percentage changes for groups of multiple assets in a separate pane to create a comparative spaghetti chart. It tracks relative performance using price, on-balance volume (OBV), or open interest, anchored to customizable periods or timestamps.

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Multi-Asset Performance Spaghetti
3 stars

A momentum scalping strategy designed for 5-minute charts that combines the Relative Strength Index (RSI) with fast and slow Simple Moving Averages (SMA). It triggers long entries when the 14-period RSI exceeds 70 while the 5-period SMA is above the 20-period

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of RSI MA Scalp Strategy

Neglected Volume by DGT

by regalouisei
2 stars

This indicator calculates relative volume metrics and combines them with On Balance Volume (OBV) momentum and price-OBV correlation in a separate pane. It evaluates volume strength against simple moving averages and standard deviation thresholds, while offerin

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Neglected Volume by DGT

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