Synced with GitHub · updated today

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

Stochastic

by hasnocool
106 stars

This strategy combines a smoothed stochastic oscillator with three exponential moving averages. It opens a long position of 1000 units when the stochastic K line crosses above D and the 5-period and 15-period EMAs both cross above the 50-period EMA. It closes

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Stochastic

TTM Trend

by mihakralj
99 stars

TTM Trend plots an exponential moving average of a chosen source on the price chart and colors the line by the direction of its one-bar change. A positive change is green, a negative change is red, and an unchanged value is gray. Optional bands scale with the

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of TTM Trend

MyVIXFIX

by g-moe
3 stars

MyVIXFIX calculates the Williams Vix Fix as the percentage distance from the highest close over a lookback to the current low. It plots that reading as histogram columns in a separate pane. Columns turn red when the value reaches the upper Bollinger band or an

Indicator v5 Volatility & bands
Updated 5 months ago · None stated GitHub repository of MyVIXFIX

TREE-tracker

by Allen1212
303 stars

TREE-tracker visualizes historical buy and sell trades made by ARK Invest funds directly on the main price chart. It projects static historical transaction records across specific timestamps and plots labels below or above price bars to indicate transaction ac

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

This strategy demonstrates how to place and cancel pending stop orders with syntax formatted for MT4 and MT5 webhook bridges. It generates entries using a smoothed Stochastic oscillator crossover and crossunder. Stop orders are placed at a configurable tick di

Strategy v4 Oscillators & momentumSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of TradingView Alerts to MT4 MT5 example with cancelling pending orders

TTM Wave

by mihakralj
99 stars

This indicator plots six MACD histogram channels from exponential moving averages. Fast period is eight and the signal period equals each Fibonacci slow period: 34, 55, 89, 144, 233, and 377. Wave A shows short-term momentum, Wave B medium-term, and Wave C lon

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of TTM Wave
3 stars

This overlay indicator builds a volume profile from a chosen number of recent bars and splits the price range into rows. It draws a horizontal volume histogram on the price chart, highlights the point of control, and can optionally show a rolling point of cont

Indicator v5 VolumeSupport & resistance
Updated 5 months ago · None stated GitHub repository of myVolume Profile [LUX]

TRMB-tracker

by Allen1212
303 stars

The TRMB-tracker indicator plots labels directly on the TRMB stock price chart to mark ARK Invest buy and sell trades. It displays specific dates with "Buy X1" or "Sell X1" text in green and red colors. The input setting selects an ETF type from ARKK, ARKQ, AR

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of TRMB-tracker

Triple EMA Scalper

by hasnocool
106 stars

This strategy plots three moving averages on the price chart, although the calculations use simple moving averages despite the EMA title. It enters long when the fastest average crosses above the other two and short when it crosses below them, limited to the L

Strategy v4 Moving averagesScalping
Updated 2 years ago · GPL-3.0 GitHub repository of Triple EMA Scalper

Tukey's Biweight Loss

by mihakralj
99 stars

This indicator calculates the Tukey biweight loss between an actual series and a predicted series over a rolling window. Designed as a robust statistical error metric, it limits the influence of extreme outliers using a configurable threshold parameter. Values

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Tukey's Biweight Loss
3 stars

This indicator plots classic On Balance Volume in a separate pane. It accumulates volume according to the sign of each close change, then overlays a smoothing moving average. Users choose the average method among SMA, EMA, RMA, WMA, and VWMA, set its length, a

Indicator v5 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of On Balance Volume

TRU Tracker

by Allen1212
303 stars

TRU Tracker visualizes historical buy and sell trades executed by ARK Invest for TransUnion (TRU). It plots color-coded labels directly on the price chart at specific timestamps corresponding to reported transaction dates. Green labels indicate purchases, whil

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

XAG strategy 1h

by hasnocool
106 stars

This overlay strategy is aimed at silver and combines a length-based simple moving average with a MACD-style histogram. Inside a user-set date window it looks for bullish or bearish candles aligned with the average and a rising or falling histogram. One mode a

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of XAG strategy 1h
99 stars

TYPPRICE: Typical Price is a core technical indicator that calculates the typical price for each bar. Computed as the arithmetic average of the bar high, low, and close prices, it serves as a common benchmark and price input for complex indicators like the Com

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of TYPPRICE: Typical Price

PSAR

by g-moe
3 stars

This indicator plots the Parabolic SAR (PSAR) on the price chart combined with Relative Strength Index (RSI) momentum filters. It calculates SAR dots and triangle markers to display trend direction. When a PSAR trend reversal occurs alongside confirmation from

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of PSAR

TSEM-tracker

by Allen1212
303 stars

TSEM Tracker visualizes historical buy and sell transactions executed by ARK Invest for TSEM directly on the price chart. The script places color-coded labels below or above bars on specific dates corresponding to historical trade records, indicating buy or se

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

Ultimate Oscillator

by mihakralj
99 stars

This indicator calculates the Ultimate Oscillator from buying pressure and true range over three lookback windows. It weights the fast, medium, and slow averages, defaulting to periods of 7, 14, and 28 with weights of 4, 2, and 1, then plots the result on a 0

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ultimate Oscillator

QQE Glaz

by g-moe
3 stars

This indicator calculates a Quantitative Qualitative Estimation (QQE) variant and plots it in a separate pane. It computes an EMA-smoothed RSI alongside a double Wilder-smoothed ATR of that RSI. From these, it creates fast and slow trailing stop bands based on

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of QQE Glaz

TSM-tracker

by Allen1212
303 stars

TSM-tracker places historical ARK Invest purchase and sale markers for Taiwan Semiconductor on the price chart. It draws green buy labels below bars and red sell labels above bars, each tied to a calendar date and marked with a count of how many ARK ETFs trade

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

Velocity (VEL)

by mihakralj
99 stars

Velocity (VEL) measures the zero-lag rate of price change smoothed using a Jurik Moving Average (JMA) algorithm. It calculates the raw difference between the current price and the price from a specified lookback period, then applies adaptive JMA smoothing to r

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Velocity (VEL)

Range Filter

by g-moe
3 stars

Range Filter is a chart strategy that estimates a smoothed price range from absolute bar-to-bar changes using two exponential averages and a multiplier. It plots a filtered price line plus high and low target bands on the price chart, colors bars by filter dir

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Range Filter

TSP-tracker

by Allen1212
303 stars

This indicator marks recorded ARK Invest purchases and sales of the TSP stock on the price chart. It draws green buy labels below bars and red sell labels above bars on hardcoded historical dates, with text such as X1 or X2 for how many selected ETFs traded th

Indicator v4
Updated 2 years ago · None stated GitHub repository of TSP-tracker
99 stars

This indicator calculates Adam White's Vertical Horizontal Filter in a separate pane. It divides the close range over the lookback by the sum of absolute bar-to-bar close changes, so higher values indicate a more directional path and lower values a more rangin

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of VHF: Vertical Horizontal Filter

RSI Strategy

by g-moe
3 stars

The RSI Strategy calculates the Relative Strength Index with a user-defined length. It generates long entries on crossover above the oversold threshold and short entries on crossover below the overbought threshold. The strategy overlays signals directly on the

Strategy v5 Oscillators & momentumMean reversion
Updated 5 months ago · None stated GitHub repository of RSI Strategy

TTD-tracker

by Allen1212
303 stars

TTD-tracker visualizes historical buy and sell transactions made by ARK Invest ETFs in The Trade Desk stock. It plots colored labels directly onto the price chart at specific historical timestamps, indicating whether ARK funds accumulated or reduced positions

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

Vortex Indicator

by mihakralj
99 stars

This indicator calculates and plots the positive and negative Vortex Indicator lines, VI+ and VI-, in a separate pane alongside a neutral reference line at 1.0. It uses circular buffers and running sums to compute true range and directional vortex movement eff

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Vortex Indicator

RVOL++

by g-moe
3 stars

This indicator measures relative volume by comparing cumulative session volume against a historical average for the same time of day across previous days. Drawn in a separate pane, it renders a multi-color gradient area and stepline plot across four activity z

Indicator v5 VolumeSessions & time
Updated 5 months ago · None stated GitHub repository of RVOL++

TWTR-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest purchase and sale labels on the Twitter (TWTR) price chart. It places green buy labels below bars and red sell labels above bars on fixed calendar dates, with text showing the trade side and how many selected ARK E

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

VWAP Bands

by mihakralj
99 stars

This indicator plots a volume-weighted average price on the price chart and resets the calculation when the selected session changes. It builds first and second standard-deviation bands from a volume-weighted variance of the chosen source, which defaults to th

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of VWAP Bands

Sandbox Test

by g-moe
3 stars

This indicator plots a custom volume profile on the price chart. It divides the price range into rows and calculates volume distribution by summing bar volumes that fall within each price level over a lookback period. Horizontal bars represent volume at each l

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Sandbox Test

UCTT-Tracker

by Allen1212
303 stars

UCTT-Tracker is a chart overlay indicator that visualizes historical buy and sell transactions made by ARK Invest for Ultra Clean Holdings Inc. (UCTT). It plots labels directly on the price chart on specific trade dates, displaying trade direction and the coun

Indicator v4
Updated 2 years ago · None stated GitHub repository of UCTT-Tracker
99 stars

This indicator calculates a volume-weighted average price from a chosen source and the chart volume, then plots upper and lower bands at a chosen number of standard deviations. Cumulative price-volume sums reset when the selected session interval changes, or o

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of VWAP with Standard Deviation Bands
3 stars

This overlay indicator plots ATR-based trigger, target and Fibonacci levels around a prior close taken from a higher timeframe chosen by the trading type. Day, multiday, swing, position and long-term modes map to daily through yearly data. Optional CALL and PU

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Saty ATR Levels + CALL/PUT

UPS Tracker

by Allen1212
303 stars

UPS Tracker visualizes historical buy and sell transactions made by ARK Invest for United Parcel Service on the main price chart. The indicator plots labels on historical bar dates to indicate transaction events and the count of participating ARK ETFs on speci

Indicator v4
Updated 2 years ago · None stated GitHub repository of UPS Tracker
99 stars

This indicator denoises a selected price source with an a trous, or stationary, Haar wavelet. It decomposes the series into an approximation and detail coefficients across one to eight levels, estimates noise from the mean absolute level-one details, and soft-

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Wavelet Denoising Filter (WAVELET)
3 stars

Tracks local swing highs and lows to determine market structure and current market bias. It draws horizontal price lines required to break structure, labels structural reversals or breaks, and highlights Buy The Dip and Sell The Rally setup points. Settings al

Indicator v5 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of SCL True Market Structure

URGN-tracker

by Allen1212
303 stars

URGN-tracker is an overlay indicator that visualizes historical transactions executed by ARK Invest for UroGen Pharma (URGN). It places color-coded labels directly on the price chart at specific historical dates, indicating whether ARK bought or sold shares al

Indicator v4
Updated 2 years ago · None stated GitHub repository of URGN-tracker
99 stars

This indicator calculates and plots the Weighted Close Price (WCLPRICE), a standard price transform compatible with TA-Lib and equivalent to HLCC4. It computes the value by summing the high, the low, and twice the close price, then dividing the total by four t

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of WCLPRICE: Weighted Close Price

SHORT eMACD

by g-moe
3 stars

SHORT eMACD is a short-only strategy that evaluates bearish momentum using MACD crossunders, exponential moving averages (EMA), and consecutive candle filters. It offers five configurable entry modes combining MACD signals and custom EMA candle logic. Users ca

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of SHORT eMACD

VEEV Tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions made by ARK Invest funds for Veeva Systems (VEEV) directly on the price chart. It utilizes static trade records to display green labels below price bars for buy events and red labels above bars for sell

Indicator v4
Updated 2 years ago · None stated GitHub repository of VEEV Tracker
99 stars

This indicator calculates the Cumulative Distribution Function (CDF) of the Weibull distribution based on min-max normalized price source data over a chosen lookback period. It transforms the normalized price value using adjustable shape (k) and scale (λ) para

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Weibull Distribution CDF
3 stars

This indicator plots smoothed Heiken Ashi candles on the price chart using two stages of exponential moving averages. It computes smoothed open, high, low, and close values with adjustable lengths of 10. Bullish candles appear green and bearish candles appear

Indicator v5 Candlestick patternsTrend Repaints
Updated 5 months ago · None stated GitHub repository of Smoothed Heiken Ashi Candles

VLD-tracker

by Allen1212
303 stars

This indicator visualizes historical buy and sell transactions executed by ARK Invest ETFs for Velo3D (VLD). It plots green buy labels below bars and red sell labels above bars directly on the main price chart at specific historical timestamps. The labels indi

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

VMW-tracker

by Allen1212
303 stars

This indicator overlays dated labels on the VMware price chart to mark recorded ARK Invest activity. With the ETF setting on ALL, it places green buy labels below the bars and red sell labels above the bars on four fixed dates in 2020. Each label shows a simpl

Indicator v4
Updated 2 years ago · None stated GitHub repository of VMW-tracker
99 stars

Calculates the Weighted Root Mean Squared Error (WRMSE) between an actual data series and a predicted series over a user-defined lookback window. It plots the resulting error metric in a separate pane along with a baseline at zero representing zero error. User

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Weighted Root Mean Squared Error

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