Synced with GitHub · updated today

Free TradingView Pine Scripts

8,340 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
8,340 scripts
6 stars

This strategy identifies long gap-and-go breakout opportunities on intraday US stock charts. It filters equities across three sequential stages: verifying fundamental criteria (minimum three-year average ROCE and market capitalization via financial data reques

Strategy v5 TrendBreakout
Updated 3 months ago · MIT GitHub repository of Quality Trend-Join-Long (gap-and-go)

FxHD Strategy v2.0

by alboogycOdR
6 stars

FxHD Strategy v2.0 is a Fibonacci multi-timeframe strategy drawn on the price chart. It reads a higher timeframe, defaulting to four hours, and sets bias with CRT kill zones, the last two candles, dynamic CRT, or market structure, plus a fallback method. It pl

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of FxHD Strategy v2.0

MarketMerge

by mgnyc11
6 stars

MarketMerge generates an on-chart MarketSurge-style data panel featuring CANSLIM analysis, fundamental metrics, relative strength ratings, and key technical overlays. It calculates composite ratings based on multi-timeframe relative strength against a benchmar

Indicator v6 Screeners & dashboardsMoving averages
Updated 8 months ago · MIT GitHub repository of MarketMerge
6 stars

This strategy evaluates higher-timeframe four-hour ADX momentum and RSI conditions to generate long trades on lower timeframes like 15 minutes. Entries trigger when 15-minute RSI drops relative to four-hour RSI under specific directional strength conditions. P

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System

TurtleStrategy_Crypto

by OktayBogazkaya
6 stars

This strategy trades long breakouts of the highest high over a user-set period. It enters when the close is above that prior high and the position is flat, then sizes the order from account equity, a risk percentage, and ATR times a multiplier. It exits when t

Strategy v6 TrendBreakout
Updated 1 year ago · MIT GitHub repository of TurtleStrategy_Crypto

Simple Strategy

by TradersPost
6 stars

Simple Strategy is an educational strategy script designed to demonstrate automated order messaging and webhook alerts. It executes on the main price chart, entering long when the current bar closes above the previous close and entering short when it closes be

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Simple Strategy

MultiPeriodOverBS

by wanjo-tech
6 stars

This strategy calculates volume-weighted Relative Strength Index (RSI) values across multiple timeframes, specifically 15-minute and daily periods. It averages the resulting short- and long-term RSIs into an oscillator to identify extreme overbought and overso

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of MultiPeriodOverBS

All-In-One Oscillator

by ZachLegros
6 stars

This indicator combines multiple momentum and volume metrics into a single separate pane. It calculates a WaveTrend-style stochastic oscillator derived from Heikin Ashi values, a volume-weighted Money Flow Index (MFI) centered at zero, an exponential-smoothed

Indicator v4 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of All-In-One Oscillator

Mxwll Suite

by eonfutures
6 stars

Mxwll Suite is a comprehensive price action and Smart Money Concepts (SMC) technical indicator that plots market structure, key price levels, and order flow zones directly on the main price chart. It detects internal and external market structures including Br

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mxwll Suite

Wiseplat Sideways

by WISEPLAT
6 stars

The Wiseplat Sideways indicator identifies dynamic consolidation periods and highlights ranging price action directly on the chart. It evaluates price variation across consecutive bars against a configured percentage threshold to detect sideways movement. When

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Wiseplat Sideways

Edge 59

by subos2008
6 stars

This indicator identifies trend-following breakout opportunities by combining directional movement, trend channels, and multi-period price extremes. It calculates an ADX-colored weighted moving average, a linear regression trend filter based on a volatility ch

Indicator v5 TrendBreakout
Updated 2 years ago · Custom licence GitHub repository of Edge 59
6 stars

This indicator aggregates buy and sell signals from four technical tools: Exponential Moving Averages, Bollinger Bands, Fisher Transform, and MACD. It evaluates specific price conditions and crossovers to classify market states into Strong Buy, Weak Buy, Stron

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of 4 Indicator Signal Strategy

VOIDRLM

by voidrlm
6 stars

The script VOIDRLM combines multiple technical analysis tools into a single overlay indicator on the price chart. It calculates multi-timeframe pivot points, volume-weighted average price (VWAP), customizable moving averages, moving average clouds, supply and

Indicator v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of VOIDRLM
6 stars

This indicator plots multiple types of moving averages on the price chart including SMA, EMA, ALMA, EPMA, and others. Users select the MA type and can apply the same parameters to all or each individually. Key inputs include offset, gamma, smooth, sigma, and w

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Moving Averages Refurbished

Zeroline

by sharkpunch5
6 stars

Zeroline is a trend-following strategy designed around the No Nonsense Forex (NNFX) methodology. It combines a primary trigger and confirmation system (Didi index), a secondary confirmation (Kuskus), a volume filter, and a Kaufman Adaptive Moving Average (KAMA

Strategy v4 TrendMoving averages
Updated 4 years ago · MIT GitHub repository of Zeroline

AlgoSight Strategy

by ashishanildhage
6 stars

This long-only momentum strategy combines the Relative Strength Index with the Moving Average Convergence Divergence indicator. It opens a long trade when the RSI has been in oversold territory within the last five bars and the MACD line crosses above its sign

Strategy v4 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of AlgoSight Strategy

This indicator calculates the relative strength of a chart symbol relative to a benchmark index and plots the resulting line directly over the price chart. It highlights new relative strength highs, new lows, and instances where relative strength reaches a new

Indicator v4 BreakoutMoving averages
Updated 5 years ago · None stated GitHub repository of Relative Strength Line by @iArpanK

NowoIchimokuV1

by seannowotny
6 stars

This strategy overlays Ichimoku lines and a cloud on the price chart, plus a stochastic RSI and an upper band from a Hull moving average and standard deviation. It opens one long inside a date window when the cloud is green and price is above the cloud and con

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · None stated GitHub repository of NowoIchimokuV1
6 stars

This indicator combines the Stochastic oscillator, Relative Strength Index (RSI), and MACD to detect aligned momentum signals. A bullish state occurs when Stochastic rises above 20 and stays below 80, RSI is above 50, and the MACD line is above its signal line

Indicator v4 Oscillators & momentumTrend
Updated 5 years ago · None stated GitHub repository of Combined Stochastic & RSI & MACD Signal
6 stars

This indicator plots average-range high and low levels on the price chart. It averages the previous bar range with a simple moving average and projects an upper and lower level for the current period from the bar's high, low, and close. Separate counts, lookba

Indicator v4 Volatility & bandsSupport & resistance Repaints
Updated 5 years ago · None stated GitHub repository of Average Daily Range High Low
5 stars

This strategy calculates Bollinger Bands and monitors band width relative to a historical moving average to identify low-volatility squeeze regimes. It draws upper, lower, and basis bands directly on the price chart while shading squeeze periods in yellow. A l

Strategy v5 Volatility & bandsBreakout
Updated today · MIT GitHub repository of Bridge 04 - Bollinger Squeeze

Cross Levels (ES-SPY/SPX)

by 345-strategies
5 stars

Translates key reference levels between CME E-mini S&P 500 futures (ES) and cash equity equivalents (SPY or SPX), displaying them directly on the price chart. When applied to an ES chart, it projects cash session highs, lows, opens, prior period levels, and ga

Indicator v6 Support & resistanceSessions & time
Updated 2 days ago · MPL-2.0 GitHub repository of Cross Levels (ES-SPY/SPX)

The Xsodus Supertrend Strategy is a long-only Pine Script strategy that overlays the Supertrend indicator on the price chart to generate buy signals for long positions when the trend is up. It calculates the Supertrend line using a configurable length and mult

Strategy v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Xsodus Supertrend Strategy (Long Only)
5 stars

This strategy calculates a Moving Average Convergence Divergence (MACD) and signal line using 12 and 26-period simple moving averages requested from a fixed 5-minute timeframe. It enters a long position when the MACD line crosses above the signal line while th

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of Broken MACD Strategy
5 stars

Combines trend-following moving average entries with an astronomical cycle filter. Entries trigger on a rising EMA filter and are gated by Vedic astronomical events like eclipse windows and Vishti karana. The strategy offers two distinct exit styles: a trend m

Strategy v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant - Kala-Chakra Strategy

Pivot Trendline Trading

by AllienNova
5 stars

Pivot Trendline Trading is an automated strategy that identifies pivot-constrained trendlines and calculates quality scores for potential setups. It uses an Efficiency Ratio and EMA cross count to determine trending regimes before entering on trendline breakou

Strategy v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of Pivot Trendline Trading

BPA [yohtza]

by forecho
5 stars

This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of BPA [yohtza]

HH-LL Buy/Sell + EMA

by vinitpatil519
5 stars

This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of HH-LL Buy/Sell + EMA

ORB Algo | Flux Charts

by vaskosmihaylov
5 stars

This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode

Indicator v6 BreakoutSessions & time
Updated 2 months ago · GPL-3.0 GitHub repository of ORB Algo | Flux Charts
5 stars

This indicator screens many symbols for close-to-close inside bars, a stricter inside bar that also requires the close to continue in the prior candle's direction. It scans either a pasted symbol list or one page of a preset Nifty index list, with a hard limit

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 3 months ago · MPL-2.0 GitHub repository of Close-to-Close (C2C) Inside Bar Screener

Breakout AVAAI BITGET

by tarasprystavskyj
5 stars

Breakout AVAAI BITGET is a cryptocurrency breakout strategy that identifies entry points using price channels alongside ATR, MACD, ADX, and volume trend filters. Long and short entries trigger when price breaches Donchian-style highest highs or lowest lows und

Strategy v6 BreakoutTrend
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI BITGET
5 stars

This overlay marks order blocks on the price chart at the origin of an impulsive move when that candle anchors a Fair Value Gap. Several recent swings are tracked so clustered highs and lows each keep a block. Detection uses the first gap off a swing or a stru

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of FVG Validated Order Blocks

SuperThree

by anishmanissery
5 stars

SuperThree is an enhanced Supertrend indicator designed to identify uptrends, downtrends, sideways consolidation, and counter-trend momentum. It calculates upper and lower bands based on Average True Range (ATR) and a multiplier factor. Visual fills on the pri

Indicator v5 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of SuperThree
5 stars

This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti

Strategy v5 Support & resistanceMean reversion Repaints
Updated 4 months ago · MIT GitHub repository of PDL — Prior Day Level Retest (Bull)

Path A — ORB (Demo)

by plutothedev
5 stars

This indicator calculates the opening range high and low for the first N minutes of a user-defined session. It plots the ORB levels on the price chart and emits long breakout signals when price closes above the ORB high and short breakout signals when price cl

Indicator v5 BreakoutSessions & time
Updated 5 months ago · Custom licence GitHub repository of Path A — ORB (Demo)
5 stars

This script is a simple exponential moving average crossover strategy designed as an example test script. It calculates a 14-period fast EMA and a 28-period slow EMA, plotting both lines directly on the price chart. The strategy triggers a long position entry

Strategy v6 TrendMoving averages Repaints
Updated 5 months ago · MIT GitHub repository of [SA-TEST 02] EMA Crossover

I2.0 SM Radar

by CedInvest
5 stars

I2.0 SM Radar plots Smart Money Concepts zones on the price chart for crypto. It marks bullish and bearish Order Blocks, Fair Value Gaps with age-based fading, liquidity zones at equal highs and lows, and previous day week month highs and lows. It also detects

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · Custom licence GitHub repository of I2.0 SM Radar

CSI based on RSI, BB and Vol

by chaise-cogent
5 stars

This indicator calculates a custom CSI value using price body ratio, volume score, and range z-score normalized by ATR. It generates bull and bear sentiment signals when CSI, RSI below 60, and Bollinger Band conditions align simultaneously. Bull signals trigge

Indicator v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · MIT GitHub repository of CSI based on RSI, BB and Vol
5 stars

The Adaptive Window Size indicator computes a quadratic signal from the chosen source series using absolute differences normalized by total variation. This signal feeds into an exponential formula to produce an adaptive window size value. The script plots both

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Adaptive Window Size

Chande Momentum Oscillator

by SiegerTerpstra
5 stars

This indicator calculates the Chande Momentum Oscillator by comparing the sum of price gains to the sum of price losses over a defined lookback period. It plots the resulting oscillator line in a separate pane alongside configurable upper, lower, and zero refe

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Chande Momentum Oscillator
5 stars

This indicator implements Tom DeMark's TD Sequential methodology on the price chart to detect trend exhaustion and reversal zones. It counts the Setup phase of nine consecutive bars comparing closes to four bars prior, tracks setup perfection, and advances int

Indicator v6 TrendMean reversion
Updated 1 year ago · None stated GitHub repository of TD Sequential - Official DeMark
5 stars

This overlay indicator marks market structure on the price chart. It detects swing highs and lows with a configurable lookback, then labels Break of Structure only after a two-candle retracement check. It also marks Change of Character and a dual Change of Cha

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BOS & CHOCH with FVG & Fib Zones
5 stars

This indicator detects classic price structure on the chart by finding swing pivot highs and lows over a user-defined period. It draws connecting lines and labels for lower lows, lower lows with lower highs, higher highs, and higher highs with higher lows, plu

Indicator v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Chart Patterns [ActiveQuants]
5 stars

This indicator overlays external Bitcoin signal markers on the price chart. At a user-set minute poll interval it is meant to draw up or down triangles for buy and sell decisions and a label with the decision, strength and confidence. In the published code tho

Indicator v4
Updated 1 year ago · MIT GitHub repository of BTC市场监控系统信号

Trended CVD modified

by rubystar0512
5 stars

This indicator calculates directional cumulative volume delta across price swings identified by an imported ZigZag library. It tracks bar-by-bar volume signs based on price direction and evaluates net volume across individual price legs directly on the price c

Indicator v5 VolumeTrend
Updated 2 years ago · None stated GitHub repository of Trended CVD modified

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