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

Elliott Wave Impulse

by arnjesix
1 stars

An overlay that builds a zigzag from pivot highs and lows over a chosen length and searches those pivots for a five-wave Elliott impulse structure within an error tolerance. When one is found it draws the wave lines, labels and target levels on the price chart

Indicator v4 Support & resistance Repaints
Updated 4 days ago · MIT GitHub repository of Elliott Wave Impulse

ES1! Short 1D MA200 MA5

by luifertorres
1 stars

A short-only daily strategy for E-mini S&P futures, the mirror of the long version. It enters short when the 200-period SMA is falling, the candle is bullish and the whole bar sits above the 5-period SMA, and it closes the position when price closes below the

Strategy v6 Mean reversionMoving averages
Updated 5 days ago · MIT GitHub repository of ES1! Short 1D MA200 MA5

j14-E1 adv

by moonyroy
1 stars

j14-E1 adv is an overlay indicator that maps higher-timeframe price structure on the chart. It builds a developing higher-timeframe candle as a wick box and a body box, tracks whether the last bar is inside the previous range, and draws aqua and orange zigzag

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 days ago · None stated GitHub repository of j14-E1 adv

Indicator RSI

by Jakub-Pinkowski
1 stars

This indicator calculates the Relative Strength Index (RSI) and displays buy and sell labels directly on the main price chart. A buy label triggers when the RSI crosses below the user-defined oversold threshold, while a sell label appears when the RSI crosses

Indicator v6 Oscillators & momentum
Updated 6 days ago · None stated GitHub repository of Indicator RSI

Advanced Trade Metrics

by pineforge-4pass
1 stars

Advanced Trade Metrics is an overlay breakout strategy that uses a 20-bar Donchian channel to generate trade signals. It opens long positions when the closing price breaches the prior 20-bar high and short positions when it drops below the 20-bar low. Position

Strategy v6 BreakoutTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Advanced Trade Metrics

I Lang Series

by GammaExpansion
1 stars

This Pine Script test fixture indicator evaluates and plots various Pine Script language execution behaviors. It tracks short-circuit evaluation call counts, conditional technical calculations like RSI inside conditional statements, function-level persistent v

Indicator v6 Repaints
Updated 6 days ago · MIT GitHub repository of I Lang Series

EMA-Volume

by engtuncay
1 stars

EMA-Volume calculates two Exponential Moving Averages alongside volume moving averages derived from scaled USD volume. It draws directly on the price chart, plotting both moving averages with bullish and bearish crossover markers and colored background highlig

Indicator v6 Moving averagesTrend
Updated 6 days ago · None stated GitHub repository of EMA-Volume

ATAS Levels

by ElroyvOuwerkerk
1 stars

An indicator that redraws levels exported from an ATAS workspace onto a TradingView chart. The user pastes a text feed of lines, rectangles and full-width zones, and the script draws those matching the chart's ES or NQ family with their labels, colours and tim

Indicator v6 Support & resistance
Updated 7 days ago · None stated GitHub repository of ATAS Levels

RSI Above 70 Buy

by kanylbullen
1 stars

A simple long-only strategy that buys when the RSI rises above a chosen level, 70 by default, and closes the position when the RSI crosses back below that level. The RSI length and the level are adjustable. The RSI line and the level are drawn in a separate pa

Strategy v6 Oscillators & momentum
Updated 7 days ago · None stated GitHub repository of RSI Above 70 Buy

GridWB3 V6

by cckmchiu-gapps
1 stars

This indicator draws a price and time grid on the price chart with automatically calculated bounds. It takes the highest and lowest close since a chosen start date, falls back to the first available bar when the symbol's history starts later, and uses an end d

Indicator v6
Updated 7 days ago · None stated GitHub repository of GridWB3 V6

A strategy that defines a 30-minute range, waits for a breakout, then looks for a retracement into a configurable percentage band before entering on a lower-timeframe trigger. The range can be each closed 30-minute candle, the session opening range, or a matur

Strategy v6 BreakoutSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of 30m Range Retracement + 5m Entry Strategy

Phantom Flow Core

by darup67
1 stars

A price-chart indicator that combines an ATR trend line, similar to a SuperTrend with a configurable multiplier and source, with market structure tools. The trend line switches colour and prints buy and sell labels when the trend flips, with an optional backgr

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 7 days ago · Custom licence GitHub repository of Phantom Flow Core

An earlier Pine v6 version of a day trading research strategy for crypto charts. It combines RSI, Fibonacci Bollinger Bands, trend moving average, Ichimoku, pivot support and resistance, candlestick and chart pattern modules into a weighted score. A trading se

Strategy v6 Support & resistanceSessions & time
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Day Trading S/R Execution v2

DEPV2

by YuceSezar89
1 stars

DEPV2 is a multi-symbol Pine Script v6 indicator for cryptocurrency trading. It analyzes 20 Binance symbols including BTC, ETH, SOL, and others using four signal classes: TREND, MOMENTUM, VOLATILITY, and VOLUME. The indicator supports multiple modes including

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

MA + R:R Strategy

by MuhammadMuhamid
1 stars

A strategy that combines optional multi-timeframe moving average trend filters, SuperTrend, linear regression, VWMA, volume and higher-high structure checks to trigger entries on crypto spot pairs. Risk is set with a swing-low stop and a take profit at a chose

Strategy v6 TrendMoving averages Repaints
Updated 12 days ago · None stated GitHub repository of MA + R:R Strategy

Donchian Breakout

by quantxaashish
1 stars

Donchian Breakout identifies potential momentum shifts based on Donchian channel extremes. It calculates highest highs and lowest lows across a user-defined lookback period. A bullish signal triggers when the current high matches or exceeds the channel high an

Indicator v5 BreakoutTrend
Updated 13 days ago · MIT GitHub repository of Donchian Breakout

This indicator measures underlying chart and market data properties to highlight conditions that may produce unreliable backtest results. It evaluates trading costs like commission and slippage against median bar ranges, detects zero-volume bars, and flags pri

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 13 days ago · MPL-2.0 GitHub repository of Taught to Trade - Backtest Integrity Scanner

Fractal

by Just-beyond-z
1 stars

An overlay that draws a projection of higher-timeframe candles next to the chart and tracks a sweep, confirmation and change-in-state-of-delivery sequence between a lower and a higher timeframe. The pair can be set automatically or by hand, with a bias option,

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 13 days ago · None stated GitHub repository of Fractal
1 stars

Williams Swings V2 plots short-term, intermediate-term and long-term swing zigzags on the price chart and marks key and critical levels for each horizon. It flags break-of-structure events and optional critical-break and key-warning alerts. Settings control st

Indicator v6 Support & resistanceSMC / ICT / price action

An overlay indicator that plots 9, 21 and 50 period EMAs and prints BUY or SELL labels when the 9 EMA crosses the 21, price sits on the correct side of the 50 EMA, the candle matches the direction and volume is above its 20-bar average. On each signal it store

Indicator v5 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of 9-21-50 EMA Strategy With SL Hit
1 stars

Measures the high to low range of a morning session and an afternoon session each weekday, defaulting to 0930 to 1200 and 1200 to 1600, and draws them as boxes on the price chart. A dashboard compares the two ranges and keeps statistics over previous days. A w

Indicator v6 Sessions & timeScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of AM vs PM Range Analysis
1 stars

A long-only strategy for the price chart that pairs a lower timeframe with a higher one, selected by a volatility mode: 10 and 45 minutes, 15 and 75 minutes, or 30 and 120 minutes. It buys when price crosses above the 20 EMA with RSI above 52 while price is ab

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of TV Adaptive MTF Strategy

Cumulative Volume Index

by AkashSasikumar47
1 stars

A Pine v6 indicator in a separate pane that plots a running total of advancing volume minus declining volume for a chosen US exchange. The exchange can be NYSE, NASDAQ, AMEX, ARCX, US total or Dow Jones. It reads the exchange up-volume and down-volume symbols

Indicator v6 Volume
Updated 2 weeks ago · MIT GitHub repository of Cumulative Volume Index

Fibonacci Retracement

by AkashSasikumar47
1 stars

This indicator automatically calculates and plots Fibonacci retracement and extension levels directly on the price chart. Utilizing a ZigZag library to identify major price swings, it draws horizontal levels corresponding to key ratios such as 0.236, 0.382, 0.

Indicator v6 Support & resistance Repaints
Updated 2 weeks ago · MIT GitHub repository of Fibonacci Retracement
1 stars

A test script that plots a long list of built-in values on the price chart so a converter can be checked against exported chart data. It includes Supertrend, parabolic SAR, VWAP with weekly bands, volume indicators such as OBV and accumulation distribution, pi

Indicator v6 TrendVolume Repaints
Updated 3 weeks ago · Apache-2.0 GitHub repository of AlphaResin Conformance 2

Fibonacci SR Strategy

by moonyroy
1 stars

This strategy identifies bullish and bearish Pin Bar or Engulfing candlestick patterns interacting with Fibonacci levels calculated from a 1,440-bar lookback range. It enters long or short positions when a valid candlestick pattern crosses a Fibonacci level. E

Strategy v6 Support & resistanceCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Fibonacci SR Strategy

Options Ladder

by rahul43177
1 stars

Draws an options entry plan on the price chart from a text line pasted into a settings box. The pasted line can carry a status, expiry, near and structural resistance and support bands, a trigger zone, a best candidate strike with premium, alternatives, invali

Indicator v5 Support & resistance
Updated 3 weeks ago · None stated GitHub repository of Options Ladder

Adaptive Signals V18

by Matthew-Eucaristo
1 stars

A crypto futures signal indicator in a separate pane, the later version of the V17 script. It scores setups and shows only those passing a validity gate, using a trend pullback engine with limit-style entries and a range engine that fades stretched moves. Filt

Indicator v6 TrendMean reversion
Updated 3 weeks ago · MIT GitHub repository of Adaptive Signals V18

[ad] SFP + FVG / IFVG

by amadeo987
1 stars

This overlay indicator draws swing-based liquidity levels, fair value gaps and inverted fair value gaps on the price chart. It marks a sweep as RAW after a wick takes a swing and price closes back, then shows a short confirmation label after a later close beyo

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · MIT GitHub repository of [ad] SFP + FVG / IFVG

FVG Screener TW

by gplee789-afk
1 stars

This indicator scans up to 40 symbols across a user-defined timeframe to identify Smart Money Concepts Fair Value Gaps, Inversion FVGs, displacement bars, and internal order blocks. It calculates a weighted quality score for each gap, monitors price proximity,

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 3 weeks ago · MPL-2.0 GitHub repository of FVG Screener TW
1 stars

An overlay that finds bullish and bearish order blocks from a pattern across several candles, with an adjustable lookback, and draws boxes that extend a set number of bars. Blocks below a minimum size in ATR multiples are skipped, and mitigation is judged by w

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · MIT GitHub repository of Enhanced Roman Order Block

TradeVisor BTC Strategy

by Rahib00494
1 stars

A Bitcoin strategy that enters long or short when price, a fast and slow EMA and a 50-period SMA trend filter agree, RSI sits inside a set band, MACD line and histogram point the same way, and volume is near its average. Each trade gets an ATR-based stop and a

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of TradeVisor BTC Strategy

Range XV [ATAS Style]

by pranay123-stack
1 stars

A price-chart overlay that groups bars into custom range blocks. A developing range closes when its high-low span reaches the chosen point size and volume is at least a set multiple of its recent average. A box shows the forming range, a triangle marks the dir

Indicator v5 VolumeBreakout
Updated 5 weeks ago · None stated GitHub repository of Range XV [ATAS Style]

Inside Bar Breakout

by JACKZHOU0521
1 stars

The Inside Bar Breakout indicator identifies inside bar patterns and detects subsequent price breakouts beyond the mother bar boundaries. It marks inside bars with diamonds, plots mother bar high and low reference lines, and generates close-confirmed breakout

Indicator v6 BreakoutCandlestick patterns
Updated 5 weeks ago · None stated GitHub repository of Inside Bar Breakout

ORB + ICT Backtest Strategy v2

by mccallister-dev
1 stars

This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f

Strategy v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v2

Bot v13 TV Exporter

by saniroy3311-spec
1 stars

A helper indicator that plots raw indicator values in a separate pane so they can be compared bar by bar with an external Python bot. It outputs a 200 and a 50 period EMA, ATR, RSI, the plus and minus directional indicators, raw ADX and an EMA-smoothed ADX, a

Indicator v5
Updated 5 weeks ago · None stated GitHub repository of Bot v13 TV Exporter
1 stars

This indicator calculates a multi-factor trend and momentum score by combining triple exponential moving averages, Supertrend, ADX regime filters, WaveTrend, and StochRSI oscillators. It identifies regular divergences across pivot points, checks multi-timefram

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Momentum Confluence Suite [MCS] v2

Kernal Cipher 1

by kdricha0602
1 stars

A large price-chart overlay that combines many filters into tagged signal markers. It uses a 21, 50 and 200 EMA stack with slope, a higher-timeframe reference, Supertrend, ADX regime, WaveTrend, StochRSI, regular and hidden divergence, relative strength agains

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 1

EQH / EQL Liquidity

by mumbi-dev
1 stars

An overlay indicator that finds pivot highs and lows and marks equal highs and equal lows, the areas where buy-side and sell-side liquidity tend to rest. Pivots must match within a percentage tolerance, sit a minimum number of bars apart and pass an ATR promin

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 weeks ago · MIT GitHub repository of EQH / EQL Liquidity
1 stars

A long-only strategy ported from a bot, intended for five-minute crypto charts. It buys dips when a reversal candle appears, a three-day trend gate is satisfied, and one of three paths holds: Z-score with RSI, Z-score with the lower Bollinger Band, or RSI with

Strategy v6 Mean reversionScalping
Updated 6 weeks ago · None stated GitHub repository of Crypto Mean Reversion
1 stars

An enhanced version of the ATR SuperTrend-style buy and sell indicator. Signals can be gated by a 9 and 21 EMA cross, and two ATR take profit levels are drawn. A smart money layer adds clustered support and resistance zones, break of structure and change of ch

Indicator v6 TrendSMC / ICT / price action
Updated 6 weeks ago · None stated GitHub repository of Zimpact Buy/Sell v3 Enhanced
1 stars

A Pine v5 indicator, written as the second layer of a gold-focused framework, that reads market direction from moving averages across weekly, daily, 4-hour and 1-hour data. A timeframe is bullish when price sits above 9, 21 and 50 averages in order, bearish wh

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Market Direction and HTF Bias

An extended version of a Bollinger Band wick marker that labels candles with wicks beyond the bands on the 15-minute timeframe. It adds RSI overbought and oversold alerts, an RSI divergence check, a repeated-wick warning, shooting star and engulfing candle det

Indicator v6 Volatility & bandsCandlestick patterns
Updated 6 weeks ago · MIT GitHub repository of Bollinger Band Wick Marker with RSI Alerts

Key Level Confluence

by mrme000m
1 stars

The Key Level Confluence indicator plots support and resistance levels on the price chart. It calculates pivot highs and lows, the point of control from a simplified volume profile, VWAP, EMA50 and EMA200, Bollinger Bands, and ATR-based stop levels. Confluence

Indicator v5 Support & resistanceMoving averages
Updated 7 weeks ago · None stated GitHub repository of Key Level Confluence

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