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

Neglected Volume by DGT

by regalouisei
2 stars

This indicator calculates relative volume metrics and combines them with On Balance Volume (OBV) momentum and price-OBV correlation in a separate pane. It evaluates volume strength against simple moving averages and standard deviation thresholds, while offerin

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Neglected Volume by DGT
1 stars

A long-only strategy that plots the prior day's high, low and midpoint on the price chart. It enters long when the close crosses above the prior daily high, provided the prior day's range met a minimum percentage. It closes when price falls below the prior dai

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge Rangefinder Daily Reference

SCHW-tracker

by Allen1212
303 stars

SCHW-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of Charles Schwab stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text showing the direction

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

This strategy constructs a synthetic Bitcoin price feed by averaging open, high, low, and close data across seven cryptocurrency exchanges. It derives a composite price value using quadratic averaging and plots a volatility envelope around its simple moving av

Strategy v4 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Candle Correlation Strategy
99 stars

Regression Channels calculates a linear regression trend line and standard deviation channel bands over a specified lookback period. It computes standard deviations from the residuals to form symmetrical upper and lower channel bands around the central regress

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Regression Channels (REGCHANNEL)
3 stars

RT Candle Signals LCBigMoves recolors candlestick bars directly on the chart to emphasize specific price action patterns. It identifies and highlights opening session bars based on a configurable time window, long-wick rejection candles determined by wick-to-b

Indicator v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of RT Candle Signals LCBigMoves
1 stars

This strategy is a request.security parity probe. On a 15-minute chart it reads the 60-minute close with lookahead off and opens one long when that higher-timeframe close changes from the prior bar. It closes the position on the following bar and forces a flat

Strategy v6
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge RS parity 15m to 60m close

SEDG-tracker

by Allen1212
303 stars

This indicator plots labels on the SEDG price chart to mark ARK Invest buy and sell trades from November 2019 onward. Labels indicate share volume changes at each trade date. The main input setting selects an ETF type to filter which trades are visualized. Lab

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of SEDG-tracker
106 stars

This strategy plots the RSI of Bitfinex Bitcoin long and short interest in a separate pane and colors a zero line from changes in those series versus short exponential moving averages. It opens a long when the long-interest RSI crosses above the short-interest

Strategy v4 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Sentiment analysis RSI
99 stars

Relative Absolute Error (RAE) measures the accuracy of a moving average model against an underlying price series. It compares the sum of absolute forecast errors between the source and its Exponential Moving Average to the baseline absolute errors relative to

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Absolute Error (RAE)

S/R Average

by g-moe
3 stars

This indicator detects confirmed pivot highs and lows using a user-set pivot length and stores those prices in rolling arrays. It optionally draws extended horizontal support and resistance lines for each stored level and plots the average of the stored resist

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of S/R Average

Numbers Renko

by regalouisei
2 stars

This indicator calculates and overlays numerical volume or time metrics directly on chart bars, primarily tailored for Renko style analysis. It compares current values against an EMA or SMA baseline to grade activity across multiple visual tiers and color scal

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of Numbers Renko
1 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long and closes any short when the fast average crosses above the slow average, and enters short and closes any long when the fast average crosses below the slow ave

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge Switchback All-In Reversal

SEER-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of SEER on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with a same-day ETF count such as X1. An input switches between all recorde

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

This strategy plots a moving average with a range band on the price chart and places stop entries when the source crosses the upper or lower band. Long and short orders are cancelled if price returns through the average or reaches the stored stop price. Option

Strategy v4 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Built-in Kelly ratio for position sizing

Relative Squared Error

by mihakralj
99 stars

This indicator calculates Relative Squared Error between a selected price source and an exponential moving average of that source. It divides the rolling sum of squared differences by the rolling sum of squared deviations from the source mean, using circular b

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Squared Error

ScarAlgo v1

by g-moe
3 stars

ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os

Strategy v5 TrendSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of ScarAlgo v1
2 stars

This indicator generates geometric circular boundary plots anchored to the right edge of the chart. It calculates upper and lower arc curves across a set bar radius using circle equations and the distance to the final bar index. The indicator plots both bounds

Indicator v5 Repaints
Updated 8 months ago · None stated GitHub repository of Open Interest Chart Luxalgo
1 stars

A long-only strategy that enters when a 19-period EMA crosses above a 58-period EMA. Half of the position is closed by a market order once price reaches an ATR multiple above the average entry. The rest is closed when the EMAs cross back down or when the close

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge Tranche Partial Market Close

SGFY-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of SGFY on the price chart. It draws green buy labels below bars and red sell labels above bars at fixed dates, with each label showing a single-ETF count. An ETF input switches between all

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

Bulle de bollinger

by hasnocool
106 stars

Bulle de bollinger is a price-chart strategy that plots a 20-period simple moving average and two-standard-deviation Bollinger bands, with a fill between the bands. It enters long when the prior bar's open and close are below the lower band, and short when the

Strategy v4 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of Bulle de bollinger
99 stars

This indicator calculates the Relative Strength Index from a chosen price source using Wilder's smoothing of average gains and losses. It plots a single RSI line in a separate pane. The length sets the lookback period and the source selects the series used in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Strength Index (RSI)

This strategy draws up to three session range boxes and optional backgrounds on the price chart. It records each session high and low, then looks for a breakout during a later trading window after a set number of candles close outside the range. Entries can be

Strategy v5 Sessions & timeBreakout
Updated 5 months ago · None stated GitHub repository of Session Breakout Box Strategy

PineForge Vector Stop Breakout

by pineforge-4pass
1 stars

A long-only breakout strategy that waits for volatility contraction, defined as ATR falling below a set fraction of its own moving average. While that holds, it arms a buy stop just above the highest high of the prior 28 bars, plus a small ATR buffer, and canc

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge Vector Stop Breakout

SGL-tracker

by Allen1212
303 stars

SGL-tracker plots historical ARK Invest transactions for SGL directly on the price chart. It marks historical buy and sell actions using chart labels positioned at specific trade timestamps, detailing the action and the number of participating ARK ETFs. Users

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

Bulle de Bollinger

by hasnocool
106 stars

The script plots the SMA middle band along with Bollinger upper and lower bands with two standard deviations, filling the area between them on the price chart. It signals long entries on a close crossing above the lower band after the previous bar was below it

Strategy v4 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Bulle de Bollinger
99 stars

This indicator plots Relative Strength Xtra in a separate pane. It splits the source into positive and negative bar-to-bar changes, then smooths each side with an integrated Jurik-style moving average before combining them into an RSX momentum reading. Length

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Strength Xtra (RSX)

This indicator tracks key price levels and range boundaries across user-defined trading sessions on the main price chart. It calculates session extremes, including highest high, lowest low, session midpoint, and highest or lowest candle body levels during a sp

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy
1 stars

This strategy overlays a fast and a slow exponential moving average on the price chart and treats their crossovers as entries. It opens a long position when the fast average crosses above the slow average and, when shorts are allowed, opens a short on the oppo

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Aurora Market Bracket

SI-tracker

by Allen1212
303 stars

SI-tracker is an overlay indicator that places historical ARK Invest purchase marks for this stock under the price bars. Each mark is a green label at a fixed calendar date and shows a buy count rather than a calculated signal. The ETF input switches among ALL

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

Buurmans Tutorial

by hasnocool
106 stars

This educational strategy executes trades based on specific days of the week, entering long on a chosen weekday (Monday, Tuesday, or Wednesday) and closing or reversing to short on Friday. It plots dynamic stop loss and take profit price levels directly on the

Strategy v4 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Buurmans Tutorial
99 stars

This indicator plots the Relative Vigor Index and a four-bar symmetrically weighted signal line in a separate pane. It compares the close-open range with the high-low range using fixed four-bar SWMA weights, then divides a simple moving average of the numerato

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Vigor Index (RVGI)

Session High Low Levels with Session Breakout Box Strategy tracks customizable trading sessions to calculate and display key price levels directly on the main chart overlay. It identifies the highest high, lowest low, highest candle body, lowest candle body, a

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session High Low Levels with Session Breakout Box Strategy
1 stars

This session-based strategy triggers long entries at the start of the New York trading session when trend and momentum conditions align. It calculates a 38-period Exponential Moving Average and a 14-period RSI. A long position is taken at session open if the c

Strategy v6 Sessions & timeTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Borough New York Session

SIE-tracker

by Allen1212
303 stars

SIE-tracker plots historical ARK Invest transaction data for SIE directly onto the price chart. It uses chart labels positioned above or below price bars to mark specific dates when ARK funds bought or sold shares, showing buy or sell designations alongside tr

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

This strategy holds a long position between user-defined start and end dates. It enters long with the full equity while the chart time is inside that window and closes the position when time falls outside it. Day, month, and year inputs set both boundaries. It

Strategy v4
Updated 2 years ago · GPL-3.0 GitHub repository of Buy and hold calculator

Rolling Sum

by mihakralj
99 stars

This indicator calculates and plots a rolling sum of an input price series over a specified lookback period in a separate pane. It implements the Kahan-Babuška algorithm to maintain numerical precision and mitigate floating-point errors across rolling addition

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Rolling Sum

Session Wicks

by g-moe
3 stars

This strategy executes long and short trades on the price chart by combining multi-timeframe smoothed Heikin-Ashi trends, higher-timeframe Hull Moving Average variations, and an ATR-based trailing stop. Users can adjust timeframes, smoothing lengths, Hull form

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Session Wicks

Pivot and Price Discovery

by regalouisei
2 stars

This indicator overlays a population-sampled linear regression channel with standard deviation bounds onto the price chart to evaluate price distribution and pivot momentum. It calculates statistical moments including mean, variance, skewness, and kurtosis to

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Pivot and Price Discovery
1 stars

The Cadence Matrix Pairing strategy calculates price direction changes and volume confirmation across short, medium, and long horizons using close comparisons and simple moving averages of volume. It assembles these binary votes into a transposed matrix and ta

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Cadence Matrix Pairing

SILC-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest sell markers for SILC on the price chart. When the ETF input is set to ALL, it places red labels above the bars dated 15 and 16 January 2020, each showing a single sell count. The only setting selects the ETF view,

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

This strategy searches for long buy-and-hold entries on the price chart. It calculates a user-length EMA and a fixed 12/26 MACD, then opens a long position when price is within the maximum EMA distance, that distance is not shrinking, MACD is at or below zero,

Strategy v4 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Buy and Hold entry finder Strategy
99 stars

This indicator measures the root mean squared error between a chosen price source and an exponential moving average of that same source. It averages squared differences over a user-set lookback with a circular buffer, then plots the square root as a red area i

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Root Mean Squared Error (RMSE)

Session Wicks

by g-moe
3 stars

This strategy calculates smoothed Heikin-Ashi candles alongside a moving average of the Relative Strength Index to enter trend reversals. It triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entr

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Session Wicks

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