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

Draws a SOFR minus Euribor rate-difference line from data the user pastes into a settings box, so no intraday feed for those rates is needed. The line can be shown in basis points or in scaled units using a scale and offset, with optional EMA smoothing and a b

Indicator v5
Updated yesterday · None stated GitHub repository of C.OG Line - Pasted Data

Valuation Table

by ankurksoni
1 stars

A table overlay on the price chart, short title Valuation, that shows valuation-related figures for a stock. The code detects the first year of listed data and counts how often price has touched and closed back above the 10 and 20 period EMAs within a lookback

Indicator v6 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Valuation Table

kNN Classifier

by jayadevrana
1 stars

This indicator implements a k-nearest neighbours classification model to forecast price direction several bars ahead. It extracts three normalized technical features: RSI, an EMA spread scaled by ATR, and normalized candle range volatility. Historical samples

Indicator v6 AI / machine learningTrend
Updated 3 days ago · MPL-2.0 GitHub repository of kNN Classifier

SMC Engine Private

by skipp-dev
1 stars

This Pine Script v6 library serves as an internal engine for Smart Money Concepts (SMC), providing types, tracking, and rendering logic for order blocks, fair value gaps, and market structure. It calculates order block parameters including quality scores, heig

Library v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · None stated GitHub repository of SMC Engine Private

Donchian Channel Breakout

by pineforge-4pass
1 stars

This strategy tracks price breakouts using Donchian Channels calculated from the highest highs and lowest lows over configurable lookback periods. It plots the upper, lower, and mid entry channels directly on the price chart. A long entry triggers when the bar

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of Donchian Channel Breakout

P Err Strategy In Indicator

by GammaExpansion
1 stars

This script is an indicator that plots the close price on the price chart. It checks if close is greater than open and enters a long position using strategy.entry if true. However, as an indicator, strategy functions may not execute properly and could cause er

Indicator v6 Trend
Updated 6 days ago · MIT GitHub repository of P Err Strategy In Indicator

An indicator that plots two context reads on the price chart without trading logic. A 4-hour bias comes from swing structure agreeing with the close versus a 50 EMA and its slope, and a 1-hour trend check requires ADX, stacked fast and slow EMAs and an efficie

Indicator v6 Trend Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 4 MTF Bias Stack

DEPV2 C1a Temel Skor

by YuceSezar89
1 stars

This indicator calculates a composite base score using trend, momentum, volatility, and volume components. It computes HLC3 SMA trend levels, ROC momentum z-scores, ATR-based volatility expansion ratios, and volume participation rates. Additional MTF Heikin As

Indicator v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 C1a Temel Skor
1 stars

This indicator detects fractal patterns in price action using a customizable number of periods. It identifies up and down fractals and draws symmetry zones between consecutive fractals of opposite types on the price chart. Zones incorporate slope multipliers a

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractal Symmetry Signals

Series Demo

by Alaamo7
1 stars

This educational indicator demonstrates the Pine Script series concept by plotting the current closing price alongside the previous bar's closing price in a separate pane. It serves as an introductory teaching example to show how historical indexing operates o

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Series Demo

Mean Deviation Trail

by vedkanani123
1 stars

An overlay indicator that measures how far price sits from a central EMA, smooths that signed deviation with a selectable moving average, and uses a mean absolute deviation measure to scale a trailing band. The multiplier is tight when deviation is strong and

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Mean Deviation Trail
1 stars

Draws volume order blocks on the price chart and marks three tiers of asymmetric volume signals, buy and sell, with a cooldown. High-volume proximity markers fire when a rolling highest-volume bar sits within a set number of bars of a tier signal. This version

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asymmetric HV Proximity v1.3

SCDTM Indicator

by GreyssonEnterprises
1 stars

An indicator that applies a multi-step checklist on the price chart. The first step compares 9 and 18 period EMAs on the daily, four-hour and one-hour timeframes and requires all three to agree. The second uses Bollinger %B thresholds and a Stochastic RSI, wit

Indicator v5 TrendOscillators & momentum Repaints
Updated 2 months ago · MIT GitHub repository of SCDTM Indicator

Quantum Flow v22 Engine Bay

by Jitheandra98
1 stars

This indicator builds on the Quantum Flow gold series by making each entry model an independently switchable engine. A buy or sell appears when any enabled engine triggers, and each signal is tagged with the engine that produced it, covering validated, classic

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v22 Engine Bay

Over Buy Sell Strategy

by tthanhvu002sgu
1 stars

A momentum strategy on the price chart that combines RSI, MACD histogram, ADX with directional lines and a large-candle test against ATR. Bullish and bearish momentum states require all of these to agree and exclude overbought or oversold readings. It also rea

Strategy v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Over Buy Sell Strategy
1 stars

This indicator overlays GEX levels on the price chart for options analysis on stocks and indices. It plots Bullseye, Gamma Flip, Call Wall, Put Wall, Max Pain, Expected Move, Flip Zones, and Top N strikes based on pasted TradeTracker data. Busby levels include

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of TradeTracker GEX + Busby

LotSize Calculator

by riegodavid-git
1 stars

An overlay tool that works out position size from account size, a risk percentage, the entry price and the distance to a stop loss. It draws entry, take profit and stop loss lines and shows a table with entry price, lots or quantity, take profit, stop loss, ri

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of LotSize Calculator
1 stars

Pro Quant Desk (US) v1 is a comprehensive market analysis dashboard overlaid directly on the price chart for US equities. It calculates market regime metrics including macro risk gauges using SPY, QQQ, and equal-weight RSP breadth proxies, two-layer relative s

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of Pro Quant Desk (US) v1

Quad Rotation 14 3

by rubbermetal
1 stars

Quad Rotation 14 3 is the medium pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 14/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band w

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 14 3
1 stars

This strategy combines trend, volatility, and multi-oscillator filters to generate directional trades. It calculates an Arnaud Legoux Moving Average (ALMA), Keltner Channels, Bollinger Band width, the Chande Momentum Oscillator (CMO), Money Flow Index (MFI), a

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Channel Momentum Suite
1 stars

Calculates Relative Strength Index (RSI) across four configurable timeframes using security calls with lookahead disabled. It identifies regular bullish and bearish divergences between price pivots and the primary RSI over a user-defined lookback window. A wei

Indicator v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of Multi-Timeframe RSI [Agent Example]
1 stars

This indicator toolkit analyzes cryptocurrency price action on TradingView charts. It computes and plots Volume Profile with user-adjustable lookback bars, row count, and value area percentage; VWAP lines anchored to daily/weekly/monthly sessions plus optional

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT v7.2 Spec Watch

Smooth Trail V2

by dtheran1
1 stars

Draws a SuperTrend-style trailing line on the price chart, blended from a SuperTrend, Hull moving average bands and recent highest and lowest closes, with an ATR-based zone around it. The line and zone are blue above price and pink below. Inputs set the multip

Indicator v5 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Smooth Trail V2
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2

Quantum Scalper 5M

by Focal-QuantAI
1 stars

An indicator on the price chart intended for 5 minute charts. It plots fixed support and resistance from rolling highest and lowest values and combines retest confirmation, a Bollinger Band option, a channel built from an EMA with ATR and standard deviation, a

Indicator v6 ScalpingSupport & resistance
Updated 6 months ago · None stated GitHub repository of Quantum Scalper 5M
1 stars

This indicator plots a global liquidity series in a separate pane from selected central-bank balance sheets and optional national money-supply series, converted into US dollars. Toggles cover the Federal Reserve, Treasury General Account, reverse repurchase ag

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Global Liquidity Index
1 stars

This strategy combines two Supertrend indicators with different factors and periods to identify trend direction on the price chart. The primary Supertrend (factor 3, period 10) signals flips for entries, confirmed optionally by a faster Supertrend (factor 2, p

Strategy v5 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Supertrend - Dynamic Trend Follower
1 stars

The HybridAlgo Multi-Indicator Strategy calculates signals from moving average crossovers, RSI, MACD, and Bollinger Bands. Long and short entries trigger when at least three signals align for confluence. It sets stop loss at three times ATR below entry and tak

Indicator v5 TrendOscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of HybridAlgo Multi-Indicator Strategy

SPX Gamma (1DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in one day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from an

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPX Gamma (1DTE)

ICT Propulsion Block

by Ahmed1926
1 stars

An overlay indicator that detects order blocks from swing points and highlights propulsion blocks, which are blocks that form after price reacts to an earlier order block. Swing length sets detection, and a mitigation setting decides whether a closing price or

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

This indicator calculates and plots dollar-cost averaging cost basis lines directly on the main price chart from a chosen starting date. It tracks a continuous average purchase price across regular bar intervals alongside a secondary average that accumulates o

Indicator v6
Updated 1 year ago · None stated GitHub repository of TeeLek-DCA-Under-DCA-Line
1 stars

An overlay indicator that builds a zero-lag moving average by adding the gap between price and its EMA back to price and smoothing again, then compares it with a plain EMA. Crossovers give up and down signals and the lines change colour with direction. A box i

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Zero-Lag MA Trend Levels

Ticker Tape

by ivansoft
1 stars

An indicator that draws a scrolling ticker tape on the price chart for a list of symbols entered as comma-separated text. For each symbol it requests the daily close, the daily change and the percentage change, and shows them with the symbol name. A running se

Indicator v6 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Ticker Tape

Strategy Template

by zhuzp98
1 stars

An unfinished strategy template on the price chart. It sizes positions from a share of equity and sets up long and short entries with a stop loss and take profit placed as percentages of the entry price, defaulting to 3 and 30. The indicator, input and conditi

Strategy v5
Updated 1 year ago · None stated GitHub repository of Strategy Template

Hello World

by fiji-solutions
1 stars

This indicator demonstrates how to retrieve fundamental financial metrics using Pine Script's financial data function. It requests quarterly accounts payable data for the current symbol, specified in Swiss Francs, and plots the resulting value series in a sepa

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello World

Supertrend

by akash-yellgetti
1 stars

A Pine v4 strategy built on the classic ATR Supertrend, with the ATR calculated either by Wilder's method or a simple moving average. It plots up and down trend lines with buy and sell labels, optional highlight fills, and alert conditions for direction change

Strategy v4 TrendVolatility & bands
Updated 2 years ago · None stated GitHub repository of Supertrend

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