Synced with GitHub · updated today

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

Fibonacci Bollinger Bands overlays standard Bollinger Bands along with multiple internal and external Fibonacci ratio levels on the price chart. It calculates a center basis line using a simple, exponential, or weighted moving average, and computes upper and l

Indicator v5 Volatility & bandsSupport & resistance
Updated 4 months ago · None stated GitHub repository of Fibonacci Bollinger Bands
6 stars

This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner

Indicator v6 Sessions & timeVolume
Updated 8 weeks ago · MIT GitHub repository of Capital41 Session VWAP v2
6 stars

Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy
5 stars

This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of VP RSD Fixed Range Shelf Diagnostic
5 stars

Quick Scan for Cycles is a technical indicator designed to analyze cyclic behavior in financial asset prices. Operating in a separate indicator pane, it uses a customizable data source and bar lookback length to process price data and scan for recurring cycle

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Quick Scan for Cycles
5 stars

This indicator identifies Smart Money Concept (SMC) market structure elements, specifically Order Blocks (OB) and Fair Value Gaps (FVG), across current or higher timeframes. It highlights dynamic order blocks and imbalance zones directly on the price chart usi

Indicator v4 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Cerebrum Order Block and FVG

This short-only strategy enters when price is below a daily 50-period EMA, crosses under a four-hour 50-period EMA, and closes below the previous bar low. Position size is 20 percent of equity. Exits use a limit and stop based on percentage distances by defaul

Strategy v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Daily Trend + 4 Hour Reversal + 15 Min Pressure Short
4 stars

This indicator presents a separate-pane dashboard that looks up stored figures for a chosen crypto pair and a named strategy. It does not calculate RSI, MACD, bands, or other indicators from live prices. Inputs select the pair and strategy and toggle metric an

Indicator v5 Screeners & dashboards
Updated yesterday · None stated GitHub repository of Crypto Pair Selector STEPFUN

Noob's MTF multi-EMA

by InNoobWeTrust
4 stars

This strategy draws up to three exponential moving averages, default lengths 34, 89 and 610, across as many as seven user-chosen timeframes in a separate pane. Each series uses a gradient by timeframe, and optional smoothing or variable line width changes how

Strategy v5 Moving averagesScreeners & dashboards Repaints
Updated yesterday · None stated GitHub repository of Noob's MTF multi-EMA
4 stars

This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Ethereum ETH Strategy [trugurpala]
4 stars

Tracks the high and low of a user-defined intraday session and enters breakout trades when the bar closes outside this range. It can enter during the session or wait until the session ends. Long trades enter on a close above the session high, while short trade

Strategy v5 BreakoutSessions & time
Updated 11 months ago · Custom licence GitHub repository of Session Breakout Strategy [Lab]

SPY Trending

by dearvn
4 stars

SPY Trending is an indicator designed for SPY that evaluates trend alignment across multiple timeframes using Exponential Moving Averages (5, 10, and 20 EMAs). It fetches data across lower and higher timeframes to evaluate buy and sell conditions, displaying t

Indicator v5 Moving averagesScreeners & dashboards Repaints
Updated 4 years ago · None stated GitHub repository of SPY Trending

P-Linear TSI Tar

by gocaman
3 stars

Calculates a True Strength Index (TSI) oscillator modified with a linear regression line and standard deviation bands. It plots the regression line in a separate pane along with static reference levels at zero, 0.8, and -0.8, coloring the line based on slope d

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated yesterday · None stated GitHub repository of P-Linear TSI Tar

Jash Test

by jash-git
3 stars

This indicator plots five Fibonacci-based exponential moving averages on the main price chart, using lengths of 3, 13, 34, 55, and 144. It tracks Guppy Multiple Moving Average and Granville concepts to analyze trend direction and alignment. The script tests wh

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of Jash Test

CCI + Stoch + HA

by g-moe
3 stars

This indicator combines three momentum and trend analysis tools into a separate pane: a multi-timeframe Commodity Channel Index (CCI), a multi-timeframe Stochastic Oscillator, and a dual-EMA smoothed Heikin-Ashi trend bias displayed as colored dots. Users can

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of CCI + Stoch + HA

Swiss Knife

by IAMATOMIC001
3 stars

This Pine Script indicator draws fractal levels on the price chart. It computes up and down fractals by evaluating high and low values across multiple bars using custom array functions. The code defines weighted array sums and slices to identify fractal indice

Indicator v5 Support & resistanceTrend
Updated 12 months ago · None stated GitHub repository of Swiss Knife

Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Skew Weighted Average Price (SWAP)

Stochastic Oscillator

by piecioshka
2 stars

This indicator calculates and plots the Stochastic Oscillator (%K and %D lines) in a separate pane. It identifies overbought and oversold market conditions with configurable threshold levels and background zone gradients. When enabled, it plots entry markers o

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 11 days ago · MIT GitHub repository of Stochastic Oscillator

PA Helpers

by TamTH-Dev
2 stars

This indicator overlays price action assistance tools on the main price chart. It calculates and plots up to three exponential moving averages with user-defined lengths, colors, and independent multi-timeframe resolution settings. In addition to moving average

Indicator v6 Moving averagesSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of PA Helpers
2 stars

Liquidity Location Detector is a TradingView Pine Script indicator that plots fast and slow EMA lines on the price chart along with crossover signals. It detects and draws liquidity zones as colored boxes representing support and resistance levels based on nor

Indicator v6 Moving averagesVolume
Updated 2 months ago · None stated GitHub repository of Liquidity Location Detector

This strategy identifies buy and sell entry points for XAUUSD using a combination of exponential moving averages, RSI, Stochastic oscillators, ATR, and Fibonacci zones. It supports multi-mode execution featuring confirmation and scalp entries triggered by over

Strategy v5 TrendOscillators & momentum

Alpy Kazan

by avatar-lavventura
2 stars

Alpy Kazan is a multi-timeframe momentum strategy combining a WaveTrend oscillator with dual-length RSI divergence calculations. It evaluates custom timeframes to plot overbought and oversold bands, WaveTrend crossovers, and RSI differentials in a separate pan

Strategy v4 Oscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Kazan

Half Causal Estimator

by regalouisei
2 stars

The Half Causal Estimator calculates a smoothed statistical baseline for metrics such as volume, true range, or price change. It uses time-of-day data hashing combined with non-parametric kernel filtering, supporting Gaussian, Epanechnikov, Triangular, and Sin

Indicator v6 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Half Causal Estimator

Close-to-Close Volatility (CCV)

by mushroom-men-Trading
2 stars

This indicator calculates close-to-close volatility from logarithmic returns of consecutive closing prices. It computes the standard deviation of those returns over a chosen length, annualizes the result with the square root of 252, and optionally smooths it w

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Close-to-Close Volatility (CCV)

This strategy plots support and resistance from the highest high and lowest low over a lookback window, and can overlay Bollinger Bands on the price chart. It calculates RSI or MFI, optionally from Heikin Ashi prices, and exposes WaveTrend, Laguerre smoothing

Strategy v5 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance with RSI and Trend Filter

Signal Processing

by Electrified-Trading
2 stars

This library supplies utility functions for handling signal values in Pine Script. The quantize function selects one of four results depending on whether the input value is positive, negative, zero or NaN. The negMult function multiplies the value by a given m

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Signal Processing

PineScriptMastery

by Web3Degenerate
2 stars

This educational strategy demonstrates how to implement trailing stop losses in Pine Script. It executes a single mock trade in the chosen direction starting at a user-defined timestamp. The trailing stop is calculated using either Average True Range or percen

Strategy v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of PineScriptMastery

HTF Candles & Pivots

by itmakesyousick
2 stars

Plots higher-timeframe (HTF) candle overlays, pivot point levels, and time division markers directly on the price chart. It renders HTF candle bodies and wicks with configurable fills, alongside traditional pivot calculations, Central Pivot Range (CPR), and ex

Indicator v5 Support & resistanceCandlestick patterns
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

ZigZag (Using Line Array) plots zigzag lines on the price chart to identify swing highs and lows. Bullish and bearish pivots are drawn with green and red lines respectively, while trap zones use orange and lime colors. Labels display pivot labels like HH or HL

Indicator v4 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of ZigZag (Using Line Array)

Trendsignal

by DaniilOkrug
2 stars

Trendsignal plots buy and sell markers on the price chart when a short-term trend flips. It measures the average high-low range and the highest and lowest prices over a fixed nine-bar window, then builds inner thresholds from the RISK setting. A close above th

Indicator v4 TrendBreakout Repaints
Updated 4 years ago · MIT GitHub repository of Trendsignal
1 stars

An indicator that reads a user-supplied CSV or data file published through Pine Seeds, using column index and delimiter settings, and overlays the external close, high and low on the current chart. Extras include an OLS regression channel, a z-score channel, a

Indicator v5 DivergenceMean reversion
Updated yesterday · None stated GitHub repository of External Data Reader Extended

My First Strategy

by jayadevrana
1 stars

This strategy plots an exponential moving average on the price chart and opens a long position when the close crosses above that average, but only when no position is already open. It exits with a percentage stop loss and a percentage take profit measured from

Strategy v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of My First Strategy

SMC Liquidity Context

by skipp-dev
1 stars

This indicator overlays smart money liquidity analytics directly onto the price chart by reading imported micro-profile data. It displays primary support and resistance levels, zone strength badges, context bias metrics, and sweep or mitigation markers. User i

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Liquidity Context

Drawing Visual Noise Geometry

by pineforge-4pass
1 stars

This strategy plots a 14-period simple moving average as a chart line and fills the space between two overlapping lines. It creates a small label on each bar, then overwrites the label text. It enters one long contract when close crosses above the line level a

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of Drawing Visual Noise Geometry

P Ver Plot Offset Series

by GammaExpansion
1 stars

This indicator plots the close price series with an offset determined by bar index modulo 5. The offset creates a shifted visual series for plotting purposes on the chart. It draws the plot directly on the main price chart pane. No trading signals or exits exi

Indicator v6 Support & resistance
Updated 6 days ago · MIT GitHub repository of P Ver Plot Offset Series

Volume Breakout Strategy

by kanylbullen
1 stars

This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries

Strategy v5 BreakoutTrend Repaints
Updated 7 days ago · None stated GitHub repository of Volume Breakout Strategy
1 stars

A strategy that builds a volume profile with delta over a lookback window and trades touches of its point of control and value area high and low levels, long or short. The window, bin count, value area percentage and touch tolerance in ticks are adjustable. Po

Strategy v6 VolumeSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of DeltaFlow Volume Profile Strategy

DEPV2 C5 - Mod Secici

by YuceSezar89
1 stars

DEPV2 C5 Mod Secici is a signal mode selection indicator designed primarily for 15-minute timeframes. It evaluates market conditions across four primary dimensions: HLC3 moving average trend scores, momentum rate-of-change z-scores, volatility expansions via f

Indicator v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 C5 - Mod Secici
1 stars

A long-only strategy for one-minute spot charts that uses two Bollinger Bands, a standard 20-period band on close and a short 4-period wide band on open, to classify entries into three cases. Entries can be limited to the first two hours of the Asian, European

Strategy v5 Volatility & bandsScalping
Updated 12 days ago · None stated GitHub repository of Double Bollinger Band 1M Scalper
1 stars

A price-chart indicator by AlgoAlpha that builds reversal bands around a moving basis, with band width set from a percentile of recent price moves. When price reaches a band it marks a bullish or bearish reversal signal and starts an ATR-based trailing stop li

Indicator v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Reversal Signals & Trailing Stop
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, rather than any earlier bar that would shift later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values ca

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

Turtle Trading System

by GreyssonEnterprises
1 stars

An indicator that plots a Donchian channel from the highest high and lowest low over a chosen length, with an optional midpoint line and shaded fill. It marks a bullish signal when the upper band rises and a bearish signal when the lower band falls, colours th

Indicator v5 BreakoutTrend
Updated 2 months ago · MIT GitHub repository of Turtle Trading System
1 stars

US Swing Entry Planner plans swing trading entries on daily price charts using dual entry models: pullback limit buys near the fast EMA and breakout buy-stop orders above pivot highs. It calculates ATR-based stop loss and profit targets along with position siz

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of US Swing Entry Planner

RSI Divergence

by rubbermetal
1 stars

RSI Divergence subtracts a slow RSI from a fast RSI and plots the difference as a four-color histogram in a separate pane. Color shows whether the gap is positive or negative and whether it is growing or shrinking. Markers appear on the bar where the gap cross

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of RSI Divergence
1 stars

This strategy computes the midpoint of the highest high and lowest low over a configurable lookback and enters long when price crosses above that line and short when it crosses below. An exponential moving average of each bar's high-low range is calculated but

Strategy v5 BreakoutSupport & resistance
Updated 4 months ago · MIT GitHub repository of Corpus Custom Function Breakout

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