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

Alpy Kazan2

by avatar-lavventura
2 stars

This strategy detects momentum shifts using the WaveTrend oscillator where wt1 crosses above wt2 for long entries and below for shorts. Fractal patterns confirm reversals with upFractal and downFractal signals based on high and low price swings over multiple b

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Kazan2
2 stars

This indicator calculates and plots the intraday percentage change of the current or a user-selected asset relative to its daily opening price in a separate pane. It color-codes positive and negative returns dynamically and draws vertical day separator dotted

Indicator v6 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Intraday Spark Chart [AstrideUnicorn]

XO_macd

by wynnforthework
2 stars

XO_macd is an overlay strategy combining exponential moving average crossovers with MACD calculations. It tracks fast, slow, and consolidated bias EMAs to identify trend changes, coloring price bars and plotting Bull or Bear triangle shapes when conditions tri

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of XO_macd

RSI Strategy

by Web3Degenerate
2 stars

This strategy combines RSI extreme condition filters with engulfing candlestick patterns to identify reversal entries. It opens positions on confirmed bars when an overbought or oversold RSI aligns with a bullish or bearish engulfing pattern. Stop losses are c

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Strategy

This indicator plots a multi-timeframe ZigZag pattern alongside Fibonacci retracement levels directly on the price chart. It identifies swing highs and swing lows across a user-defined timeframe and period, storing recent swing coordinates in an array. From th

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Multi Time Frame with Fibonacci Retracement
2 stars

This strategy identifies market direction by combining a TrendSignal breakout algorithm with a Zig Zag swing overlay. It calculates dynamic price bands over a period to determine trend flips, plotting triangle shapes directly on the price chart for buy and sel

Strategy v4 TrendSupport & resistance
Updated 4 years ago · MIT GitHub repository of Trendsignal + Zig Zag Strategy

JAT+BSM Pro v13

by majixai
1 stars

A strategy that combines an AlphaTrend style volatility core with a MACD condition, higher-timeframe background, three consolidation layers with volume profile buckets, candlestick and macro pattern labels, and a forecast with Bayesian lookback. Cross-asset sy

Strategy v5 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of JAT+BSM Pro v13

Previous Day Levels

by jayadevrana
1 stars

The Previous Day Levels indicator plots yesterday's high and low as step lines on the price chart for any symbol and timeframe. It shades the daily trading range and draws triangular markers on breakout events when price crosses the high or low. Input settings

Indicator v6 Support & resistanceBreakout
Updated 3 days ago · MPL-2.0 GitHub repository of Previous Day Levels

SMC Long-Dip Strategy

by skipp-dev
1 stars

This strategy executes long-only dip setups on the price chart by linking to external Smart Money Concepts core signals. It enters positions based on selectable execution stages when quality score and regime criteria are met. Risk management uses an invalidati

Strategy v6 SMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Long-Dip Strategy

Dual Thrust Breakout

by pineforge-4pass
1 stars

The Dual Thrust Breakout strategy calculates upper and lower price threshold channels based on an open-anchored range formula over a configurable lookback period. It determines the maximum value between highest high minus lowest close and highest close minus l

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Dual Thrust Breakout

P_err_import

by GammaExpansion
1 stars

P_err_import is a minimal Pine Script v6 indicator fixture designed to test script parsing and library imports. It demonstrates importing the official TradingView TA library version 8 alias and plots the close price series in a separate indicator pane. The scr

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_import

A merged strategy that combines two entry engines on one chart. The anchor trail engine uses a dynamic equilibrium level called P0, built from a rolling volume and delta profile, and scores acceptance and rejection against structural levels such as POC and val

Strategy v6 VolumeSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta + DBR Change-Point Merged Strategy

DEPV2 DEBUG ALL

by YuceSezar89
1 stars

DEPV2 DEBUG ALL evaluates multi-asset market dynamics across up to 20 cryptocurrency symbols using four distinct analytical dimensions: trend, momentum, volatility, and volume. It computes and displays diagnostic signal outputs in a separate pane, allowing tra

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG ALL

Mirror Oscillator

by morindok
1 stars

The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close

Indicator v6 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Smart Money Volume Tools

by vedkanani123
1 stars

A separate-pane volume indicator that combines fast and slow EMAs of price, a volume average and a lower-timeframe volume read, normalized with an adjustable steepness value. A signal type setting chooses between a trailing style and other readings, and the ou

Indicator v6 VolumeTrend Repaints
Updated 2 months ago · None stated GitHub repository of Smart Money Volume Tools
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.2 Tick

This indicator plots session-filtered bullish and bearish engulfing markers on the price chart. A long mark appears when the current candle engulfs the prior candle inside the New York window and volume exceeds 1.5 times its 20-bar average. A short mark uses a

Indicator v6 Candlestick patternsSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign ORB Multi-Model

Davo Strategy

by GreyssonEnterprises
1 stars

A strategy version of a W and M pattern detector that looks for five-point double-bottom and double-top shapes in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Each source has strict matching, maximum width and offset

Strategy v4 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of Davo Strategy

V12 Swing Sniper Pro

by kevinesk
1 stars

V12 Swing Sniper Pro is a swing trading indicator for Bursa Malaysia stocks. It layers macro and sector filters atop Minervini-style trend quality gates and RSI checks to validate bullish setups. The script fires buy signals when coiling, pullback proximity, b

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of V12 Swing Sniper Pro

SMA Rate of Change

by rubbermetal
1 stars

SMA Rate of Change measures the rate of change of a simple moving average, using a fast (20) and an optional slow (200) average, and plots both in a separate pane. Values can be shown as a percent or scaled by price. Optional extras include a histogram, fills,

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Rate of Change
1 stars

This strategy plots on the price chart and enters long when a 10-period exponential moving average crosses above a 30-period one, and short on the opposite cross. Stop distance is the 10-period simple moving average of the high-low range. Each entry places a s

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Exit Stop Limit
1 stars

A strategy version of a trendline breakout tool. It draws pivot-based trendlines on the price chart and trades breakouts, using an ATR-based stop loss by default and a take profit set as a multiple of the stop distance, 1.5 by default. Settings choose the pivo

Strategy v6 BreakoutSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets Strategy
1 stars

This indicator requests the native footprint for each bar and prints the net delta, buy volume minus sell volume, as a small label below the candle on the price chart. Colours show positive, negative or zero delta. Settings control ticks per footprint row, val

Indicator v6 Volume
Updated 6 months ago · None stated GitHub repository of True Net Delta Under Candle

Scalper Pro 3 Min Gold

by Focal-QuantAI
1 stars

Scalper Pro 3 Min Gold is a price-chart indicator that marks breakout setups around recent pivot highs and lows. It signals a long when a bullish candle closes above the last pivot high while holding a higher low, and a short when a bearish candle closes below

Indicator v5 BreakoutSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Scalper Pro 3 Min Gold

Parabolic SAR Trend

by Basant1Saini
1 stars

This trend-following strategy generates buy and sell signals when the Parabolic SAR flips direction relative to price. Entries can be filtered using an Exponential Moving Average to trade in the direction of the dominant trend, as well as an Average Directiona

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Parabolic SAR Trend
1 stars

UnizonesAlgo identifies and plots higher-timeframe supply and demand zones on the main price chart using pivot highs and lows. It generates trade signals when price reaches a zone, demonstrates rejection, and receives confirmation from volume exceeding a movin

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 8 months ago · None stated GitHub repository of UnizonesAlgo (Universal Zones)

SPY Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in seven days. 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 SPY Gamma (7DTE)

GhostDog Matrix V12

by knectardev
1 stars

GhostDog Matrix V12 is an overlay signal indicator designed for intraday session trading. It calculates inner and outer standard deviation envelope bands around a simple moving average and evaluates Heikin-Ashi candle wicks to identify signal setups. The scrip

Indicator v5 Volatility & bandsSessions & time
Updated 9 months ago · None stated GitHub repository of GhostDog Matrix V12

v5 combination by yzz

by webcrack4
1 stars

This indicator overlays a volume or market profile histogram on the price chart and also draws a MACD-style overlay. It builds rows from lower-timeframe bars over the visible range, an anchored start, or all history, then marks the point of control and optiona

Indicator v5 VolumeSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of v5 combination by yzz

UT Bot Alerts

by turnupdigital
1 stars

An indicator on the price chart that builds an ATR trailing stop with a key value multiplier and a 10 period ATR. When price crosses the trailing stop, it prints a Buy or Sell label and colours bars green or red by side. An option calculates the signals from H

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of UT Bot Alerts

TeeLek Lab 05 Assemble

by theteelek
1 stars

An experimental overlay indicator that simulates a daily DCA account and a long account within a date window, using a five-period Hull moving average coloured green when rising and red when falling. The long account buys when the average turns up or price is a

Indicator v5 Moving averages
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 05 Assemble
1 stars

Plots cumulative volume delta as candles in a separate pane, resetting at the chosen anchor period, one day by default. Up and down volume is approximated from lower-timeframe data, selected automatically or set by the user; higher lower-timeframe choices give

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Cumulative Volume Delta

Zen Library Patterns

by fiji-solutions
1 stars

This indicator detects key candlestick patterns by importing functions from the Zen Library. It identifies bullish engulfing candles formed at 10-period lows and bearish engulfing candles at 10-period highs. Additionally, it highlights hammer, shooting star, a

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Zen Library Patterns

MA Strategy

by amico1234
1 stars

This Pine Script v4 strategy generates crossover signals using two simple moving averages on the price chart. The fast SMA in red crosses above the slow SMA in blue for long entries and below for short entries. Signals activate only during a defined trading se

Strategy v4 Moving averagesSessions & time
Updated 2 years ago · None stated GitHub repository of MA Strategy

QS Fast Coppock

by nvFede
1 stars

A Pine v4 oscillator in a separate pane. It adds a 14-bar and an 11-bar rate of change of the close, then smooths the sum with a Hull moving average, whose length defaults to 10. The resulting curve is plotted against a zero line. The three lengths are adjusta

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Fast Coppock

MTB_3

by JohnsonHsiao
1 stars

The MTB_3 indicator computes a base line from a simple moving average of close prices over a user-defined period. It then plots six horizontal lines on the price chart representing bands at one, two, and three standard deviations above and below this base. The

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of MTB_3

Color Gradient Framework

by rajatjpatel
1 stars

A coding aid from PineCoders that demonstrates functions for building bull and bear color gradients, shown in a separate pane. It offers nine examples, such as advance and decline gradients on two moving averages or the MACD histogram, relative gradients on RS

Indicator v4
Updated 4 years ago · None stated GitHub repository of Color Gradient Framework
1 stars

The KSMBTC EMA Cross Strategy plots an exponential moving average of the closing price on the price chart. It signals long positions when the open price crosses above the EMA with a green candle and short positions with a red candle. The strategy enters long w

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of KSMBTC EMA Cross Strategy

Butterworth Filter

by everget
948 stars

The Butterworth Filter indicator applies digital signal processing techniques to smooth price data directly on the main price chart. It calculates either a two-pole or three-pole filter based on a customizable length parameter and price source. When optional c

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Butterworth Filter

This indicator scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup Scanner
330 stars

The EMA Moving Away Strategy calculates an Exponential Moving Average (EMA) to identify mean-reversion trade opportunities when price stretches significantly away from the line. A long entry triggers when the close drops below the EMA by a specified percentage

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of EMA Moving away Strategy [Alorse]

ALGN-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions made by ARK Invest for Align Technology (ALGN) directly on the price chart. It uses labels positioned above or below specific bar timestamps to show institutional trade activity, including transaction d

Indicator v4
Updated 2 years ago · None stated GitHub repository of ALGN-tracker
261 stars

This indicator calculates the arithmetic-geometric mean of two numerical values or an array of values using an iterative convergence algorithm. It provides custom functions to compute the mutual limit of arithmetic and geometric sequences given a specified tol

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - Math Arithmetic Geometric Mean
257 stars

This strategy overlays Fibonacci standard deviation bands based on volume-weighted moving averages (VWMA) alongside 10-period open moving averages and pivot high/low levels directly on the price chart. It defines percentage-based stop-loss and take-profit targ

Strategy v5 Volatility & bandsMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Futures - No Repain ES

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