Synced with GitHub · updated today

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

This indicator tilts a simple moving average by the slope between two user-chosen price and time points and plots that average, its inverse, and a horizontal midpoint. It also mirrors the average around the midpoint and draws reconstructed candles reflected th

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Two Points MA Symmetry

Precision Sniper

by vedkanani123
1 stars

A signal indicator on the price chart built on a 9, 21 and 55 EMA ribbon. Buy and sell signals need a minimum confluence score drawn from trend, RSI, volume and other checks, and are graded A plus, A, B or C, with C hidden by default. It plots an ATR or struct

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Precision Sniper

KC Combo Bull v4.3

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

A trend strategy on the price chart. It enters long when a fast EMA crosses above a slow EMA with RSI below 60 and short on the opposite cross with RSI above 40. An optional higher-timeframe EMA filter, set to four hours by default, requires price to agree wit

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign MTF Trend
1 stars

A Pine v4 pane indicator that builds a stack of up to 28 rows of moving average based momentum readings and colors them as a heat map, with greens for positive and reds for negative momentum. The moving average type can be SMA, EMA or WMA, momentum can be smoo

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map

FTCH-tracker

by Allen1212
303 stars

Visualizes historical buy and sell transactions made by ARK Invest ETFs for FTCH (Farfetch) directly on the price chart. The script plots green labels below price bars for buy trades and red labels above price bars for sell trades based on historical timestamp

Indicator v4
Updated 2 years ago · None stated GitHub repository of FTCH-tracker

Test 007 Mode

by ricardosantos79
261 stars

This indicator calculates and plots the rolling median and mode values of close prices over a user-defined length using Pine Script array functions. It maintains a custom floating-point array of recent price data, sorting it to calculate the median, and counti

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 007 Mode

CC-Trend strategy 2

by hasnocool
106 stars

This strategy draws exponential moving averages and automatic Fibonacci retracement levels on the price chart. It opens a short when the previous close is below the upper Fibonacci extreme and the 21-period average is below the 55-period average. It closes the

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of CC-Trend strategy 2
99 stars

This indicator calculates John Ehlers' Voss predictive filter. It first applies a two-pole bandpass to the selected source, then builds a weighted feedback predictor that offsets filter delay by a chosen number of bars. Period sets the primary cycle length, Pr

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Voss Predictive Filter (VOSS)

Linear Regression

by be-thomas
65 stars

This indicator calculates a linear regression trend channel and Pearson's R correlation coefficient directly on the price chart. Using Pine Script line drawings, it plots a central regression baseline along with configurable upper and lower deviation bands bas

Indicator v4 TrendSupport & resistance Repaints
Updated 5 days ago · GPL-3.0 GitHub repository of Linear Regression

Price Channel Strategy

by TWODS-CAPITAL
37 stars

This strategy builds a price channel from the highest high and the lowest low over a user-set lookback. Once enough bars exist, it places a long stop order at the channel high and a short stop order at the channel low. The only setting changes the channel leng

Strategy v5 BreakoutSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Price Channel Strategy

Sergapi B002

by ruckard
13 stars

Sergapi B002 is a price-chart strategy that opens long trades when both an ATR signal and an EMA signal indicate buying, and short trades when both indicate selling. A strategy-type setting controls direction. Optional percentage or ATR stop losses, take profi

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapi B002
9 stars

Volume Strata [WavesUnchained] is a fixed-range volume profile indicator that anchors to the right side of the price chart. It calculates volume or money flow distribution over a configurable lookback period to highlight the Point of Control (POC), Value Area

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · MIT GitHub repository of Volume Strata [WavesUnchained]
6 stars

This overlay strategy builds independent timed session ranges and marks range, trendline, mean, VWAP, and high-low levels when those displays are enabled. It enters on range breakouts and exits with strategy exits, choosing among range, ATR, fixed-point, and r

Strategy v5 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System Strategy

This overlay indicator draws rounded psychological price levels and optional PVSRA vector candle colors on the price chart. It plots quarter, half, and whole levels from a user-set rounding value, with separate color, line style, and width for each. Vector col

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Level Theory + Vector Candles
2 stars

Everything Bitcoin [Kioseff Trading] is an overlay indicator that gathers on-chain Bitcoin network metrics and lower timeframe market data. It requests BCHAIN datasets via Quandl—including hash rate, mining difficulty, transaction volume, miner revenue, and wa

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Everything Bitcoin [Kioseff Trading]
1 stars

A test strategy from a reference corpus that isolates the timing of market close orders. It buys one unit at 03:15 and closes at 05:15, then sells short one unit at 15:15 and covers at 17:15, based only on the clock. There are no indicators, stop loss or take

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 59 Market Close Fill Basis

Pulse Trend Radar

by vedkanani123
1 stars

A trend indicator on the price chart using an efficiency-ratio adaptive moving average with ATR-based bands. A trend flip produces a Long or Short signal, and the script can draw a stop at a multiple of ATR with three targets set as multiples of the risk dista

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Pulse Trend Radar

KC Combo Bull v4.4

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.4
1 stars

This strategy overlays a multi-timeframe trend system on the price chart. It reads a higher timeframe, selected in minutes, for fast and slow EMA alignment and Supertrend direction, using the prior bar. It enters long or short only when flat, after an executio

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MTF VIOP v6
1 stars

A Pine v4 pane indicator that shows moving average based momentum as a heat map of up to 28 rows, with a second moving average setting and a second slower smoothing for short-term readings. Colors run from green for positive to red for negative momentum, with

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map Plot

VolumeSpike

by ivansoft
1 stars

An indicator on the price chart that requests pivot lows and pivot highs from the one-hour timeframe and plots them as circles on the chart. For each new pivot it draws a dashed horizontal line back to the bar where the pivot formed. Despite the name it does n

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of VolumeSpike

FVRR-tracker

by Allen1212
303 stars

FVRR-tracker is an overlay indicator that marks recorded ARK Invest activity on the Fiverr price chart. It places a label under the bar for a historical buy, showing a short count such as X1 at a fixed date. An ETF setting is present but only offers ALL in thi

Indicator v4
Updated 2 years ago · None stated GitHub repository of FVRR-tracker

Test 009 Stat Mining

by ricardosantos79
261 stars

This statistical analysis tool mines historical relationships between RSI values and candle volatility. It calculates a 14-period RSI from the previous bar and normalizes absolute price change using a 14-period Average True Range (ATR). Based on the normalized

Indicator v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Test 009 Stat Mining

This strategy generates trend-following entries using double-smoothed exponential moving averages, two Commodity Channel Index (CCI) periods, VWAP, and volume filters. Long entries require price to trade above smoothed EMAs and VWAP alongside high volume and b

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI & EMA strategy by Tradeswithashish

Elder Ray Index (ERI)

by mihakralj
99 stars

The Elder Ray Index plots Bull Power and Bear Power values in a separate pane to measure buying and selling pressure. Bull Power is calculated as high minus EMA and Bear Power as low minus EMA, where the EMA uses a period-based smoothing formula with alpha and

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Ray Index (ERI)

Lows from New Highs

by be-thomas
65 stars

This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up

Indicator v4 Support & resistanceBreakout
Updated 5 days ago · GPL-3.0 GitHub repository of Lows from New Highs

Price Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the percentage price oscillator in a separate pane. It divides the difference between a short moving average and a longer moving average by the longer average, then multiplies by 100. Users choose the source, both lengths, and whether the

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Price Oscillator

Sergapium A004

by ruckard
13 stars

This strategy generates long and short signals using high and low closing moving average channels combined with ATR trend filtering. It plots directly on the price chart alongside an optional moving average ribbon. Positions enter when directional criteria ali

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapium A004

This overlay indicator plots a session VWAP that resets daily plus pivot-anchored VWAP highs and lows. It marks price crosses of those VWAPs, crosses between session and anchored VWAPs, and clusters where several VWAP lines sit close together. Display mode, cl

Indicator v6 VolumeSessions & time
Updated 2 days ago · MIT GitHub repository of VWAP Cross Visuals [WavesUnchained]
6 stars

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional

Indicator v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of MSG Enhanced Range Breakout System

LibraryStopwatch

by g-moe
3 stars

LibraryStopwatch is a Pine Script library designed to measure and benchmark script execution timing. It tracks the time elapsed since the script started running using built-in system time variables and estimates execution metrics across processed bars. The lib

Library v5
Updated 5 months ago · None stated GitHub repository of LibraryStopwatch

Exploring Unicode

by regalouisei
2 stars

Exploring Unicode is a Pine Script v5 indicator that demonstrates Unicode character support on the price chart. It labels high and low pivots with blocks of special symbols and emojis using the label.new function. The script also applies plotchar to mark bars

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Exploring Unicode

PF Probe 60 Pyramiding Close Id

by pineforge-4pass
1 stars

A test strategy from a reference corpus that checks how closing by order id behaves after several entries have been stacked. It buys one unit at 00:15, 00:30 and 00:45 under the same id and closes all at 01:15, then repeats the pattern on the short side at 12:

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 60 Pyramiding Close Id

Quantum Trend Fusion Pro

by vedkanani123
1 stars

A separate-pane indicator that fuses a selectable moving average type (EMA, SMA, HMA, KAMA and others) into a multi-state trend cloud and a smoothed oscillator with signal line. Buy and sell labels depend on a probability score against two thresholds and an op

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Quantum Trend Fusion Pro

KC Combo Bull v4.5

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.5
1 stars

A trend strategy that requires four conditions to agree: price on the right side of a 200 EMA, ADX at or above a threshold, the positive directional index leading the negative for longs or the reverse for shorts, and a custom ATR-band Supertrend pointing the s

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Sovereign Multi Causality
1 stars

This indicator calculates a smoothed momentum oscillator from price and plots many offset momentum lines in a separate pane as a colour-graded heat map. Moving average type, smoothing periods, the number of plotted lines and the colour theme are adjustable. It

Indicator v4 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map Plot

VolumeSpikeTest

by ivansoft
1 stars

This indicator calculates and visualizes statistical volume thresholds across dynamic, time-based lookback windows. It converts multi-hour and multi-day periods into bar counts based on the active timeframe to compute rolling volume medians, simple moving aver

Indicator v5 Volume
Updated 1 year ago · None stated GitHub repository of VolumeSpikeTest

GBTC Tracker

by Allen1212
303 stars

GBTC Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for the GBTC asset directly on the main price chart. It plots green upward labels for buy orders and red downward labels for sell orders at specific historical date times

Indicator v4
Updated 2 years ago · None stated GitHub repository of GBTC Tracker

Test 010 Linearity

by ricardosantos79
261 stars

This experimental script calculates a custom linearity metric using rolling historical close price data stored in a fixed-size array. It computes a weighted sum of price differences relative to the oldest price held in the array buffer. The script plots the re

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Test 010 Linearity
106 stars

This intraday strategy enters positions based on an alignment of trend, momentum, and oscillator indicators. It triggers long entries when the Commodity Channel Index is above a positive threshold, a fast Relative Strength Index crosses above a slow RSI, price

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI + EMA with RSI Cross Strategy
99 stars

This indicator calculates a second-order Elliptic lowpass filter (IIR) with defined passband ripple and stopband attenuation. It applies digital signal processing techniques to smooth price data while attempting to maintain a sharp frequency cutoff. The result

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elliptic 2nd Order Filter

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