Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

8,340 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
8,340 scripts
99 stars

This indicator plots an extended Parabolic SAR on the price chart. It tracks a stop-and-reverse level with separate acceleration-factor start, step, and maximum settings for long and short modes. The start value can force an initial long or short direction, or

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Parabolic SAR Extended (SAREXT)
3 stars

Price Action Candles is a minimal placeholder indicator written in Pine Script. It plots the closing price of the current symbol as a simple line in a separate indicator pane. The script contains no input parameters, entry or exit signals, trade alerts, or com

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

Dynamic Linear Regression Channels calculates and plots an auto-adjusting linear regression line alongside upper and lower standard deviation bands on the price chart. Unlike fixed-length regression tools, it dynamically expands its calculation window bar-by-b

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Dynamic Linear Regression Channels
1 stars

This strategy trades long only on the price chart. It enters when a fast exponential moving average crosses above a slower one and sizes the next order from the last closed trade: the recovery quantity after a negative result and the full quantity otherwise. I

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Ledger Outcome Throttle

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

PAGS-tracker

by Allen1212
303 stars

This overlay indicator visualizes historical ARK Invest transactions for PagSeguro Digital on the main price chart. It plots green labels below price bars for purchases and red labels above bars for sales at specific historical timestamps, indicating transacti

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

The Bear & Bull Zone Signal Strategy is a trend-momentum strategy that calculates an RSI based on Heikin-Ashi closes, smoothed with fast and slow double EMAs to identify bullish and bearish zones. It also computes a Stochastic oscillator applied to RSI values.

Strategy v4 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Bear & Bull Zone Signal Strategy
3 stars

The Price Action Candles script is an indicator that calculates and plots a custom On-Balance Volume (OBV) in a separate pane. It uses a rolling period to compute signed volume accumulation based on close price changes and volume data. The primary setting adju

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

The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Meridian DMI Regime

PCAR-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest activity in PACCAR on the price chart. It draws dated labels under bars for recorded buy days, with text showing Buy and a count of how many selected ETFs traded the stock that day. An ETF input switches betwe

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

Best Crypto DEMA

by hasnocool
106 stars

Best Crypto DEMA is a long-only trend-following strategy that generates trading signals based on Double Exponential Moving Average crossovers. It calculates fast and slow DEMAs across a user-defined timeframe resolution, with an option to derive prices from He

Strategy v4 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Best Crypto DEMA
99 stars

This indicator calculates the percentage change of a chosen price source over a specified historical lookback period. It measures momentum by comparing current price values directly against historical values using direct history referencing. The output is plot

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

Price Action Candles draws a grid of dotted horizontal lines on the price chart around a user-chosen starting price. On the last bar it places one line at that anchor and equal numbers of lines above and below it, spaced by a tick or pip distance. Settings cha

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

Fair value bands

by regalouisei
2 stars

This overlay indicator plots a fair value basis on the price chart and surrounds it with threshold and deviation bands. The basis can be an SMA, EMA, HMA, RMA, WMA, VWMA, median, or a VWAP anchored to a chosen timeframe, using a selectable price source and len

Indicator v5 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Fair value bands

PineForge — Mosaic Map Regime

by pineforge-4pass
1 stars

PineForge — Mosaic Map Regime is a trend-following strategy that dynamically scales trading signals using volatility regimes. It calculates an Exponential Moving Average and ATR, using a map to assign risk weights based on whether ATR percentage exceeds an exp

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Mosaic Map Regime

PDD Tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds for Pinduoduo (PDD) directly on the price chart. It uses historical trade records to render color-coded labels on corresponding transaction dates. Green labels positioned be

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

Big Bar Strategy

by hasnocool
106 stars

Big Bar Strategy identifies unusually large candles relative to a moving average of recent bar body sizes. It executes contrarian trades by opening long positions following a large bearish bar and short positions after a large bullish bar, with an optional con

Strategy v4 Mean reversionVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Big Bar Strategy
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

PineForge — Orbit MTF Trend

by pineforge-4pass
1 stars

Orbit MTF Trend is a multi-timeframe strategy that plots higher-timeframe and local exponential moving averages on the price chart. It generates long entries on local EMA crossover above the higher EMA and closes positions on the reverse crossover. Risk manage

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Orbit MTF Trend

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

PineForge — Prism Matrix Vote

by pineforge-4pass
1 stars

The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Prism Matrix Vote

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

This strategy enters one long position when a fast exponential moving average crosses above a slow one. While the trade is open, it keeps an ATR stop and target under the same exit identifier. For the first revision hold bars those distances stay wide; afterwa

Strategy v6 Moving averagesVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Revision Exit Replacement

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

PineForge — Rivet Calc Fill

by pineforge-4pass
1 stars

This strategy identifies bullish trends using a fast EMA crossing above a slow EMA to enter long positions when no trade is open. Once entered it attaches a stop loss and limit order using ATR multiplied by the input values of 1.7 and 2.2 respectively. The fas

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Rivet Calc Fill

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)

PineForge — Sextant CCI HMA

by pineforge-4pass
1 stars

PineForge — Sextant CCI HMA is a trend-following momentum strategy that combines the Commodity Channel Index with a Hull Moving Average filter. The strategy opens long positions when the CCI crosses above a specified entry level, provided the HMA is rising and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Sextant CCI HMA

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

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