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

This indicator plots pivot trendlines on the price chart and scans for divergences using RSI. It combines multiple moving averages, stochastic RSI indicators, and multi-timeframe stochastic RSI to generate buy and sell signals based on confluence. Entries foll

Indicator v5 TrendDivergence Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner
2 stars

This overlay indicator looks for swing highs and lows and draws D-shaped patterns around them on the price chart. Historical patterns can be shown as arcs, midlines, or both, with optional color fill and a line connecting the swing level. A breakout flag, tren

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of D-Shape Breakout Signals [LuxAlgo]
1 stars

PF TA Isolate 10 - Typed-Matrix UTC is a Pine Script v6 strategy designed for engine parity validation. It populates a 24-by-7 boolean matrix tracking high-RSI hours and days using an explicit UTC timezone specification. The matrix is transposed twice to check

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF TA Isolate 10 - Typed-Matrix UTC

ONE-tracker

by Allen1212
303 stars

ONE-tracker is an overlay indicator that marks ARK Invest purchases of the stock ONE on the price chart. It places green buy labels below bars on fixed calendar dates, each showing a buy mark and a count of X1. An ETF input is present but only offers ALL, so t

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

BB9 MA200 Strategy

by hasnocool
106 stars

A trend-following strategy combining Bollinger Bands with a long-term moving average filter. It plots a 200-period EMA along with standard 21-period Bollinger Bands directly on the price chart. Long entries trigger when both the upper and lower Bollinger Bands

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BB9 MA200 Strategy

NW - Nadaraya-Watson Kernel Regression is an indicator that applies a non-repainting Gaussian kernel regression filter to smooth price data. For each bar, it calculates a normalized weighted average of historical values using a Gaussian weighting function, ope

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of NW - Nadaraya-Watson Kernel Regression

This strategy draws on the price chart and manages long and short entries around pivot trendlines. It filters signals with three configurable moving averages, Stochastic RSI, a higher-timeframe Stochastic RSI, and optional RSI divergence. A session window can

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner Strategy
2 stars

Daily Chess Puzzles [LuxAlgo] renders interactive chess puzzles directly on the price chart using imported historical puzzle dataset libraries. The script parses chess notation to render pieces and a board on the layout. Users can type in move answers using th

Indicator v5
Updated 8 months ago · None stated GitHub repository of Daily Chess Puzzles [LuxAlgo]
1 stars

This validation strategy calculates a 14-period Relative Strength Index (RSI) and maintains a persistent 24x7 boolean matrix tracking whether RSI crossed above 60 for specific hour and day combinations. Long positions are entered when at least six cells in the

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF TA Isolate 11 - Mask Only No Transpose
1 stars

This indicator calculates a simple moving average (SMA) alongside a zero-centered symmetrized price series and its moving average. It uses Average True Range (ATR) to create a dynamic price offset, plotting a stepline translated moving average along with an up

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Symmetrized MA & Dynamic Offset

ONEM-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest buy and sell events for ONEM on the price chart. It places green labels below bars for buys and red labels above bars for sells, each marked with an X1 count, using fixed calendar dates rather than calculated signals.

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

This strategy plots a volume-weighted average price, Bollinger Bands built on that VWAP, a 200-period simple moving average, and Fibonacci pivot levels in a separate pane. It opens a long position when VWAP crosses above the band basis and the close is at or a

Strategy v4 Volatility & bandsSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of BBofVWAP with entry at Pivot Point

One Euro Filter

by mihakralj
99 stars

This indicator plots an adaptive One Euro low-pass filter of a chosen price source on the chart. When movement is slow it uses a lower cutoff for heavier smoothing; when the smoothed derivative rises it raises the cutoff to reduce lag. Minimum cutoff, the spee

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of One Euro Filter

This strategy combines triple moving average trend filtering with Stochastic RSI levels and optional RSI divergence signals to generate long and short trade entries. It uses Average True Range multipliers to define dynamic take profit and stop loss levels for

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner Strategy
1 stars

A test strategy from a reference corpus that evaluates RSI, a MACD histogram and a Bollinger middle line on 1-hour data requested from a 15-minute chart, with lookahead off. It goes long one unit when hourly RSI is above 55, the hourly histogram is positive an

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF TA Recompute Probe 01 MTF RSI MACD BB

Tagnet Circles

by morindok
1 stars

The Tagnet Circles indicator plots geometric time-price circle projections directly on the price chart. Users interactively select two time anchor points to establish a high-low price and time window. The script draws a central main circle with dashed upper an

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

ONVO-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest trade marks for Organovo Holdings on the price chart. When the ETF input is set to ALL, it places red labels above bars on fixed calendar dates, each reading Sell and X1. The ETF setting switches among ARKG, ARKK,

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

BBPBΔ(OBV-PVT)BB

by hasnocool
106 stars

This strategy calculates the normalized rate of change between On-Balance Volume (OBV) and Price Volume Trend (PVT) indicators. It applies Bollinger Bands to this volume metric along with a Hodrick-Prescott filter array for time series decomposition. Displayed

Strategy v4 VolumeVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BBPBΔ(OBV-PVT)BB

Parabolic SAR

by mihakralj
99 stars

Parabolic SAR plots dots on the price chart to indicate trend direction and potential reversals. It calculates a trailing stop level that starts at the extreme price of the prior bar and adjusts using an acceleration factor that increases with each new extreme

Indicator v6 TrendSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Parabolic SAR
3 stars

Premium Dashboard evaluates multiple technical indicators, including moving averages, oscillators, and price action metrics, displaying a consolidated confluence table on the main chart pane. It calculates bullish and bearish alignment across up to ten customi

Indicator v5 Screeners & dashboardsMoving averages
Updated 5 months ago · None stated GitHub repository of Premium Dashboard
2 stars

This indicator overlays a dividend calendar on the price chart for a list of stocks. It schedules expected dividend payments by ex-date or pay-date, optionally estimates future payouts, and can show dividend growth over a chosen number of years. Users pick the

Indicator v5 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Dividend Calendar (Zeiierman)

PF TV golden 40 - bracket TP/SL

by pineforge-4pass
1 stars

This validation strategy executes on the price chart to test bracket order execution. It enters a single long position at 00:15 whenever flat, using a fixed quantity of one contract. Upon entry, it immediately places a bracket exit order with a 0.4% take-profi

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 40 - bracket TP/SL

OPEN Tracker

by Allen1212
303 stars

OPEN Tracker visualizes historical buy and sell transactions executed by ARK Invest for Opendoor Technologies (OPEN). It plots color-coded labels directly above or below price bars on specific trade dates, indicating the transaction direction and how many ARK

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

BB策略

by hasnocool
106 stars

BB策略 is an overlay strategy combining standard Bollinger Bands with candlestick pattern recognition logic, including engulfing patterns, dojis, and long upper shadows. It calculates an SMA basis line and standard deviation bands, plotting them directly on the

Strategy v4 Volatility & bandsCandlestick patterns
Updated 2 years ago · GPL-3.0 GitHub repository of BB策略
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

The strategy enters a long position of two lots at 1:15 on the hour when no position is open. It then places a take-profit order for half the position at 0.3 percent above the average entry price and a stop-loss order for the remaining half at 0.6 percent belo

Strategy v6 Sessions & timeScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 41 - partial qty percent
1 stars

Time Analyzer {Morindok} calculates pivot highs and lows over a user-defined length to establish structural market baselines. It supports either an alternating ZigZag mode or independent high and low swing tracking. Based on these anchor points, the script con

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Time Analyzer {Morindok}

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

PF TV Golden 42 Close Immediate

by pineforge-4pass
1 stars

A test strategy from a reference corpus that compares a normal market close with an immediate close. It buys one unit at 02:15 and closes at 03:15 in the normal way, then buys again at 10:15 and closes at 11:15 with the immediate option. Entries depend only on

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV Golden 42 Close Immediate

Time Machine

by morindok
1 stars

Time Machine is an indicator that plots symmetric candles mirrored across a user-selected price level within a time range set by Point 1 and Point 2. It draws a horizontal yellow line at the selected level extending from t1 to t2 on the price chart. The script

Indicator v5 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Time Machine

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

This strategy isolates global pending-order cancellation and a full position close on the price chart. At 04:15 it places a long limit at 80 percent of close and a short limit at 120 percent of close so they are unlikely to fill. At 04:30 it cancels every pend

Strategy v6
Updated 6 days ago · Apache-2.0 GitHub repository of PF TV golden 43 - cancel all close all

Time Machine

by morindok
1 stars

Time Machine plots horizontal lines on the price chart at user-defined start and end price levels. It supports two calculation bases: SMA for average price or HH/LL for high-low ranges. The time range is set by start and end timestamps, with options to auto-de

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Time Machine

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

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