Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

10,850 free, open-source indicators, strategies and libraries for TradingView. Copy any script and paste it into the Pine Editor to use it on your chart.

New scripts by RSS
10,850 scripts

DEPV2 Debug All

by YuceSezar89
1 stars

DEPV2 Debug All is a multi-asset quantitative analysis indicator designed for separate pane execution. It evaluates signal conditions across up to twenty cryptocurrency pairs simultaneously using four analytical dimensions: Trend, Momentum, Volatility, and Vol

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 Debug All

SR Batch

by 7b809
1 stars

An overlay indicator that draws support and resistance boxes from pivot lows and highs, accepted only when a simple up and down volume delta passes a filter. Box height uses ATR scaled by a width input. It marks when a level holds or breaks, and builds strike

Indicator v5 Support & resistanceVolume
Updated 2 weeks ago · None stated GitHub repository of SR Batch

Mirror Oscillator

by morindok
1 stars

This indicator calculates the average percentage distance between the closing price and three benchmark mirror levels: a central midpoint derived from 500-period highs and lows, and dynamic upper and lower period bounds. The averaged distance is smoothed with

Indicator v6 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Smart Trend Dashboard Pro

by vedkanani123
1 stars

A price-chart indicator that plots a 9 and a 21 period EMA and prints a buy label on a bullish crossover when RSI is below the overbought level, and a sell label on a bearish crossover when RSI is above the oversold level. It tints the background and candles b

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Smart Trend Dashboard Pro
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.3

This intraday strategy fades tests of the previous day high and low during the New York morning session. It identifies mean-reversion opportunities when price touches within a few ticks of the prior day high or low, closes back inside, confirms with above-aver

Strategy v6 Mean reversionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign PDH/PDL Fade V6

Davo Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that searches for W and M shapes, meaning five-point double-bottom and double-top patterns, in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Unlike the original it allows patterns to form over more than fi

Indicator v4 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of Davo Strategy Indicator

SMA Spread OSC

by rubbermetal
1 stars

SMA Spread OSC plots the percentage distance between a fast SMA (20) and a slow SMA (200) as an oscillator in a separate pane, with optional smoothing. It adds average-distance bands from the spread's own history, an optional histogram and fills, acceleration

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Spread OSC
1 stars

This strategy serves as a test corpus script demonstrating the use of Pine Script map data structures for state management alongside exponential moving averages. It tracks closing prices and EMA gaps in a key-value map during initial bars, then triggers long e

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Map Basic State

VWAP Basic

by shubhamtaywade82
1 stars

Calculates a volume-weighted average price that resets each day, week or month and plots it on the price chart. Two optional standard deviation bands use adjustable multipliers, with a shaded channel between the inner pair. A small table shows the current VWAP

Indicator v6 VolumeSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of VWAP Basic
1 stars

This indicator finds past stretches of price history that resemble the most recent bars and uses what followed them to sketch a forecast. It compares a pattern of up and down candles of set length against up to 5000 bars of history, with optional trend matchin

Indicator v5 Candlestick patterns Repaints
Updated 6 months ago · None stated GitHub repository of Candlestick Matching Forecast

SMI Auto MTF

by Focal-QuantAI
1 stars

An indicator in a separate pane that plots the Stochastic Momentum Index with a signal line and a histogram. Its lookback, smoothing and signal periods are chosen automatically from the chart timeframe, for example shorter values on 15 minutes and longer on we

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of SMI Auto MTF
1 stars

This overlay indicator draws liquidation heatmap pockets on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by a minimum intensity and merges nearby labels. Two swing widths m

Indicator v6 VolumeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap[Modual]

Stochastic RSI Crossover

by Basant1Saini
1 stars

This strategy calculates Stochastic RSI crossovers occurring in extreme overbought or oversold zones, filtered by an optional Exponential Moving Average trend filter. Long positions enter when the %K line crosses above %D from below the oversold threshold whil

Strategy v5 Oscillators & momentumTrend
Updated 7 months ago · None stated GitHub repository of Stochastic RSI Crossover
1 stars

VABOAlgo is a Pine Script v5 strategy that detects breakouts from a value area. It uses VWAP as a POC proxy and ATR to calculate VAH and VAL, requiring volume above average for confirmation and prior bar consolidation within the VA. Long entries trigger on bre

Strategy v5 BreakoutVolume
Updated 8 months ago · None stated GitHub repository of VABOAlgo (Value Area Breakout)
1 stars

High-Frequency Swing Reversal is a Pine Script v5 strategy that computes a reversal score from Bollinger Bands distance, RSI exhaustion, and candlestick rejection patterns such as hammers and stars. It plots VWAP, Bollinger Bands, and EMA20 on the price chart.

Strategy v5 Oscillators & momentumVolatility & bands
Updated 9 months ago · None stated GitHub repository of High-Frequency Swing Reversal

V5 Combination by YZZ

by webcrack4
1 stars

This indicator script combines Volume Profile or Market Profile (Time Price Opportunity) calculations with a MACD oscillator overlay directly on the price chart. It measures volume or time distribution across configurable ranges such as visible range, anchored

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ
1 stars

An experimental pane indicator that simulates a DCA account and a long account inside a date window, using a five-period Hull moving average to decide entries and exits. The long account buys when the average turns up or price is above the DCA cost, adds when

Indicator v5 Moving averages
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 05 Assemble X

Custom Hours Bars

by ivansoft
1 stars

An indicator in a separate pane that splits the trading day into fixed custom windows, such as 07:00 to 09:50 and 09:50 to 12:00, and measures the wicks of each window as if it were one bar. For every window it records the open, highest high and lowest low, th

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of Custom Hours Bars
1 stars

Expected Price with BTC Pair calculates a theoretical price by multiplying the selected price source of the current chart symbol by the price source of a specified benchmark symbol, defaulting to Bitcoin (BTCUSD). It requests security data for the reference sy

Indicator v5
Updated 1 year ago · None stated GitHub repository of Expected Price with BTC Pair

Documentation Indicator

by fiji-solutions
1 stars

Documentation Indicator is a chart overlay that stores three user-selected time and price points in a custom Triangle type and draws a purple triangle between them. The user confirms each point on the chart through paired time and price inputs. A function crea

Indicator v5
Updated 2 years ago · None stated GitHub repository of Documentation Indicator
1 stars

Technical Ratings Pro - Pump Wave calculates an aggregated technical rating derived from a suite of moving averages and oscillators. It evaluates indicators including multiple SMAs, EMAs, Hull MA, VWMA, Ichimoku Cloud, RSI, Stochastic, MACD, CCI, and the Ultim

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Technical Ratings Pro - Pump Wave

QS Fast Coppock

by nvFede
1 stars

A Pine v4 oscillator in a separate pane based on the Coppock curve. It sums 14-bar and 11-bar rates of change, smooths them with a Hull moving average, and averages the result again with a smoothness setting. The line and area are green or red depending on the

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Fast Coppock

MTM Metric [SMA]

by JohnsonHsiao
1 stars

This indicator calculates momentum metrics by measuring the differences between three simple moving averages of closing prices. It computes a short-term bias by subtracting a medium-period SMA from a fast-period SMA, and a long-term bias by subtracting a long-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric [SMA]

TMA Overlay

by rajatjpatel
1 stars

A Pine v4 overlay combining several chart aids. It draws smoothed moving averages at 21, 50, 100 and 200 bars, fills between a 2-period EMA and the 200 line in green or red to show trend, and marks bullish and bearish three line strike patterns and large engul

Indicator v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of TMA Overlay

LINKBTC Binance 3h

by tseitz
1 stars

A Pine v4 strategy that colours candles and plots VWAP with wide bands at one percent, inner bands at 0.8 percent and a tight pair at 0.1 percent around the close. A green non-doji candle opening above the tight upper band, or reaching the inner one, triggers

Strategy v4 Volume
Updated 4 years ago · None stated GitHub repository of LINKBTC Binance 3h
948 stars

Chart Type Identifier is an overlay indicator that classifies the current TradingView chart from bar structure. It counts gaps, horizontal open-close links, and wickless bars, then tests Heikin-Ashi open formulas, equal Renko bodies, Kagi and line-break patter

Indicator v4 Repaints
Updated 11 days ago · GPL-3.0 GitHub repository of Chart Type Identifier

This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper
330 stars

HA UnivLong&Short Futures calculates Heikin Ashi candles and builds a channel using simple moving averages of Heikin Ashi highs and lows. It enters long positions when the upper channel line crosses above the lower channel line and opens short positions on the

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of HA UnivLong&Short Futures

ALLO Tracker

by Allen1212
303 stars

ALLO Tracker visualizes historical buy and sell transactions made by ARK Invest funds directly on the main price chart. The indicator uses hardcoded historical trade data and timestamps to plot green buy labels below bars and red sell labels above bars. Users

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of ALLO Tracker

Function - Maximum Profit

by ricardosantos79
261 stars

This indicator calculates a maximum-profit value over a chosen lookback by summing positive bar-to-bar changes in a source. It plots the result for close and for inverted close in a separate pane, then overlays a fast cumulative version and an alternate summed

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Maximum Profit
257 stars

This strategy overlay calculates custom pivot high and low levels, averaged price sources, and Ichimoku Cloud components (Tenkan-sen, Kijun-sen, Senkou Span A/B). It also requests lower low price data from a 360-minute timeframe with lookahead enabled, introdu

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of Futures - No Repaint ES 1.0
218 stars

Linear Regression Reversal Strategy is a Pine Script chart overlay indicator that plots a linear regression trendline with upper and lower standard deviation channel bounds for a specified date range. Users can select exact start and end timestamps directly on

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Linear Regression Reversal Strategy

This indicator uses a k-Nearest Neighbors (kNN) machine learning algorithm to classify current market conditions based on historical indicator pairs. It evaluates combinations of fast and slow periods of RSI, Rate of Change (ROC), and Commodity Channel Index (

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-Based Strategy (MTF)

ABCD Strategy

by hasnocool
106 stars

Identifies harmonic ABCD chart patterns using pivot highs and pivot lows over a configurable lookback length. The strategy evaluates price retracement and extension ratios across four consecutive alternating pivot points to trigger long or short positions. It

Strategy v5 Support & resistanceMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of ABCD Strategy
99 stars

This indicator plots the cumulative distribution function of a beta distribution applied to a min-max normalized source series. Over a lookback window it scales the chosen source into the unit interval, then evaluates the regularized incomplete beta using a La

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Distribution CDF (BETADIST)

Single-color candles

by be-thomas
65 stars

This indicator plots candlestick bars in a separate pane based on the current chart's open, high, low, and close values. Derived from the TradingView Pine Script v5 documentation, it demonstrates the usage of the plotcandle function to render price candles usi

Indicator v5 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of Single-color candles
55 stars

This indicator builds a simulated volume profile on the price chart. On the last bar it finds the highest high and lowest low across the previous 200 bars, splits that range into 50 price bins, and adds each bar's volume to the bin of its close. It draws a hor

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Volume Profile (Simulated)

This indicator calculates John Ehlers' two-pole Super Smoother Filter, an infinite impulse response lowpass filter designed to eliminate high-frequency market noise while reducing lag compared to standard moving averages. It plots a smoothed line directly on t

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Ehlers 2-Pole Super Smoother Filter (SSF2)

Range Probability - NQ

by TamaraKGreen
46 stars

This overlay indicator measures fixed-length ranges from a New York session anchor and draws them on the price chart. Boxes mark a range as forming, closed above the previous high, closed below the previous low, or closed inside. It plots the prior range high,

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Range Probability - NQ

Chaikin Money Flow

by TWODS-CAPITAL
37 stars

The Chaikin Money Flow indicator measures the volume of money flow over a specified lookback period. It calculates the Accumulation Distribution value for each bar based on the relationship between closing, high, and low prices, then divides cumulative money f

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Chaikin Money Flow

Zen Open CSC Bars

by Zen-Tim
29 stars

This indicator marks consecutive same-direction candles at the start of each daily session. It counts the first user-set bars after a new day and labels a bullish or bearish CSC when every bar closes in that direction. Settings toggle bar colours, bull and bea

Indicator v5 Candlestick patternsSessions & time Repaints
Updated 2 weeks ago · MIT GitHub repository of Zen Open CSC Bars
16 stars

This trend-following strategy generates trades using Donchian channel breakouts combined with higher-timeframe trend filters and chart-timeframe momentum. It confirms breakout entries against a higher-timeframe moving average and rate of change, while optional

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 2: Dual-Timeframe

Diverlong B002

by ruckard
13 stars

This strategy enters when Squeeze Momentum color-section changes diverge from price, comparing the latest change with a prior one and confirming the divergence across two pairs. A smaller squeeze value with a higher price opens a short, while a larger squeeze

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong B002

This indicator expands Alexander Elder's Bull Power and Bear Power concept into a multi-model pressure analysis system displayed in a separate pane. It calculates bull, bear, and net pressure alongside dominance, impulse, and acceleration using selectable movi

Indicator v6 Oscillators & momentumDivergence
Updated 2 days ago · MIT GitHub repository of Elder Ray Pressure Engine [WavesUnchained]

SMC Trade with Dhruv

by MeridianAlgo
9 stars

This indicator maps Smart Money Concepts directly onto the price chart. It identifies internal and swing market structure, highlighting break of structure and change of character events alongside strong and weak swing highs and lows. It also plots internal and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 months ago · MIT GitHub repository of SMC Trade with Dhruv

Volume Delta Dots

by lunarticktrading
7 stars

This indicator calculates lower-timeframe volume delta and displays the directional result as colored dots in a separate pane. It fetches intrabar up and down volume using dynamic lower timeframes based on the current chart resolution. A positive delta colors

Indicator v6 Volume
Updated 2 weeks ago · None stated GitHub repository of Volume Delta Dots

About the Pine Script Library

The ForexR Pine Script Library collects open-source TradingView indicators, strategies and libraries that are published on GitHub. Every script links to its repository, so you can see the author's latest version, issues and licence. Where the licence allows it, the full code is on the script's page, ready to copy into TradingView's Pine Editor. Stars, updates and licences are synced from GitHub every day, and new scripts are added every week.

Each script is read automatically before it is listed: it must declare an indicator, strategy or library for Pine Script version 4 or later, and copies of the same code are listed only once. The summaries and tags are written automatically from the code and the README. They describe what a script does; they are not a recommendation, and nothing here is tested or endorsed by ForexR.

Indicators and backtests describe the past. Check any strategy in the Strategy Tester and on a demo account before you trade with it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Pine Script Library FAQ

What is Pine Script?

Pine Script is the programming language of TradingView. Indicators, strategies and libraries written in it run directly on TradingView charts: an indicator draws lines, zones or signals, a strategy places simulated trades that the Strategy Tester reports on, and a library holds functions other scripts can import.

How do I add a Pine Script to my TradingView chart?

Open a script here and press Copy script. In TradingView, open the Pine Editor at the bottom of the chart, create a new indicator or strategy, select all of the template text and paste over it. Press Save, then Add to chart. A strategy's trades appear in the Strategy Tester tab.

Are these Pine Scripts free?

Yes. Every script listed here is published on GitHub, so you can read and use it at no cost. ForexR shows the full code only when the author published it under an open licence, such as MIT, GPL or the Mozilla Public License that TradingView adds to new scripts. For other scripts the Copy button reads the file straight from GitHub. Check the licence before reusing code in your own work.

Why are there no Pine Script v3 or older scripts?

Pine Script versions 1 to 3 are years out of date and miss most of the functions current scripts rely on. The library lists scripts written for versions 4, 5 and 6, and you can filter by version. Version 6 is the current one.

What does "Repaints" mean?

A repainting script can change its signals after the fact: on the live bar, or when it reads a higher timeframe before that bar has closed. Its history then looks better than it would have traded in real time. Scripts where the code or the author says so are marked Repaints, and the "Hide repainting" filter leaves them out.

How does ForexR choose which scripts to list?

A crawler searches GitHub every week for Pine Script files, reads each one and keeps scripts written for Pine version 4 or later in repositories with at least one star. Copies of the same code are listed once, under the most-starred repository. Repositories that ship programs, hide downloads behind passwords or show signs of bought stars are left out. Stars, updates and licences are refreshed from GitHub every day, and the summaries are written automatically from each script's code and README.

Trade on TradingView With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers