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

A momentum reversal strategy that uses the WaveTrend oscillator. A long is considered when the fast line crosses above its signal line from below the oversold level, and a short on a cross down from above the overbought level. A custom free energy and fractal

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of TnSovereign WaveTrend

KSPI-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest activity on the KSPI price chart. When the ETF input is ALL, it places green labels below bars on fixed dates from late 2020 through early 2021, each reading Buy X1. The only setting chooses ALL or ARKF; the v

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

This overlay strategy plots Bollinger Bands from a simple moving average and standard deviation, plus a separate moving-average line and a background color when that average sits outside the bands. It opens a long when the source crosses above the lower band a

Strategy v4 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced Bollinger Bands Strategy

Laguerre RSI (LRSI)

by mihakralj
99 stars

This indicator plots Laguerre RSI in a separate pane. It passes close through four cascaded Laguerre filter stages and forms a ratio of upward stage differences to total stage differences, producing a dimensionless value from 0 to 1. When all stages match, the

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Laguerre RSI (LRSI)

Partial Exit Demo

by be-thomas
65 stars

This demonstration strategy showcases partial position exit functionality using Pine Script v4. It enters a long position of four units during the first 100 bars whenever no position is currently open. The script manages trade exits using two bracket orders: c

Strategy v4
Updated 5 days ago · GPL-3.0 GitHub repository of Partial Exit Demo

Zig Zag

by TWODS-CAPITAL
37 stars

This overlay indicator draws a zigzag of confirmed swing highs and lows on the price chart. It finds pivots with a depth window, then keeps a turn only when price moves beyond the deviation threshold. Lines connect successive reversals, and the last segment ca

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · MIT GitHub repository of Zig Zag

ZignalyBeta

by ruckard
13 stars

This Pine Script v5 library provides functions to generate Zignaly alert messages. It includes utilities for selecting separators and quotes based on alert type (webhook or email), extracting the pair from syminfo, creating common alert messages with exchange,

Library v5
Updated 1 year ago · None stated GitHub repository of ZignalyBeta

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

Plots key price levels directly on the main chart using time-based reference points. It tracks the high, low, and open prices for each Wednesday of the month while automatically adjusting for US Daylight Saving Time shifts. The indicator also identifies daily

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 SMC

by g-moe
3 stars

This SMC indicator plots market structure features on the price chart. It identifies swing points based on a configurable length and marks internal order blocks, swing order blocks, and fair value gaps. Candles can be colored according to detected trend direct

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Mrhyh21 SMC
1 stars

This overlay strategy combines confirmed pivot break-of-structure with a curved linear-regression and ATR channel. It enters long when price breaks a confirmed pivot high and closes above the slope-adjusted channel midline, and enters short on the symmetric be

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-integration
1 stars

Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.3 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.3 (Tick)

TnSovereignAliceV6

by raybird
1 stars

TnSovereignAliceV6 evaluates price action using a five-part methodology comprising fractal efficiency, RSI, Bollinger Bands, proxy institutional flow, and MACD histogram momentum. Entries trigger when a user-defined minimum number of consensus conditions align

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TnSovereignAliceV6

KTOS-tracker

by Allen1212
303 stars

KTOS-tracker places historical ARK Invest purchase and sale labels on the KTOS price chart. Green buy labels sit below bars and red sell labels sit above them, each marked with an ETF count such as X1. An ETF setting switches the displayed records among ARKQ,

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

This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced OutSide Forex strategy

This indicator calculates a Normalized Least Mean Squares (LMS) adaptive FIR filter based on the Widrow-Hoff learning algorithm. It predicts the current bar price using weighted past values and dynamically adjusts its coefficients based on the prediction error

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Least Mean Squares Adaptive Filter (LMS)

Pivot Points High Low

by be-thomas
65 stars

This indicator marks pivot highs and pivot lows on the price chart. A high is a pivot when it is strictly above the highs in a window of bars on both sides; a low uses the same test against lows. Confirmed pivots get a price label above the bar for highs and b

Indicator v4 Support & resistance
Updated 5 days ago · GPL-3.0 GitHub repository of Pivot Points High Low
13 stars

This strategy runs on the main price chart and generates trade signals using moving average crossovers. It opens long positions when the fast simple moving average crosses above the slow simple moving average, and enters short positions on a bearish cross. Exi

Strategy v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Ruckard QuickFingers Luc A002

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

This indicator identifies and plots recurring key price levels based on two time-based systems: Wednesday session highs, lows, and opens, along with Midnight (UTC+2) reference levels. It automatically adjusts for Daylight Saving Time and fetches 15-minute time

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 SMC

by g-moe
3 stars

This indicator identifies market structure and key price levels directly on the price chart. It plots supply and demand zones based on swing highs and swing lows, identifies break of structure levels when zones are breached, and highlights fair value gaps repr

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Mrhyh21 SMC

Moving Averages 3D

by regalouisei
2 stars

This indicator calculates ten sequential moving averages using either simple or exponential moving averages and renders them as a pseudo-three-dimensional grid in a separate pane. It projects recent price trends through an array of dynamically colored line dra

Indicator v5 Moving averagesTrend
Updated 8 months ago · None stated GitHub repository of Moving Averages 3D
1 stars

This strategy plots the Kaufman Adaptive Moving Average on the price chart as an overlay. It generates buy signals on ta.crossover of close above the KAMA and sell signals on ta.crossunder of close below the KAMA. Long entries occur when flat or short, short e

Strategy v6 Moving averagesTrend Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Kanuck-Probe-01-Kama-State

VOB Asym Combo v10.4

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. It plots combination lanes only: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volume events paired with any zon

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.4
1 stars

TnSovereignEntropyCausalityV6 evaluates directional information flow between volume and price using symbolic encoding and an approximated transfer entropy metric. It calculates whether volume precedes price moves across a selectable lookback window while filte

Strategy v6 VolumeTrend
Updated 2 months ago · None stated GitHub repository of TnSovereignEntropyCausalityV6

KVSB Tracker

by Allen1212
303 stars

KVSB Tracker overlays historical ARK Invest buy and sell transactions directly on the price chart for the KVSB ticker. It renders green buy labels below price bars and red sell labels above bars at specific historical timestamps corresponding to reported ARK f

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

ADX + BB %B + AO + EMA

by hasnocool
106 stars

This strategy plots multiple exponential moving averages and a linear regression squeeze channel directly on the price chart. It executes 100-unit long and short trades by combining four EMA trend alignments, Bollinger Bands %B extremes, Awesome Oscillator mom

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX + BB %B + AO + EMA

Linear Decay (DECAY)

by mihakralj
99 stars

This indicator calculates a linear decay filter over a selected price source and plots the result directly on the price chart. The algorithm tracks local peaks and descends linearly by a fixed step equal to the inverse of the specified period whenever the pric

Indicator v6 TrendSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Linear Decay (DECAY)

Pivot Points Standard

by be-thomas
65 stars

This indicator plots classic pivot levels on the price chart from the previous completed bar of a higher timeframe. It requests that bar's open, high, low and close, then calculates the pivot as the average of high, low and close, with resistance one and suppo

Indicator v4 Support & resistance
Updated 5 days ago · GPL-3.0 GitHub repository of Pivot Points Standard

Ruckard Scalping 03

by ruckard
13 stars

This strategy trades both long and short on the price chart. It enters long after a five percent or larger drop over the last thirty minutes and short after a matching rise. Two dollar-cost-averaging adds increase size when price moves against the position. A

Strategy v4 ScalpingMean reversion
Updated 1 year ago · None stated GitHub repository of Ruckard Scalping 03

MTF 2TF Cipher

by g-moe
3 stars

MTF 2TF Cipher is a minimal Pine Script overlay indicator that plots the closing price directly onto the price chart. Despite its title referencing multi-timeframe cipher analysis, the script functions as a basic skeleton or placeholder without multi-timeframe

Indicator v5
Updated 5 months ago · None stated GitHub repository of MTF 2TF Cipher
2 stars

This indicator detects harmonic chart patterns across four configurable ZigZag lengths directly on the price chart. It identifies patterns including Gartley, Butterfly, Bat, Crab, Deep Crab, Shark, Cypher, 5-0, Three Drives, ABCD variations, and Double Tops an

Indicator v5 Support & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Multi ZigZag Harmonic Patterns
1 stars

This strategy is a validation probe that forces a 500-bar history buffer. It calculates a long simple moving average of close, an RSI of close shifted by a configurable offset, and a lagged close. Those first two series are plotted but do not gate trades. It e

Strategy v6 Moving averagesOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kanuck-probe-03-max-bars-back-500
1 stars

This indicator projects an ATR- and Fibonacci-spaced geometric price and time grid directly on the main chart. Operating from a 144-period macro midpoint anchor, it plots horizontal levels and partitions historical price action into discrete matrix cells. Each

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Quantum Spider Web Matrix
1 stars

Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.4 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.4 (Tick)

LC Tracker

by Allen1212
303 stars

LC Tracker overlays historical buy and sell transactions executed by ARK Invest funds directly on the price chart for LendingClub. It plots green buy and red sell labels at precise bar timestamps based on recorded trade history, indicating the number of partic

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

ADX + RSI Strat

by hasnocool
106 stars

This strategy combines a 7-period RSI with an ADX filter to trade market regimes on the price chart. When the ADX indicates ranging conditions below a set threshold, it triggers entries on RSI overbought or oversold extremes. By default, the entry logic is inv

Strategy v4 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of ADX + RSI Strat
99 stars

This indicator computes the linear regression endpoint and slope over a specified rolling lookback period. It manages historical price values internally using a circular array buffer, handling missing data by carrying forward the last valid price. The calculat

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Linear Regression (LINREG)

Plot bar_index

by be-thomas
65 stars

This indicator plots the built-in bar_index value as a single series in a separate pane. It does not generate trade signals, entries, exits, or risk management rules. There are no user inputs, so the plotted series cannot be rescaled or filtered from the scrip

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Plot bar_index
13 stars

This strategy demonstrates how to integrate TradingView signals with the Zignaly Crypto Trading Platform. It calculates a crossover between a 14-period and a 28-period simple moving average to generate trade signals directly on the price chart. Entries trigger

Strategy v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Zignaly Tutorial A061
6 stars

Calculates and plots key price levels based on recurring Wednesday High, Low, and Open price action as well as midnight levels. The indicator draws horizontal support and resistance lines directly on the price chart for technical analysis across up to four his

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System (Alerts)

MTF Candles

by g-moe
3 stars

MTF Candles draws higher-timeframe candles on the price chart as boxes and lines. It can show up to five independent timeframes, each with its own enable switch, timeframe choice, and history length of one to fifty bars. Bullish and bearish bodies, borders, an

Indicator v5 Candlestick patterns
Updated 5 months ago · None stated GitHub repository of MTF Candles

Multiple Frequency Volatility Correlation measures the relationship between price standard deviation and volume standard deviation across window lengths ranging from 2 to 512 bars. It plots individual correlation values as colored circles in a separate indicat

Indicator v5 Volatility & bandsVolume
Updated 8 months ago · None stated GitHub repository of Multiple Frequency Volatility Correlation
1 stars

This validation strategy tests the simultaneous runtime handling of Kaufman's Adaptive Moving Average (KAMA), intra-bar tick counting, and deep historical buffer retention. It enters trades when the closing price crosses above KAMA, gated by an intra-bar tick

Strategy v6 Moving averagesTrend Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Kanuck-Probe-Integration

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