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

This indicator plots a Percentage Price Oscillator in a separate pane. It computes fast and slow compensated exponential moving averages of the chosen source, then expresses their difference as a percentage of the slow average. An EMA of that line forms the si

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Percentage Price Oscillator (PPO)
3 stars

The Price Action Candles indicator plots the current low price on the chart. This provides a basic visual reference line for price action traders. The plot appears directly on the price chart as an overlay. It helps identify potential support levels and curren

Indicator v5 Support & resistanceCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Financials

by regalouisei
2 stars

The Financials indicator displays a fundamental and technical comparison table on the price chart for up to five user-selected stock symbols. It uses fundamental financial data requests to calculate key valuation and financial health ratios, including Price-to

Indicator v5 Screeners & dashboardsMoving averages
Updated 8 months ago · None stated GitHub repository of Financials

PF TV golden 44 - OCA reduce

by pineforge-4pass
1 stars

This overlay strategy is a clock-timed validation probe for shared OCA reduce orders. When flat at 07:15 it enters one long contract. While long it places a short limit exit at 1.004 times average entry and a short stop at 0.996 times average entry, both using

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 44 - OCA reduce

Time Machine Pro

by morindok
1 stars

Time Machine Pro is an overlay drawing tool that reflects historical price between two user-selected price levels and two times. It measures green and red candle distances by sum, simple average, or volume-weighted average, then plots spirals or vertical lines

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Time Machine Pro

PERI Tracker

by Allen1212
303 stars

PERI Tracker overlays historical buy and sell transactions made by ARK Invest funds on the price chart for Perion Network Ltd. It plots labels at specific historical bar timestamps indicating transaction direction and the count of ARK ETFs participating on tha

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

Binance Liquidations

by hasnocool
106 stars

Binance Liquidations is a strategy and separate-pane indicator that estimates derivative volume activity by calculating the volume spread between Binance perps and Coinbase spot data. It applies Weighted Moving Averages and a SuperSmoother filter to the volume

Strategy v4 VolumeMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Binance Liquidations

Percentile

by mihakralj
99 stars

The Percentile indicator calculates and plots a custom percentile rank for a chosen price source over a historical lookback window. It gathers valid price points into an array, sorts the dataset, and applies linear interpolation to compute the target percentil

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Percentile
3 stars

This indicator plots a 20 period simple moving average of the closing price on the chart. The test_val input sets the number of last bars to show for the plot. It draws in a separate pane using price action principles and a moving average. No buy or sell signa

Indicator v5 Moving averagesCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Price Action Candles
2 stars

This indicator plots FINRA daily short sale volume as colored columns alongside a simple moving average in a separate pane. Columns display in a brighter red shade whenever short volume exceeds the moving average. Users can configure the moving average length

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of FINRA Daily Short Sale Volume
1 stars

This strategy is a validation probe that enters one long position and later closes it. It buys when the chart time is 08:15 and the position is flat, then closes that long at 12:15. Order size is twenty-five percent of equity, and each order pays a fixed cash

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 45 - commission sizing
1 stars

Time Machine is an overlay indicator that calculates historical price reflections using Fibonacci levels, SMA variants, Bollinger Bands, VWAP, and spiral spine methods. It plots symmetric price lines around dashed levels and dynamic indicator lines, plus area

Indicator v5 Support & resistanceMean reversion
Updated 7 weeks ago · None stated GitHub repository of Time Machine{Morindok}

PFE-tracker

by Allen1212
303 stars

PFE-tracker overlays historical buy and sell trades executed by ARK Invest for Pfizer (PFE) directly on the price chart. The indicator plots timestamped chart labels indicating transaction directions and the number of participating funds. Inputs allow users to

Indicator v4
Updated 2 years ago · None stated GitHub repository of PFE-tracker
106 stars

The Binary Options Strategy Template is a Pine Script v4 strategy that overlays the 14-period simple moving average on the price chart. It signals long entries when the close price is above the SMA and short entries when below. Positions close automatically af

Strategy v4 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Binary Options Strategy Template
99 stars

The PFE indicator calculates Polarized Fractal Efficiency using fractal geometry. It compares the straight-line price distance over the period to the total fractal path length of bar-to-bar movements, producing a signed efficiency ratio smoothed by EMA. The re

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of PFE: Polarized Fractal Efficiency
3 stars

Price Action Candles is a Pine Script v5 indicator that keeps a running integer and draws a text label on every bar. Each bar adds one to the previous count, then places a new label at that bar's index and close showing the number. There are no user inputs, no

Indicator v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

PF TV golden 46 - risk gates

by pineforge-4pass
1 stars

This strategy probes TradingView risk gates on a 15-minute crypto chart. It allows only long entries, caps position size at two contracts, and limits filled orders to three per day. It submits fixed one-unit longs at 00:15, 00:30 and 00:45 UTC, a short at 01:0

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 46 - risk gates

TMoon Mirror

by morindok
1 stars

TMoon Mirror plots a dynamic moving average line on the price chart that decays in length according to user-defined time ranges. It mirrors this line around a central level and plots top, middle, and bottom horizontal lines for support and resistance. An optio

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of TMoon Mirror

PGEN-tracker

by Allen1212
303 stars

PGEN-tracker is an overlay indicator that marks recorded ARK Invest sell activity on the PGEN price chart. When the ETF input is set to ALL, it places red downward labels above bars on five dates in 2020, each reading Sell and X1. The input offers no other ETF

Indicator v4
Updated 2 years ago · None stated GitHub repository of PGEN-tracker
106 stars

This strategy calculates custom moving averages weighted by binomial coefficients. It plots a fast and a slow binomial moving average directly on the price chart, filling the space between them according to the trend direction. A long position enters when the

Strategy v4 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Binomial Moving Average
99 stars

The Pivot Points (Camarilla) indicator calculates eight pivot levels based on the previous bar's high, low, and close. It derives the central pivot point PP and resistance (R1-R4) and support (S1-S4) levels using the Camarilla equation. Users select a pivot ca

Indicator v6 Support & resistance Repaints
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pivot Points (Camarilla)
3 stars

Price Action Candles is an overlay indicator that plots the closing price on the main price chart. It uses a single plot of the close series and adds no calculations, filters, or trading signals. There are no user inputs, so nothing changes colour, style, or c

Indicator v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Flare

by regalouisei
2 stars

The Flare indicator plots connected linefills on the price chart to create a customizable visual flare shape. It takes user inputs for flare width, bars to look back from the close, power factor, and step size to control the shape and transitions. The script i

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Flare
1 stars

This strategy isolates request.security with gaps on and lookahead off. On a 15-minute chart it requests the 60-minute close and stores the last non-empty higher-timeframe close. A roll up is a newly returned close above that stored value, and a roll down is o

Strategy v6 Trend
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 47 - security gaps on

Torus

by morindok
1 stars

A drawing tool that renders a wireframe torus on the price chart. The user picks two points by time and price, and the script scales a fixed set of precomputed outline coordinates into the area between them, drawing each ring as a blue polyline once on the las

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Torus

PHR-tracker

by Allen1212
303 stars

PHR-tracker overlays historical ARK Invest purchases and sales of PHR on the price chart as dated labels. Green labels below bars mark buys and red labels above bars mark sells, with text showing the action and how many ARK ETFs traded that day. An ETF input s

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

Binomial Strategy

by hasnocool
106 stars

Binomial Strategy calculates a binomial cumulative distribution of recent up bars from a longer-run up probability and smooths it with two exponential moving averages. It plots the distribution and both averages in a separate pane and colors bars according to

Strategy v4 Oscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Binomial Strategy

Pivot Points (Classic)

by mihakralj
99 stars

This indicator calculates classic floor trader pivot points using high, low, and close prices from a higher timeframe. It determines the central pivot point along with three resistance levels (R1, R2, R3) and three support levels (S1, S2, S3). Calculated value

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pivot Points (Classic)
3 stars

Price Action Candles is an unfinished strategy script written in Pine Script v5. It plots the closing price line in a separate pane below the chart. The script does not contain any trading signals, order placement logic, exit rules, or user-configurable input

Strategy v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Gann Box (Zeiierman)

by regalouisei
2 stars

The Gann Box (Zeiierman) indicator calculates and overlays Gann Box and optional Gann Fan structures directly on the main price chart. It projects horizontal Fibonacci level bounds and dynamic angle lines based on significant high and low points to highlight p

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Gann Box (Zeiierman)

PF TV Golden 48 - Time Filter

by pineforge-4pass
1 stars

This validation strategy executes trades based strictly on specific hour and minute timestamps rather than price indicators. It triggers a fixed long entry when the bar time hits 00:15 and closes the open long position at 00:45. Overlaying directly on the pric

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV Golden 48 - Time Filter

PINS-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell transactions directly onto the price chart for Pinterest (PINS). It plots visual labels at precise execution timestamps, indicating buy or sell decisions along with the count of participating funds. Us

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

BlackSwan Strategy

by hasnocool
106 stars

This strategy detects large single-candle body expansions exceeding approximately 1.91% of price to enter momentum breakouts. It enters long positions on large bullish candles and short positions on large bearish candles. Positions are closed when the 144-peri

Strategy v4 BreakoutMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BlackSwan Strategy

Pivot Points (DeMark)

by mihakralj
99 stars

This indicator plots Tom DeMark pivot levels on the price chart. It reads the prior completed bar of a selected daily, weekly, or monthly timeframe and applies a conditional formula that weights the high, low, and close according to whether that bar closed bel

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pivot Points (DeMark)
3 stars

Price Action Candles is an overlay indicator that marks simple swing patterns on the price chart. A green triangle appears below a bar when a low two bars earlier is below the lows around it and the next low is higher. A red triangle appears above a bar when t

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

Golden Pocket

by regalouisei
2 stars

Golden Pocket indicator identifies potential reversal zones by drawing Fibonacci retracement lines and boxes between pivot highs and lows on the price chart. It applies moving average filters to confirm trend direction for both bull and bear setups. Users can

Indicator v5 Support & resistanceMoving averages
Updated 8 months ago · None stated GitHub repository of Golden Pocket

PF TV Golden 49 - NA NZ History

by pineforge-4pass
1 stars

This validation strategy evaluates warmup behavior and historical references using missing value functions like nz() and fixnan(). It calculates raw price changes, substitutes missing values, and computes an eight-period simple moving average score. The strate

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV Golden 49 - NA NZ History

Two Tangent Circles

by morindok
1 stars

The script plots two closed polylines on the price chart representing tangent circles. It takes two user-defined points defined by time and price inputs to calculate the direction and distance between them. Centers of two circles with radii one-quarter of thos

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Two Tangent Circles

PRLB-tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest transactions for Proto Labs (PRLB) directly on the price chart. It hardcodes past purchase and sale records based on historical ETF filings and plots green or red labels at specific bar timestamps. The labels ind

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

Bolinger strategy

by hasnocool
106 stars

This long-only strategy combines a five-bar RSI with Bollinger percent B and bandwidth on the current close and the close three bars earlier. It opens a long when a local low around that earlier bar falls inside a bar-count window and current percent B stays i

Strategy v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bolinger strategy
99 stars

This indicator plots extended traditional floor-trader pivot levels on the price chart. It takes the prior high, low, and close of a selected daily, weekly, or monthly timeframe and calculates the central pivot plus five resistance levels and five support leve

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Pivot Points (Extended)
3 stars

This indicator calculates a 30-period and a 50-period simple moving average of the closing price and plots both lines in a separate pane. It fills the space between them teal when the shorter average is above the longer average and red when it is below. There

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Heatmap Volume [xdecow]

by regalouisei
2 stars

This indicator classifies volume by how many standard deviations it sits from a moving average and colors that classification as a heatmap in a separate pane. Extra-high, high, medium, normal, and low bands use multiplier thresholds. Users can color volume bar

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of Heatmap Volume [xdecow]
1 stars

A test strategy from a reference corpus that exercises typed boolean matrices. It keeps a 24 by 7 grid of hour and weekday cells, marks a cell when RSI is above 60, and transposes the grid twice to check the matrix functions. It goes long when at least six cel

Strategy v6 Oscillators & momentumSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Typed Matrix Probe 01 Bool Regime Mask

Universal System

by morindok
1 stars

Universal System plots geometric logarithmic spirals based on the golden ratio directly on the price chart. The indicator gathers price range data between two user-defined anchor timestamps, accumulating bullish and bearish price movement sums. On the final ba

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Universal System

PRME-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell activity for PRME as labels on the price chart. Green labels below bars mark buys and red labels above bars mark sells, each dated with a timestamp and showing an ETF count such as X1. The ETF input switc

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

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