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

This indicator monitors the current chart symbol and up to twelve user-defined tickers for volume breakout signals. It evaluates linear regression calculations on volume over configurable lengths, including periods of 6, 21, and a custom breakout setting. When

Indicator v4 VolumeScreeners & dashboards
Updated 3 years ago · None stated GitHub repository of Relative Volume Screener Alerts

HTF Candles & Pivots

by itmakesyousick
2 stars

This multi-functional indicator overlays higher timeframe (HTF) candles directly on the main chart alongside custom pivot points and an anchored Volume Profile. It calculates pivot levels from R5 to S5, Central Pivot Range (CPR), and price range forecasts whil

Indicator v5 Support & resistanceVolume
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

My CPR V2.0

by srinivas-yarramsetti
2 stars

An overlay indicator that calculates and plots Central Pivot Range levels alongside standard pivot points on the price chart. It computes daily, weekly, and monthly pivot lines including Central Pivot, Top Central, and Bottom Central, as well as three tiers of

Indicator v4 Support & resistance Repaints
Updated 3 years ago · None stated GitHub repository of My CPR V2.0
2 stars

This indicator plots a momentum-based ZigZag on the price chart from a QQE calculation driven by a multi-timeframe RSI. It marks bullish and bearish ZigZag segments, optional divergence and convergence between price and that RSI, and an optional Supertrend lin

Indicator v5 Oscillators & momentumDivergence
Updated 3 years ago · None stated GitHub repository of Modified Momentum QQE-ZigZag
2 stars

[CBB] MTF Penta RSI Strategy is an overlay strategy that tracks momentum across multiple time horizons using five distinct Relative Strength Index (RSI) calculations: a smoothed 4-period RSI, alongside 14, 30, 70, and 120-period RSIs. It evaluates whether thes

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of [CBB] MTF Penta RSI Strategy

Sassiz Ichimoku

by sassiz-root
2 stars

This overlay strategy plots a full Ichimoku set on the price chart: Tenkan, Kijun, displaced Chikou, and Senkou Spans A and B with a colored cloud. It marks a long when a confirmed Tenkan cross above Kijun occurs with price and Chikou above the lines and cloud

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Sassiz Ichimoku

The script computes a Nadaraya-Watson kernel regression estimate using a rational quadratic kernel on the input source. It plots the estimate as a line on the price chart. Bullish and bearish color changes occur when the estimate crosses or reverses direction

Indicator v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of Nadaraya-Watson: Rational Quadratic Kernel Non-Repainting
2 stars

This indicator calculates and plots multiple pairs of moving averages on the price chart, including 10/30, 5/13, 34/50, 72/89, and 180/200. Each pair fills a colored cloud between the short and long EMAs, with color changing based on which average is above the

Indicator v4 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of 10/30 Ripster EMA Clouds
2 stars

This indicator calculates and plots variations of the Hull Moving Average directly on the price chart. Users can select between standard Hull MA, Exponential Hull MA, and Triple Hull MA. The output can be displayed as a single moving average line or as a two-l

Indicator v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of Hull Suite by InSilico

My Strategy

by storm0611
2 stars

The script implements a basic moving average crossover trading strategy directly on the price chart. It calculates a 14-period and a 28-period simple moving average (SMA) and plots them as green and red circles. It enters a long position when the fast SMA cros

Strategy v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of My Strategy

Simple EMA Candle

by minaecer
2 stars

This indicator plots colored candles on the price chart using three Exponential Moving Averages. The 30-period EMA serves as the open, the 15-period EMA as the high, and the 10-period EMA as the low, with the original close value. Bar colors change based on co

Indicator v4 Moving averagesCandlestick patterns
Updated 4 years ago · MPL-2.0 GitHub repository of Simple EMA Candle

LevelZ

by ClimberMel
2 stars

LevelZ plots key session-based price levels directly on the main price chart. It calculates and displays the open, high, and low of the current regular trading hours (RTH) session, the overnight session high and low, and yesterday's RTH open, high, low, and cl

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 years ago · MIT GitHub repository of LevelZ

Impulse

by DaniilOkrug
2 stars

Impulse marks the start of a two-candle bullish or bearish push on the price chart when the second candle stays beyond a Fibonacci fraction of the first candle's range. It tracks each move's high and low, cancels the setup if price crosses back through the cho

Indicator v5 Candlestick patternsSupport & resistance
Updated 4 years ago · MIT GitHub repository of Impulse
2 stars

This strategy implements an automated dollar-cost averaging (DCA) trading system inspired by Market Cipher indicators. It calculates WaveTrend oscillator crossovers and a volume-weighted Money Flow index to trigger initial base orders, supporting both long and

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of MC Strategy - Aggressive

Oversold

by kat3samsin
2 stars

The oversold strategy identifies oversold conditions using the relative strength index with a 14 period. It applies an arithmetic linear moving average with a 20 period for trend filtering and requires the price to stay within 15 percent of this average. Stoch

Strategy v4 Mean reversionOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Oversold

Average Pivot Range - JD

by JorisDuyck
2 stars

Calculates the price range between swings determined by Jurik Moving Average turning points as an alternative to Average True Range (ATR). The script computes the magnitude of upward and downward price movements between pivots, displaying values in percentage

Indicator v4 Volatility & bandsMoving averages
Updated 5 years ago · MIT GitHub repository of Average Pivot Range - JD

Gamma/X Session Sweeps

by OverleveragedWhale
1 stars

An indicator that looks for a sweep and reclaim of the prior session's high or low during the first hour after the Asia, London and New York opens. Setups are marked on the price chart with a stop past the sweep, a fixed ES or NQ point target and an optional b

Indicator v6 SMC / ICT / price actionSessions & time
Updated yesterday · None stated GitHub repository of Gamma/X Session Sweeps

MA Slope

by xopromo
1 stars

An indicator on the price chart that trades the turning points of a moving average. A long or short idea starts when the average changes direction beyond a minimum slope filter. Exits come from slope slowing, the price to average spread narrowing or the averag

Indicator v6 Moving averagesTrend
Updated yesterday · None stated GitHub repository of MA Slope
1 stars

Marks buy and sell signals on the price chart using a 50 and 200 EMA trend filter, an optional weekly trend confirmation, volume spikes against a moving average and RSI levels. Two buy styles can be enabled: accumulation after a bottom, and momentum breakout.

Indicator v5 TrendBreakout
Updated yesterday · None stated GitHub repository of Institutional Buy & Sell v6

Bollinger Bands

by mydcc
1 stars

The Bollinger Bands indicator plots a middle band calculated from a moving average of the selected source and upper and lower bands that are a specified number of standard deviations away from the middle band. Users can adjust the length of the moving average,

Indicator v6 Moving averagesVolatility & bands
Updated yesterday · Custom licence GitHub repository of Bollinger Bands
1 stars

Detects liquidity sweeps around higher-timeframe compression zones and generates reversal trade signals. It screens setups using four layers: compression zones, volume vacuum detection, sweep classification (spike or grind), and pressure gradient momentum. An

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated yesterday · None stated GitHub repository of Liquidity Echo[BullByte]

Calm Kamaz

by Va3elina
1 stars

A one-minute strategy for perpetual crypto contracts that buys sharp drops. Entry needs a low RSI on three-minute candles, a price a set percentage below the hourly high, and a fall over two hours. Up to six larger buys can follow lower down a fixed ladder, an

Strategy v5 Mean reversionScalping Repaints
Updated yesterday · None stated GitHub repository of Calm Kamaz

Draws weekly and monthly volatility forecast levels on the price chart from a text block pasted into a settings box. Lines show 75th percentile and median ranges for five-day and month high-low and open-close moves, together with week open, week high and low,

Indicator v6 Volatility & bandsSupport & resistance

ZeroDTE MEIC v1

by xynkro
1 stars

An overlay that follows a ladder of same-day iron condors on the S&P 500 index or its ETF and mini equivalents. At four configurable time slots in the afternoon it estimates short call and put strikes from realized volatility sampled on five-minute bars, using

Indicator v6 Sessions & timeVolatility & bands
Updated yesterday · None stated GitHub repository of ZeroDTE MEIC v1

Intraday Regime Follower

by nvolpe2007-cell
1 stars

A long and short trend strategy that compares a 50-bar and 200-bar EMA with price position and EMA slope. It goes long in an uptrend, short in a downtrend and flat otherwise. A hysteresis band must be broken before the state flips, and an ATR-versus-cost gate

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of Intraday Regime Follower
1 stars

This script is a deprecated compatibility stub for the Market Lab indicator. It intentionally plots no data on the price chart and emits no formulas, signals, or alerts. The purpose of this stub is to direct users toward the canonical Market Lab script. The as

Indicator v6 Screeners & dashboardsSupport & resistance
Updated yesterday · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

Imbalance

by teshmi9z-beep
1 stars

An indicator that highlights imbalances, or fair value gaps, with yellow boxes on the price chart. It looks at three-bar sequences and draws a box where the low of one bar and the high of the bar two candles later do not overlap, in either direction. A strict

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated yesterday · MIT GitHub repository of Imbalance
1 stars

A simulation indicator that adds a fixed monthly contribution to a cash pool and compares two ways of investing it on one symbol. The timed approach buys on Bollinger and MACD dip signals, or after idle cash waits a set number of bars. The regular approach inv

Indicator v6 Mean reversionScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of Dip Mafia Timed HODL vs SIP

RCCE v2.2

by cianfru
1 stars

A price-chart indicator that classifies each symbol into a market regime using a long-period Z-score, volatility and fast versus slow energy readings, with thresholds for blow-off, trim and capitulation. It sets the asset class automatically as BTC, ETH, altco

Indicator v6 TrendScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of RCCE v2.2

A multi-part overlay that combines a Gravity Squeeze module, supply and demand inflection zones and optional pivot levels. The squeeze module filters by minimum volume and a maximum ADX and can draw shark icons and support markings. Inflection zones are boxes

Indicator v6 Support & resistanceVolatility & bands Repaints

Over-Sold/Bought Cost

by ankurksoni
1 stars

A price-chart overlay that uses cumulative volume delta built from a lower timeframe, one minute by default, to study the cost of buying and selling pressure. It tracks swing structure in the delta, ranks moves by a high-cost percentile and flags areas that lo

Indicator v6 VolumeDivergence
Updated 2 days ago · None stated GitHub repository of Over-Sold/Bought Cost

TopBot Adaptive (5m)

by drewstake
1 stars

Prints manual long and short signal labels on the price chart using an adaptive method trained on recent settled trade paths, with a warmup count before signals begin. It uses the previous closed candles and enters at the current open, applying a minimum direc

Indicator v6 AI / machine learningScalping
Updated 3 days ago · None stated GitHub repository of TopBot Adaptive (5m)

Booming Bulls Sniper

by jayadevrana
1 stars

Implements liquidity sweep and prop firm breakout strategies inspired by the Booming Bulls methodology. The script monitors previous-day, previous-week, and current-day highs and lows for liquidity sweeps where price wicks beyond a level without closing past i

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of Booming Bulls Sniper

Skipp Math

by skipp-dev
1 stars

Skipp Math is a utility library for Pine Script v6 containing constants and functions for probability calculations, statistical analysis, and data normalization. It provides clamping utilities, logit and sigmoid transformations, range position computation, 95%

Library v6
Updated 3 days ago · None stated GitHub repository of Skipp Math

AIO Blue

by jometa9
1 stars

A forex-oriented overlay that shades up to three trading sessions, by default New York, London and Tokyo, with optional range boxes, trendlines, mean lines, session VWAP and high and low markers for each. It also contains simple price alerts for EURUSD and GBP

Indicator v5 Sessions & time
Updated 4 days ago · None stated GitHub repository of AIO Blue

j14-E1 adv

by moonyroy
1 stars

This indicator plots ZigZag lines connecting swing highs and lows to map price structure. It draws candle body and shadow boxes on the price chart and detects CHoCH for potential trend shifts and BOS for continuation signals. The main setting toggles candle di

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

Strategy RSI

by Jakub-Pinkowski
1 stars

Calculates the Relative Strength Index (RSI) to generate entry signals directly on the price chart. The strategy opens a long position when the RSI crosses above the oversold level and a short position when it crosses below the overbought level. Users can cust

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

Aperture COG LinReg

by pineforge-4pass
1 stars

A long-only strategy that combines the Center of Gravity oscillator with a linear regression path. It enters long when the oscillator crosses above its EMA signal while the regression line is rising and price sits above it. It exits when the oscillator crosses

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Aperture COG LinReg

I Math Colors

by GammaExpansion
1 stars

The indicator plots values from multiple math and color functions in Pine Script v6. It tests pow, sqrt, exp, log, sin, cos, tan, abs, ceil, floor, round, avg, max, min, random, and constants like pi, e, phi. It also encodes colors and extracts components usin

Indicator v6
Updated 6 days ago · MIT GitHub repository of I Math Colors

EMA-Volume

by engtuncay
1 stars

EMA-Volume plots two exponential moving averages on the price chart and marks when the faster average crosses the slower one. It also calculates a simple moving average of volume and treats volume as high or low relative to that average. Ordinary crosses get s

Indicator v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of EMA-Volume

Cherry on Top

by ElroyvOuwerkerk
1 stars

A bar-by-bar indicator that marks a bearish signal when the current bar takes the previous high and closes within the lower division of its own range, and a bullish signal when it takes the previous low and closes in the upper division. The number of divisions

Indicator v6 Candlestick patterns
Updated 7 days ago · None stated GitHub repository of Cherry on Top
1 stars

A Supertrend strategy drawn on the price chart whose multiplier can adapt to the detected market regime using ADX. Entries need a minimum signal score and can be filtered by a trend EMA, a skip-ranging rule, a volume filter and a bar cooldown. Stop loss can us

Strategy v6 TrendVolatility & bands
Updated 7 days ago · None stated GitHub repository of SuperTrend AI Strategy Adaptive

GridWB3 V7

by cckmchiu-gapps
1 stars

This indicator draws a price and time grid on the price chart that scales itself in one of two modes. Full Visible Screen uses the highest high and lowest low of the bars currently on screen, while Fixed Historical Dates uses a chosen start and end date. The b

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

Academia PO3 Professional v3

by rosijay17-cmd
1 stars

An indicator that scores the market through the phases of the power of three model on the price chart: accumulation, manipulation, expansion, trend and exhaustion. Scores combine ATR contraction, price efficiency, bar overlap, relative volume, a flow proxy, li

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 7 days ago · GPL-3.0 GitHub repository of Academia PO3 Professional v3

A price-chart indicator that extends a futures screener with a buy confirmation engine. A focus panel scores one contract across five timeframes, a board scans a list of futures markets on one timeframe, and a checklist panel shows which confirmations pass on

Indicator v6 Screeners & dashboardsTrend
Updated 7 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener (Buy Checklist)

A Pine v6 research strategy for slower accumulation on crypto charts. It uses fast and slow trend EMAs, a weekly higher timeframe filter, an RSI accumulation threshold and a multi-timeframe regime cascade. Up to three entries can be added with a minimum bar ga

Strategy v6 TrendSupport & resistance
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Long Term Hold Companion

DEPV2 A1 · TR + ATR

by YuceSezar89
1 stars

This indicator calculates and plots True Range (TR) and Average True Range (ATR) in a separate pane. True Range accounts for price gaps between bar closes, while Average True Range smoothes TR over a configurable length parameter, which defaults to 10 bars. Tr

Indicator v6 Volatility & bands
Updated 12 days ago · None stated GitHub repository of DEPV2 A1 · TR + ATR

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