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

Saham: Papan Instrumen By. Akhmfz is a fundamental analysis dashboard tailored for Indonesian equities on the IDX. It calculates a multi-dimensional score across valuation, business quality, growth, financial health, dividend income, momentum, and an optional

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Instrumen By. Akhmfz
1 stars

This technical analysis dashboard aggregates market data across four dimensions: trend, momentum, volatility, and volume. It evaluates multiple technical indicators including exponential moving averages, SuperTrend, ADX, RSI, MACD, Stochastic, Bollinger Bands,

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak By. Akhmfz

Non-repainting HTF EMA

by ForexCodes-hq
1 stars

This indicator plots an exponential moving average calculated from a user-defined higher timeframe directly on the price chart. It avoids repainting and lookahead bias by applying a one-bar historical offset to the higher-timeframe data with lookahead disabled

Indicator v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of Non-repainting HTF EMA

This overlay indicator unifies three optional alert modules on the price chart. It plots a fast and a slow exponential moving average and an optional horizontal price level. On confirmed bars only, it sends webhook-ready JSON when the fast average crosses the

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Multi-Condition Alert Manager [QuantForge]

Volumetric Regression Heatmap

by woodstock-tokyo
1 stars

An overlay indicator that fits a regression channel over a base period, optionally resizing the period with volatility, and fills parallel levels above and below it with a colour gradient based on traded volume. Optional mean reversion signals appear when pric

Indicator v6 VolumeMean reversion Repaints
Updated 3 months ago · None stated GitHub repository of Volumetric Regression Heatmap
1 stars

A starter template for a Pine v6 indicator in a separate pane, with comments in Chinese. It computes two exponential moving averages of a chosen source with different lengths, converts the first into a 0 to 100 rolling percentile, and offers show toggles and a

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Template A Separate Pane Indicator

GEKO HYBRID MASTER

by grzegorzkowalskigk-jpg
1 stars

GEKO HYBRID MASTER is a custom oscillator indicator that merges RSI, Stochastic, MFI, MACD, and SATS volatility filters for signal confirmation. It calculates composite momentum with normalized MACD, body-proportional CVD, divergences, HTF EMA slope and ADX tr

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · Custom licence GitHub repository of GEKO HYBRID MASTER

Abhi's Live Price Action

by abhinaynatraj
1 stars

An overlay built around quarter theory for NQ and ES style futures. Each hour is split into four 15-minute quarters, and the script tints hours and three-hour blocks, draws quarter dividers, labels in-stat and out-of-stat extremes, marks sweepers, bias shifts

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Abhi's Live Price Action

Dollar Cross Play

by majohnst
1 stars

The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Dollar Cross Play
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. Entries use RSI levels with a gap, plus candle color, EMA 200, ATR and body-size filters, and an optional pullback re-entry. This version sets a tighter fixed

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v21

Smart Money Zones PRO

by KavyaBaghel
1 stars

Maps buy and sell zones on the price chart from confirmed pivots with above-average volume, using the nearest opposite-colour candle as the order block. Nearby zones merge within a pip gap and are capped in size, graded by volume, and marked fresh, tapped or w

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Smart Money Zones PRO
1 stars

This overlay indicator maps smart-money market structure on the price chart. It labels swing points as higher highs, higher lows, lower highs, and lower lows, and draws Break of Structure and Change of Character lines when structure breaks. A multi-timeframe t

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of SMC Market Structure + MTF

An ICT-style overlay that detects a swing leg from confirmed pivots, then draws the 0.62, 0.705 and 0.79 optimal trade entry zone with a projected target. A signal needs a minimum confluence score built from structure shift, liquidity sweep at the leg origin,

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of OTE Optimal Trade Entry Confluence

Sentinel TA Score & Confluence

by FolahanWilliams
1 stars

An oscillator in a separate pane that combines RSI, MACD histogram, 50 and 200 SMA trend, Bollinger position, volume ratio and gap behaviour into a composite score from minus 100 to plus 100. It also plots long and short confluence readings from 0 to 100, an o

Indicator v6 Oscillators & momentumMean reversion
Updated 4 months ago · None stated GitHub repository of Sentinel TA Score & Confluence

LTF FractalsSweep + IFVG

by riegodavid-git
1 stars

An overlay indicator for lower timeframes that tracks the latest fractal highs and lows and draws a dotted line when price sweeps one, with an alert on bar close. It also detects fair value gaps, with optional filters for volume, ATR gap size and short-term tr

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of LTF FractalsSweep + IFVG

Candle Counter

by unemployedrabi
1 stars

Counts consecutive candles of the same colour and shows the running count as labels on the price chart. It also builds a table that records how often each streak length occurred and what followed. The price basis can be regular candles or Heikin Ashi. An alert

Indicator v5 Candlestick patterns
Updated 4 months ago · MIT GitHub repository of Candle Counter
1 stars

A strategy version of a chart pattern detector. It builds a zigzag from pivots, finds patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and wedges, and scores their quality. Trades are entered

Strategy v5 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2 Backtest

Simple Options Bias Strategy

by SankarSrinivasan1
1 stars

This strategy determines directional market bias for options traders by combining a 20-period Exponential Moving Average (EMA) and a 14-period Relative Strength Index (RSI). It enters a long position when the closing price is above the 20 EMA and RSI is below

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · GPL-3.0 GitHub repository of Simple Options Bias Strategy

Marketman Intraday Profile Indicator

by brandonking078-boop
1 stars

An indicator for the price chart aimed at index futures such as ES and NQ. It tracks the New York session, building a session volume profile from price and volume to derive the point of control and value area, and shows session VWAP with bands, previous day hi

Indicator v5 VolumeSessions & time
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile Indicator

BB(10,2) MTF Confirm

by zraesdev-hub
1 stars

This overlay strategy trades a close and open below the lower Bollinger Band, using a period and multiplier set on the chart timeframe. An optional higher-timeframe Bollinger Band can confirm entries before orders are placed. Mode S1 exits at a percentage take

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) MTF Confirm

Unified Trade Signal

by ashishgkwd
1 stars

Unified Trade Signal is an overlay indicator that prints a buy or sell label only when several conditions agree on the same bar. For a buy, price must break above a Nadaraya-Watson envelope upper band, the fast EMA must be above the slow EMA, an adaptive trend

Indicator v6 TrendOscillators & momentum Repaints
Updated 4 months ago · None stated GitHub repository of Unified Trade Signal
1 stars

An indicator for the price chart that looks for pullbacks inside a trend. It uses ADX and directional indicators with a rising-ADX check to confirm trend and direction, then measures the distance from the recent swing high or low in ATR units. Optional filters

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Trend Scanner (ATR Pullback)
1 stars

An oscillator in a separate pane that applies fractional differencing to price and converts it to a rolling Z-score for one-minute Nasdaq futures. It looks for snapback entries after a deep extreme beyond the band, with the price turning back, and can add pric

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 1m Quality Setups

RTE Overlay GBPUSD 5M

by Jagadeesh963
1 stars

This overlay indicator draws a fixed visual snapshot on the GBPUSD price chart only when the last bar is forming. It places a translucent box labeled FVG, a horizontal line and label marked MSS, and a text label reading GBPUSD bullish, all using hardcoded pric

Indicator v5 SMC / ICT / price action
Updated 4 months ago · None stated GitHub repository of RTE Overlay GBPUSD 5M

Bears and Bulls

by rubbermetal
1 stars

An overlay candlestick pattern detector that marks bullish and bearish patterns on the price chart. Patterns are grouped into single, double, triple and multi-candle categories that can each be switched on or off, and each is coloured by reliability level. An

Indicator v6 Candlestick patterns
Updated 4 months ago · MPL-2.0 GitHub repository of Bears and Bulls
1 stars

This Pine Script strategy tests type casting and mathematical operations using logarithmic scaling on price deviation. It calculates a simple moving average over a user-defined length, computes the absolute spread between price and the average, and scales it u

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Cast And Log10 Support
1 stars

This overlay indicator fits a quadratic regression parabola to recent source prices to show a curved trend, its slope, and its curvature. Hyperbola bands use ATR and a curve-sensitivity multiplier so they widen when the trend bends and tighten when it is strai

Indicator v6 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Parabola & Hyperbola Structure

DST HMM v9 XAUUSD

by Javas128282
1 stars

DST HMM v9 XAUUSD classifies the market into hidden regimes such as Sideways, Bull and Bear using a hidden Markov model retrained on a rolling window with Baum-Welch iterations. It adds a Kalman filter line with confidence bands and an optional multi-bar Kalma

Indicator v6 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of DST HMM v9 XAUUSD
1 stars

A strategy version of a crypto signal indicator that goes long or short when a 50 and 200 EMA trend, RSI and fast MACD ranges, ATR percent, volume ratio and ADX all pass a minimum entry score. An optional macro filter checks Bitcoin, dominance, TOTAL2 and TOTA

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Micro Atomic Crypto Alpha Strategy
1 stars

The script is an indicator that plots multiple moving averages on the price chart. It displays HMA 9, EMA 16, HMA 21, EMA 34 and EMA 50 lines with separate bullish and bearish colors plus optional band fills for each. Users toggle visibility of lines and fills

Indicator v6 Moving averages
Updated 5 months ago · None stated GitHub repository of EMA High/Low/Median Ribbon

Trend + Scalp + Stop Signals

by Ershubhambhagat
1 stars

A price-chart indicator that shows VWAP, a central pivot range, three EMAs, Supertrend and previous-day levels, then scores conditions to print trend signals, scalp signals and stop or exit signals. Minimum score thresholds for trend and scalp signals are adju

Indicator v5 TrendScalping
Updated 5 months ago · None stated GitHub repository of Trend + Scalp + Stop Signals

AlphaTrend Pro

by shubhamtaywade82
1 stars

A multi-layer strategy for crypto futures that groups indicators into trend, momentum and volume layers. Trend uses Supertrend, KAMA and Ichimoku, momentum uses MACD, Stochastic RSI and PZO, and volume uses relative volume. A first-come-first-served queue lets

Strategy v6 TrendOscillators & momentum Repaints Archived
Updated 5 months ago · None stated GitHub repository of AlphaTrend Pro

Talons Breaker Block

by muammeryldrm42
1 stars

A strategy that finds impulsive engulfing-style candles to define order block zones, then waits for a zone to fail when price closes through it. A failed bullish zone becomes a short setup on a retest below a 200 EMA, and a failed bearish zone becomes a long s

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons Breaker Block

Titan Edge Multi Strategy

by spfogels-web
1 stars

A futures strategy that bundles five entry styles, pivot rejection, dynamic zone rejection, opening range breakout, VWAP rejection and EMA bounce, each of which can be switched on or off. Trades pass optional filters for VWAP, EMA, RSI momentum, volume, a VIX

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of Titan Edge Multi Strategy

Fresh Supply & Demand Zones

by kvmafthab-pixel
1 stars

Fresh Supply & Demand Zones is a Pine Script v6 indicator that detects and plots fresh supply and demand zones on the price chart. It identifies momentum candles based on ATR period and body size threshold, then scans back for base candles to form zones. Zones

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Fresh Supply & Demand Zones
1 stars

An overlay indicator that tracks the Asia, London and New York sessions in a chosen timezone and draws each session's high, low and opening range. It marks sweeps of the previous session's high or low and reclaims back inside, derives a bullish or bearish sess

Indicator v6 Sessions & timeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Session Bias v1

Buy the Dip Futures 1000x

by PETERSAMUELOPS12
1 stars

A long-only dip-buying strategy for leveraged futures. Entries fire when price falls a set share of its recent high, with the depth optionally scaled to the asset's own historical maximum dip, when price sits below an EMA by a set percentage, or after a MACD c

Strategy v6 Mean reversion
Updated 5 months ago · None stated GitHub repository of Buy the Dip Futures 1000x
1 stars

This indicator plots the Parabolic Stop and Reverse (SAR) on the price chart with customizable acceleration start, increment, and maximum values. It highlights trend reversals where the price crosses the SAR line, marking flip points with directional triangula

Indicator v6 TrendScreeners & dashboards
Updated 5 months ago · None stated GitHub repository of SAR with tweakable aparameter

BVortex Multi

by Alberto082544
1 stars

The BVortex Multi strategy combines a Vortex indicator with an ADX filter to detect trend changes. It calculates Vortex values scaled for stronger signals and confirms trend direction using swing pivots on high and low prices. Buy triggers occur when Vortex cr

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex Multi

MC-Predict HullMA v2

by ebarkinkaras-lang
1 stars

A price-chart overlay that plots a Hull moving average with a set of EMAs, SuperTrend and Bollinger Bands, and scores the market by weighting trend, momentum, volatility, volume, support and resistance, and a k-nearest-neighbours estimate. The nearest-neighbou

Indicator v5 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of MC-Predict HullMA v2

SahanS Full Indicator

by sahansbandara
1 stars

An all-in-one overlay indicator that merges a divergence detector, smart money concepts, order blocks, liquidity swings and moving averages. The divergence part checks regular and hidden divergences between price and up to ten oscillators including RSI, MACD,

Indicator v5 DivergenceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of SahanS Full Indicator

OMEGA ULTIMATE STRATEGY

by princeleuel-code
1 stars

A strategy built on the same smart money concepts as its indicator sibling: swing structure, order blocks and fair value gaps scored into a confluence value that must pass a minimum before a trade. Size is set from a risk percentage per trade, with an optional

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of OMEGA ULTIMATE STRATEGY

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