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

QQQ Gamma (1DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) 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 a

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

SMT Divergence

by Ahmed1926
1 stars

An indicator in a separate pane that looks for smart money technique divergence between the chart symbol and a second symbol, which defaults to gold. It finds fractal pivot highs and lows on both, compares the latest two on each, and flags a bullish or bearish

Indicator v5 DivergenceSMC / ICT / price action
Updated 9 months ago · None stated GitHub repository of SMT Divergence
1 stars

Reports at which times of the trading session the daily high and low most often occur, shown as percentage columns in a separate pane. It reads intraday bars, so it must be run on a 15, 30 or 60 minute chart that matches the market's session start. Settings ch

Indicator v5 Sessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Tops & Bottoms - Time of Day

EMA Crossover Strategy

by knectardev
1 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It opens a long position when the fast EMA crosses above the slow EMA and closes that long when the fast EMA crosses back below. There is no short entry and no stop loss. Posi

Strategy v5 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of EMA Crossover Strategy

MACD-X by DGT

by webcrack4
1 stars

This indicator provides multiple MACD calculation methods including traditional, histogram, leader, and source-based variants. It plots the MACD line, signal line, and histogram on the price chart with SMA or EMA smoothing options. Crossover signals generate l

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of MACD-X by DGT
1 stars

A chart-overlay indicator that tracks a Hull moving average and issues buy and sell signals when price crosses it in the direction of the slope. Entries are filtered by a score built from momentum, RSI and volume, a price-volume-trend check, and an optional bl

Indicator v6 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of RAPF Anti-Chop Fusion

Volume Spike Detector

by surajmateti
1 stars

The Volume Spike Detector is a separate-pane indicator designed to highlight unusually high trading volume. It calculates a simple moving average of volume over a user-defined length and flags a spike whenever the current volume exceeds this average multiplied

Indicator v5 Volume
Updated 11 months ago · None stated GitHub repository of Volume Spike Detector

RSI Price Action

by feliperazeek
1 stars

This indicator calculates a 14-period RSI and marks overbought and oversold conditions directly on the price chart, using labels on candles, shaded background zones and an optional RSI line. It can show the current RSI value, print RSI values at set bar interv

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI Price Action

New Strategy Template

by NakliTechie
1 stars

New Strategy Template provides a basic Pine Script v5 boilerplate structure for developing custom automated trading strategies. It includes pre-configured inputs for lookback period, source price, and trade position sizing, as well as conditional structures fo

Strategy v5
Updated 1 year ago · MIT GitHub repository of New Strategy Template

Flags and Pennants

by turnupdigital
1 stars

An indicator on the price chart that finds flag and pennant chart patterns using up to four zigzag settings of different lengths and depths. Inputs limit pattern error, flatness, maximum retracement and optionally bar ratio, and an option avoids overlapping pa

Indicator v6 Support & resistanceBreakout
Updated 1 year ago · None stated GitHub repository of Flags and Pennants

TeeLek Best Position

by theteelek
1 stars

A long-only accumulation strategy that buys near the lower edge of a smoothed channel, built from an EMA of the highest high and lowest low over an adjustable range. A buy needs price at the lower line while RSI turns up from an oversold reading, with at most

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of TeeLek Best Position

Supertrend Strategy

by Studentcodee
1 stars

A Pine v6 strategy that follows the built-in Supertrend indicator on the price chart. The ATR length and the multiplier factor are inputs. When the Supertrend direction flips to bullish the strategy enters long, and when it flips to bearish it enters short, so

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Strategy
1 stars

An EMA crossover strategy that allows up to three entries in the same direction. A fast EMA crossing above a slow EMA opens a long, and crossing below opens a short with a size taken from a risk percentage of equity divided by price. Every opposite cross close

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Pyramid Strategy with EMA Cross
1 stars

This strategy fades false breakouts of a rolling high and low. It goes long when the bar's low pokes below the prior lowest low of the lookback window but the close finishes back above it, and short in the mirror case at the highest high. Each trade has an ATR

Strategy v5 Mean reversionBreakout
Updated 1 year ago · None stated GitHub repository of Turtle Soup Strategy

Supertrended RSI

by munlit
1 stars

A separate-pane indicator that computes an RSI, smooths it with a selectable moving average type, and applies a Supertrend-style ATR band to it. The trend line flips when the RSI crosses the band, and colours show direction. Inputs set the RSI length, smoothin

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Supertrended RSI

RelativeValue

by ivansoft
1 stars

A Pine Script v6 library for comparing current volume or another series with its history over matching points in time. It collects values within a period that restarts on an anchor timeframe, then averages the values from past periods at the same time offset.

Library v6 Volume
Updated 1 year ago · None stated GitHub repository of RelativeValue
1 stars

An overlay indicator that flags bars where volume jumps well above its recent average and the candle body is also much larger than the previous one. A signal needs volume above a multiple of the prior average, above its moving average by a set percentage, and

Indicator v5 Volume
Updated 1 year ago · None stated GitHub repository of Volume Multiplier Alert

RSI with Boll

by zhuzp98
1 stars

An indicator that plots a centred RSI, shifted so that the midline is zero, in a separate pane with reference lines at plus and minus twenty. It adds a moving average of the RSI and Bollinger-style bands around it, using an adjustable standard deviation multip

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI with Boll

Hello world

by fiji-solutions
1 stars

This indicator requests external data from Quandl using the BCHAIN/CPTRV ticker and plots the resulting value as a line in a separate indicator pane. It functions as a basic educational example demonstrating how to retrieve external dataset series using the re

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

HH, LL, HL, LH Indicator

by akash-yellgetti
1 stars

A strategy-type script that draws the high, low and midpoint of an opening window each day, plus pivot-based support and resistance lines from left and right bar settings. It prints buy or sell labels when the close breaks a pivot level while an EMA-based volu

Strategy v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of HH, LL, HL, LH Indicator

Squeeze Panel

by amico1234
1 stars

Squeeze Panel plots a volatility squeeze in a separate pane. It marks a squeeze when Bollinger Bands sit inside a Keltner Channel and marks when the bands expand outside it. The user chooses Money Flow Index or linear regression to color likely breakout direct

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Squeeze Panel

Custom RSI of VWAP

by RobACurtis
1 stars

Calculates a Relative Strength Index based on the Volume Weighted Average Price rather than standard close prices. It plots the resulting indicator curve along with customizable upper and lower threshold bounds in a separate pane. Traders can adjust the RSI le

Indicator v4 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of Custom RSI of VWAP
1 stars

This small indicator demonstrates the PineTradingbotWebhook library on the price chart. On each confirmed bar it builds a sample webhook message for a long entry with example limit and stop levels, a quantity and an order reference, shows the message text in a

Indicator v5
Updated 2 years ago · MPL-2.0 GitHub repository of Testing PineTradingbotWebhook

Stochastic Divergence+

by krosenfeld7
1 stars

This indicator calculates the Stochastic oscillator (%K and %D) and scans for divergences between price swings and oscillator swings. It detects pivot highs and lows on both price and the stochastic lines using user-defined lookback intervals and tolerance thr

Indicator v4 DivergenceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Stochastic Divergence+
1 stars

A Pine v4 overlay that works from the average of the ten-bar highest high and lowest low together with a Hull moving average helper and a short period setting. Inputs are the price source, a smoothness value and a short period of 21. Only the opening part of t

Indicator v4 Moving averages
Updated 3 years ago · None stated GitHub repository of Tykhe Mean Machine System
1 stars

The Detrending Net Distance Ratio indicator computes the difference between current close and close prices at ten different lookback periods ranging from seven to three hundred sixty bars. It sums the positive differences to create a net value and sums their a

Indicator v5 DivergenceMean reversion
Updated 3 years ago · None stated GitHub repository of Detrending Net Distance Ratio
1 stars

A separate-pane tool that plots an RSI, 14 periods by default, in orange and overlays five exponential moving averages of the RSI at 3, 5, 8, 13 and 15 bars in different colors. Five dashed horizontal guide levels at 80, 70, 50, 20 and 10 can be edited or disa

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of RSI+EMAs for Bootsie Strat

EMA RSI Strategy

by juliencrn
1 stars

This Pine v4 strategy smooths a 14-period RSI with a 10-period and a 50-period average. It enters long when the fast average crosses above the slow one while RSI is above 50, and short on the opposite cross with RSI below 50, using a fixed order quantity. It h

Strategy v4 Oscillators & momentum Archived
Updated 4 years ago · None stated GitHub repository of EMA RSI Strategy
1 stars

This indicator adapts a chop zone calculation, which measures the angle of an average price line, to colour the candles on the price chart instead of drawing a separate oscillator. It also plots a selectable moving average, with options SMA, EMA, ALMA, HMA, RM

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of Moving Average Chopzone Color

DOT BTC Binance 1m

by tseitz
1 stars

This strategy trades the DOT/BTC pair on a one-minute chart. It plots the VWAP of the close and two offset VWAP bands on the price chart. It opens a long when the open is above the upper band and a short when the open is below the lower band, then closes those

Strategy v4 VolumeBreakout
Updated 4 years ago · None stated GitHub repository of DOT BTC Binance 1m
948 stars

The Quick Moving Average calculates a triangular-weighted moving average on the price chart. It plots the average line and can color it green when rising or pink when falling. Price bars and chart background receive matching colors based on slope. Settings con

Indicator v6 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Quick Moving Average

This indicator calculates and plots external range liquidity levels by identifying swing highs and swing lows across up to three configurable timeframes. Plotted directly on the main price chart, it highlights key pivot levels using high/low or open/close pric

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT External Range Liquidity Static Multi-timeframe (Swing High and Low)

Omar MMR [Alorse]

by Alorse
330 stars

Omar MMR is a long-only price-chart strategy that combines three exponential moving averages, RSI, and MACD. It enters long when price is above the slowest average, the fastest average is above the middle one, the MACD line crosses above its signal, and RSI is

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Omar MMR [Alorse]

VIX Term Structure

by namuan
318 stars

This indicator plots the implied volatility term structure for US equities in a separate pane. It requests close data for four Cboe volatility indexes: VIX9D (9-day), VIX (30-day), VIX3M (3-month), and VIX6M (6-month) on the current timeframe. For each index,

Indicator v5 Volatility & bandsMoving averages
Updated 2 months ago · MIT GitHub repository of VIX Term Structure

6618-Tracker

by Allen1212
303 stars

6618-tracker overlays historical buy and sell transactions executed by ARK Invest funds directly onto the price chart using hardcoded labels. It visualizes daily buy and sell actions, displaying share volume, portfolio percentage weight, and trade counts for s

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

BinaryDecimalConversion

by ricardosantos79
261 stars

BinaryDecimalConversion is a Pine Script utility library designed for converting data between decimal integers and binary string representations. It exports functions to convert an integer value into a binary string and to parse a binary string back into a dec

Library v5
Updated 4 years ago · None stated GitHub repository of BinaryDecimalConversion
257 stars

This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns

Indicator v5 AI / machine learningOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Donald - Machine Learning Options

Swoosh Indicator

by harryguiacorn
219 stars

Swoosh Indicator is an overlay that marks directional conditions on the price chart. It checks whether four simple moving averages are stacked in order and whether the MACD line is above or below its signal line. When both agree, it plots a green up arrow belo

Indicator v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Swoosh Indicator
219 stars

An educational Pine Script v4 indicator demonstrating how to plot volume histograms on the main price chart using unscaled axes. The code includes examples and commented templates for creating vertical line markers at specific dates or time zones, such as mark

Indicator v4 Sessions & timeVolume
Updated 5 years ago · None stated GitHub repository of 教學-畫垂直線1

Blank Template

by TradersPost
218 stars

A minimal boilerplate script written in Pine Script v6 for creating overlay indicators directly on the main price chart. It serves as a foundational starter file generated by the PineScript Agents development environment, designed to be populated with custom t

Indicator v6
Updated 3 months ago · None stated GitHub repository of Blank Template

Williams %R (v.4)

by capissimo
114 stars

Williams %R (v.4) is a custom momentum indicator displayed in a separate pane that calculates a scaled Williams %R oscillator over a user-defined lookback period. It enhances standard analysis by layering a secondary confirmation feature—selectable among CCI,

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Williams %R (v.4)
106 stars

A multi-timeframe Dollar Cost Averaging (DCA) trading strategy that combines signals from three RSI indicators, three CCI indicators, and Bollinger Bands. It places up to five weighted scale-in safety orders to lower the average entry price. The script offers

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of 3RSI 3CCI BB 5orders DCA Strategy+
99 stars

Calculates the Archer Moving Averages Trends (AMAT) indicator by comparing fast and slow Exponential Moving Averages (EMAs) alongside their slope directions. A bullish trend (+1) is identified when the fast EMA exceeds the slow EMA with both rising, while a be

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Archer Moving Averages Trends (AMAT)

Moon Dev GEX Sweep & CVD

by moondevonyt
92 stars

The indicator detects liquidity sweeps across key price levels and calculates a cumulative volume delta proxy. It uses pivot high and low lookbacks to identify swing points, marking sweeps when price breaks beyond a level and quickly closes back inside. Featur

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Sweep & CVD

Color picker showcase

by be-thomas
65 stars

This indicator plots the close price in a separate pane and colors each value by the current candle. When the close is above the open it uses teal, and when the close is at or below the open it uses red. It has no user inputs and does not generate entries, exi

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of Color picker showcase
57 stars

This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing

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