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

VRSK Tracker

by Allen1212
303 stars

VRSK Tracker visualizes historical buy and sell transactions made by ARK Invest funds for Verisk Analytics (VRSK). It draws visual labels directly on the price chart at specific historical dates where trades occurred, displaying the action and the number of pa

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

Wiener Filter (WIENER)

by mihakralj
99 stars

This indicator plots a Wiener filter of a chosen price source on the price chart. It estimates noise from squared differences over a lookback window, estimates signal power from a smoothed mean of squared deviations, and blends the source toward that mean with

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Wiener Filter (WIENER)
3 stars

Supertrend Channels is a price-chart overlay. It builds ATR bands around the hl2 midpoint using a length and a multiplier, then tightens the upper or lower band while price stays on one side. A binary trend state flips when close crosses the opposite band. Fro

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Supertrend Channels

VRTX Tracker

by Allen1212
303 stars

VRTX Tracker visualizes historical buy and sell transactions made by ARK Invest funds for Vertex Pharmaceuticals (VRTX). It places colored labels directly on the price chart at specific trade dates, displaying whether ARK bought or sold shares along with the n

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

Williams %R (WILLR)

by mihakralj
99 stars

This indicator calculates Williams %R and plots the result in a separate pane. It stores highs and lows over a lookback period, finds the highest high and lowest low, and expresses the close as a percentage of that range on a scale from -100 to 0. When the ran

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Williams %R (WILLR)

Chilllax Moving Averages with Qullamaggie Colors calculates and displays two configurable moving averages directly on the price chart. It evaluates the alignment and directional slope of both averages compared to their values a set number of bars ago. Based on

Indicator v4 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Chilllax Moving Averages with Qullamaggie Colors

VUZI-tracker

by Allen1212
303 stars

VUZI-tracker overlays historical buy and sell transactions made by ARK Invest funds directly onto the price chart for VUZI stock. It plots colored labels above or below bars based on specific transaction timestamps, indicating buy or sell actions along with th

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

Williams Alligator

by mihakralj
99 stars

Calculates and plots the classic Williams Alligator indicator using smoothed moving averages (SMMA / Wilder's RMA) with exponential warmup compensation. It computes three distinct smoothed lines: the Jaw, Teeth, and Lips, which are plotted directly on the main

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Williams Alligator

Equivolume Bars

by g-moe
3 stars

Equivolume Bars renders candlestick bodies and wicks using Pine Script box objects directly on the main price chart. It adjusts each bar's horizontal width proportionally to its trading volume relative to a historical lookback sum, making high-volume bars appe

Indicator v4 Volume
Updated 5 months ago · None stated GitHub repository of Equivolume Bars

WDAY-tracker

by Allen1212
303 stars

WDAY-tracker displays historical ARK Invest buy and sell transactions for Workday Inc. (WDAY) directly on the price chart. The indicator places green labels below the candle for purchases and red labels above the candle for sales, indicating the action and the

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

Williams Fractals

by mihakralj
99 stars

Williams Fractals detects classic five-bar reversal patterns directly on the price chart. The indicator calculates up fractals when a candle high exceeds the two preceding and two succeeding highs, and down fractals when a low is lower than the surrounding low

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

Price Action Candles plots the close price in a separate pane. It also defines a helper that turns a number into a fixed-width string from a format pattern, using figure spaces and punctuation spaces so columns of values line up, with an optional leading minus

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

WDI-tracker

by Allen1212
303 stars

WDI Tracker visualizes historical buy and sell transactions executed by ARK Invest on the price chart. It displays trade activity and share volume adjustments, allowing traders to monitor institutional transaction history over time. An input setting enables fi

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

This indicator plots the Williams Gator Oscillator in a separate pane. It builds three smoothed moving averages (jaw, teeth, and lips) from a chosen source, shifts each by its offset, and plots two histograms: the absolute gap between jaw and teeth above zero,

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Williams Gator Oscillator (GATOR)

SimpleBot

by g-moe
3 stars

SimpleBot is a Pine Script v4 overlay indicator that stores recent prior-bar opens and closes in rolling arrays and averages each series. It draws two horizontal lines on the price chart, one for the average open and one for the average close, both extended to

Indicator v4 Moving averagesSupport & resistance
Updated 5 months ago · None stated GitHub repository of SimpleBot

WIX-tracker

by Allen1212
303 stars

This indicator visualizes historical purchase and sale transactions made by ARK Invest on the price chart. It plots buy and sell labels corresponding to recorded trade dates, including share volume and ETF weight details depending on the selected settings. The

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

ATR Trailing Stop

by mihakralj
99 stars

Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during

Indicator v5 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of ATR Trailing Stop

ATR Trailing

by g-moe
3 stars

Calculates a dynamic trailing stop based on the Average True Range (ATR) and a sensitivity multiplier. It plots the trailing stop directly on the price chart, coloring the line green during uptrends and red during downtrends. Buy and sell labels appear when th

Indicator v4 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of ATR Trailing

WKHS-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest ETFs for Workhorse Group Inc. (WKHS) directly on the price chart. It visualizes daily purchase activity with green labels below bars and sales with red labels above bars, includin

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

Beta Convexity

by mihakralj
99 stars

Beta Convexity plots the second difference of a linear regression fitted to the close. It estimates how that fitted series bends over a rolling window and draws the result in a separate pane with a zero reference line. The period input sets the regression leng

Indicator v5
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Convexity
3 stars

Blastoise's Indicator draws dynamic support and resistance trend lines on the price chart. It locates swing highs and swing lows with a fixed 20-bar pivot and joins the last three of each into rising lower lines and falling upper lines. A line is kept only whe

Indicator v4 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Blastoise's Indicator

WORK-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of the WORK stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with a count of how many selected ARK ETFs traded that day. The ET

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

CSV Feed Reference

by mihakralj
99 stars

CSV Feed Reference is a Pine Script v5 indicator that plots the close price as a blue line in a separate pane. The published source contains no user inputs and no additional calculations, signals, or overlays. The file name and title identify it as a CSV feed

Indicator v5
Updated 4 weeks ago · Apache-2.0 GitHub repository of CSV Feed Reference
3 stars

The Directional Movement Index plots the Average Directional Index (ADX) along with the Positive Directional Indicator (+DI) and Negative Directional Indicator (-DI) in a separate pane. It calculates trend strength and direction from price changes using true r

Indicator v4 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Directional Movement Index

XLNX-tracker

by Allen1212
303 stars

XLNX-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for Xilinx (XLNX) directly on the price chart. The script plots green labels below price bars for buy transactions and red labels above price bars for sell transactions,

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

Elder Impulse System

by mihakralj
99 stars

Elder Impulse System plots a column series in a separate pane. It compares a 13-period exponential moving average with its previous value and a MACD histogram with its previous value. A rising EMA and rising histogram print 1, a falling EMA and falling histogr

Indicator v5 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Impulse System
3 stars

The Divergence Scanner is an indicator that detects divergences using the Hull Moving Average. It calculates the high-low average price as the source and applies a Hull Moving Average with length 21 and a lookback of 2. Users can enable the display of Hull sup

Indicator v4 DivergenceMoving averages
Updated 5 months ago · None stated GitHub repository of Divergence Scanner
99 stars

This Pine Script indicator plots the Geometric Brownian Motion Reference line on a separate pane. It calculates the reference value as the close price multiplied by e raised to the drift parameter, creating a simulated price path under GBM assumptions. The dri

Indicator v5 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Geometric Brownian Motion Reference

Holt-Winters Channel

by mihakralj
99 stars

This overlay indicator estimates a Holt-Winters-style level, trend, and acceleration from the close, then projects a middle line one step ahead. It tracks a smoothed squared forecast error and multiplies its square root by the multiplier to form upper and lowe

Indicator v5 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Holt-Winters Channel
3 stars

The OBV MACD Indicator calculates a volume-based momentum oscillator by combining On-Balance Volume with price standard deviation spread. It creates a synthetic price-volume shadow series, smooths it using an Exponential Moving Average, and applies a Moving Av

Indicator v4 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of OBV MACD Indicator

Rolling Minimum Index

by mihakralj
99 stars

Rolling Minimum Index calculates and plots the bar offset to the lowest closing price over a user-defined lookback window using Pine Script's built-in lowestbars function. Plotted in a separate indicator pane, it outputs a negative integer representing how man

Indicator v5 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Rolling Minimum Index

Squeeze Pro

by mihakralj
99 stars

Squeeze Pro measures market volatility compression by comparing Bollinger Bands against three tiers of Keltner Channels (wide, normal, and narrow). It calculates squeeze intensity based on whether Bollinger Bands fall within these respective channel boundaries

Indicator v5 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Squeeze Pro

TTM Squeeze

by mihakralj
99 stars

This indicator detects volatility compression by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation and Average True Range over a user-defined period, plotting a binary column in a separate pane. When the Bollinger Band width fal

Indicator v5 Volatility & bandsBreakout
Updated 4 weeks ago · Apache-2.0 GitHub repository of TTM Squeeze

Volatility Stop

by mihakralj
99 stars

The Volatility Stop indicator calculates a trailing stop level based on Average True Range (ATR) to help identify trend direction and reversal levels. It tracks price changes over a user-defined ATR period and multiplier, plotting a green line during uptrends

Indicator v5 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volatility Stop

Volume-Weighted MACD

by mihakralj
99 stars

This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee

Indicator v5 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volume-Weighted MACD

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