Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 82)

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

Parabolic SAR Strategy

by TWODS-CAPITAL
37 stars

This strategy implements a custom Parabolic SAR algorithm to generate trend-following entries. It plots current and next-bar SAR levels directly on the main price chart. When the SAR flips, the strategy places stop orders to reverse positions from long to shor

Strategy v5 Trend
Updated 3 years ago · MIT GitHub repository of Parabolic SAR Strategy
13 stars

This strategy looks for a long rebound after three or more candles of falling volume followed by a higher-volume candle, while price is lower across that span. It is written as a Zignaly-linked TradingView strategy and was noted for BTCUSDT on the one-hour cha

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder E007

Trend Trader Strategy

by eddiebelaval
7 stars

Calculates a dynamic trend level based on recent highest and lowest prices adjusted by a weighted moving average of Average True Range. It plots the Trend Trader Line directly on the price chart and colors bars according to the active trend direction. Long ent

Strategy v5 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of Trend Trader Strategy

Jerry MACD

by g-moe
3 stars

Jerry MACD is a momentum oscillator indicator displayed in a separate pane. It calculates a standard Moving Average Convergence Divergence line, signal line, and histogram using fast, slow, and signal lengths. The indicator features symbol-specific entry thres

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Jerry MACD

Dynamic Money Flow

by regalouisei
2 stars

This indicator calculates volume-weighted money flow across price action, plotting in a separate pane. It combines close-to-range and close-to-close metrics using dynamic or static weighting. Users can toggle between an index mode smoothed by RMA or a cumulati

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Dynamic Money Flow

KC Combo Bull

by nishpa800
1 stars

Time-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bull
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance margin. A long term mode keeps more zones. Algori

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4
1 stars

An indicator that draws a box on the price chart for each higher timeframe period, showing that period's range as one candle-like block. The timeframe is chosen automatically from the chart timeframe or set by hand. Box height can be based on the high-low rang

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Multi-Time Period Charts

This boilerplate strategy script acts as a customizable template for generating buy and sell signals based on price or source crossovers relative to defined fixed values. Users can select an input source, set threshold values, and specify whether to trigger en

Strategy v5 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Signal Template/Boilerplate Strategy [ExoMaven]

Piercing - Bullish

by TWODS-CAPITAL
37 stars

Identifies the two-candle bullish Piercing Line reversal pattern during a downtrend directly on the price chart. It checks for a long bearish candle followed by a bullish candle opening at or below the prior low and closing above its midpoint. Users can filter

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Piercing - Bullish
13 stars

Ruckard Walcrypto DoubleDonchian is a trend-following breakout strategy built on two Donchian Channels with an optional exponential moving average filter. Position entries trigger when price achieves a new high or low on the primary channel, provided the optio

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian

Vdubus Pattern Gen V2

by eddiebelaval
7 stars

Vdubus Pattern Gen V2 is a TradingView indicator that identifies and plots chart patterns, harmonic shapes, and structural reversals based on multi-scale ZigZag structures and smoothed momentum physics. It draws fast entry structures, slow macro context struct

Indicator v5 TrendSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Vdubus Pattern Gen V2
6 stars

This indicator plots Malaysian-style support and resistance on the price chart. It marks A levels from pivot highs and V levels from pivot lows, using a user-set lookback, and can also mark gap levels. Fresh and previously touched levels can be shown or hidden

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR [by DanielM]
3 stars

This trading strategy evaluates moving average slope and concavity changes to identify trend direction and entry signals. Traders can choose between Hull, EMA, SMA, WMA, or ALMA moving averages, filtered by secondary trend EMAs for long and short positions. Si

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Jerry Strategy / Dashboard

Earnings Price Move Cheat Sheet [Kioseff Trading] is an overlay indicator designed to quantify price movements around earnings announcements. It calculates percentage returns across earnings periods and uses historical simulation to estimate Value at Risk (VaR

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Earnings Price Move Cheat Sheet [Kioseff Trading]

KC Combo Bull Tick

by nishpa800
1 stars

Tick-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bull Tick
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Varip Period Tracker

by ivansoft
1 stars

Experimental overlay that tracks high and low points for several period types such as session, five and ten minutes, day, week, month and year using varip objects. It draws dashed lines for the current period extremes and writes debugging labels with times on

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of Varip Period Tracker

Buy/Sell Strat

by hasnocool
106 stars

This strategy plots a fast and a slow exponential moving average on the price chart and trades their crossovers. It enters long when the fast average crosses above the slow average, volume is above 85 percent of the prior five-bar average, and price is above t

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Strat

Pivot Extension Strategy

by TWODS-CAPITAL
37 stars

The Pivot Extension Strategy identifies local high and low pivot points based on user-defined left and right bar counts. It enters a long position when a pivot low is detected and enters a short position when a pivot high is confirmed. The strategy toggles bet

Strategy v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Pivot Extension Strategy

This strategy executes breakout trades using two Donchian Channels alongside an optional 200-period EMA trend filter. Entries trigger when the price sets a new highest high or lowest low over the primary Donchian Channel period. Exits are managed via a shorter

Strategy v5 BreakoutTrend
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian B002
7 stars

This indicator identifies and projects Wyckoff schematic structures directly on the main price chart. It automatically detects price action phases (Phases A through E), key events, support and resistance levels, and volume spikes. The script features customiza

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Wyckoff Schematic by Kingshuk Ghosh
6 stars

This indicator identifies support and resistance levels using the Malaysian Support and Resistance technique based on pivot high (A) and pivot low (V) close prices. It plots support, resistance, and price gap lines directly on the main chart pane. Traders can

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR OPTIMIZED by KF
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Krypton Indicator

Ehlers Loops [BigBeluga]

by regalouisei
2 stars

Ehlers Loops is a separate-pane indicator that tracks up to five symbols. It requests each symbol's prior close and volume, with low-pass and high-pass periods as the main filter settings. Enabled symbols are drawn with colored labels and lines, and label size

Indicator v5 VolumeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Ehlers Loops [BigBeluga]
1 stars

The Interactive Three Points Curve is an overlay indicator that fits a quadratic curve through three user-selected chart points. Point 2 acts as the apex, while Points 1 and 3 serve as boundary anchors. Outside these anchors, the script extends linearly based

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Three Points Curve

KC Combo Bull v4

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Varip Test

by ivansoft
1 stars

Debugging script that reproduces a varip behaviour in Pine. Two versions of a context type track the running high of a five-minute period, one with varip fields on a chart point and one using a typed object, and add labels showing when the high changes. The la

Indicator v5 Repaints
Updated 1 year ago · None stated GitHub repository of Varip Test
106 stars

This strategy executes high-pyramiding trades using a combination of dynamic support and resistance breakout channels, the Supertrend indicator, and an array of predefined price levels. It tracks recent 100-bar extremes to permit buys on breakouts and manages

Strategy v5 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Test for More Freq

Pivot Points High Low

by TWODS-CAPITAL
37 stars

Pivot Points High Low calculates and plots swing highs and swing lows directly on the price chart. It uses left and right bar offset lengths to confirm local price extremes using built-in pivot functions. When a pivot high or low is detected, a text label disp

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Pivot Points High Low
13 stars

This script provides a standardized Pine Script strategy framework for connecting TradingView alerts directly to the Zignaly automated trading platform. It structures webhook and email payload messages with exchange options, leverage, secret keys, and position

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Ruckard Zignaly Template
7 stars

This script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of 15m BOS + OTE + FVG + OB (Prop Firm)

MSG Enhanced LEGO System

by alboogycOdR
6 stars

The MSG Enhanced LEGO System plots customizable time-based market structure gap ranges and trading sessions as colored boxes on the price chart. Users can configure independent session intervals, such as New York, London, and Asia, along with options to displa

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System
3 stars

LC Signal Generator measures market breadth and alignment across three configurable symbol groups, including European stock indices, S&P 500 futures, and the VIX volatility index. It calculates daily percentage changes for each asset using daily close data. Wh

Indicator v5 Sessions & timeScreeners & dashboards Repaints
Updated 5 months ago · None stated GitHub repository of LC Signal Generator

Electrocardiogram Chart

by regalouisei
2 stars

This indicator reimagines price action as an electrocardiogram wave directly on the main chart pane. It converts standard bar data into heartbeat-style paths using custom data structures, plotting interconnected line segments that link open, internal swing, an

Indicator v5 Candlestick patterns
Updated 8 months ago · None stated GitHub repository of Electrocardiogram Chart

KC Combo Bull v4.1

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.1

Volume Spike Analysis

by ivansoft
1 stars

An indicator in a separate pane that judges whether the current bar's volume is unusual by comparing it with the history of earlier high-volume bars rather than with a moving average. It finds how long ago volume last reached the current level, ranks that gap

Indicator v5 Volume
Updated 1 year ago · None stated GitHub repository of Volume Spike Analysis
106 stars

This Pine Script strategy computes buying selling volume (BV/SV) and normalized pressure volumes (BPN/SPN) in a custom timeframe. It plots a column chart of the combined metric minus in a separate pane and draws Bollinger Bands on the source for volatility ana

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Buying Selling Volume Strategy

Pivot Points Standard

by TWODS-CAPITAL
37 stars

This indicator draws a central pivot and up to five support and resistance levels on the price chart. It offers Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla calculation types. The user selects a pivot timeframe from automatic through multi-year p

Indicator v5 Support & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Pivot Points Standard

Sergapi A005

by ruckard
13 stars

Sergapi A005 is a trend-following strategy designed for crypto pairs on intraday timeframes. It enters long positions when both ATR and EMA multi-timeframe conditions align bullishly, and enters short positions when both turn bearish. The strategy draws on the

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapi A005

MSG Enhanced LEGO System

by alboogycOdR
6 stars

MSG Enhanced LEGO System is a session mapping indicator that overlays configurable time ranges and market sessions directly on the price chart. It tracks independent session ranges, including major trading periods such as New York, London, and Asia. The indica

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System

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