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

Trend Correlation Heatmap

by AubakirovArman
1 stars

Shows a heatmap of trend strength for up to four user-chosen timeframes. For each timeframe it measures the Pearson correlation of price with time over lookbacks from 50 to 500 bars in steps of 50, and colours each cell by strength and direction. It reports th

Indicator v5 TrendScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Trend Correlation Heatmap

PineFlow v6 — ORB Risk Strategy

by loveyuanfandj-glitch
1 stars

PineFlow v6 — ORB Risk Strategy executes opening range breakout trades filtered by trend and momentum indicators. It defines an initial opening range and trades breakouts during the active trading session when aligned with fast and slow EMAs, ADX momentum, and

Strategy v6 BreakoutSessions & time
Updated 3 months ago · MIT GitHub repository of PineFlow v6 — ORB Risk Strategy

SPE Cone Bands

by SeraKah-1
1 stars

An overlay indicator that draws a fan-shaped band projecting forward from the last bar. It uses the rolling mean and standard deviation of log returns to extend a median line and upper and lower lines by a chosen number of bars, scaled by a z-value input. It i

Indicator v5 Volatility & bands Repaints
Updated 3 months ago · MIT GitHub repository of SPE Cone Bands
1 stars

MTF Confluence Strategy is a Pine Script strategy that generates long and short signals based on Supertrend flips on the chart timeframe confirmed by Supertrend on a higher timeframe. Signals require ADX above a threshold for trending conditions and optional v

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of MTF Confluence Strategy

ICT Liquidity Engine - Base

by annihilateiwnw-create
1 stars

The ICT Liquidity Engine - Base indicator identifies key liquidity levels and market sessions on the price chart using the New York time zone. It calculates and plots previous daily, weekly, and monthly high and low levels to highlight institutional liquidity

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of ICT Liquidity Engine - Base

This indicator plots an adaptive RSI on the price chart for gold. It calculates RSI with adaptive lookback and filters signals using EMA trend, higher timeframe bias, slope threshold, ATR volatility, and structure confirmation near swings. Signals appear as bu

Indicator v6 Oscillators & momentumDivergence

EMA Crossover Strategy

by jaichaturvedi88
1 stars

A simple long-only strategy written for an Indian rupee account. It buys when the close is above a short EMA, default 9, and closes the position when the high falls below a longer EMA, default 26. Order size is a fixed rupee amount divided by price, and tradin

Strategy v6 Moving averagesTrend
Updated 3 months ago · None stated GitHub repository of EMA Crossover Strategy

Elephant Bars

by FranklyBrandon
1 stars

A price chart overlay that flags unusually large candles, called elephant bars, when the candle body is at least a set multiple of the average body over a lookback, 1.5 times and 100 bars by default. It also marks small retracement bars that follow an elephant

Indicator v5 Candlestick patternsMoving averages
Updated 3 months ago · None stated GitHub repository of Elephant Bars

Pocket Pivot Volume

by mervinj3546
1 stars

A Pine v6 indicator for daily charts that marks pocket pivot days with a blue circle below the bar. A pocket pivot is an up-day whose volume is higher than the highest down-day volume in the previous lookback bars. Optional filters require the close to be abov

Indicator v6 Volume
Updated 3 months ago · None stated GitHub repository of Pocket Pivot Volume
1 stars

This indicator overlays precomputed Elliott Wave count structures directly on the price chart for ETHUSD. It draws motive and corrective wave paths across primary and alternate wave scenarios, along with wave projections, subwaves, channels, invalidation level

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of ETHUSD Elliott Wave Count
1 stars

Plots horizontal lines representing Deribit Bitcoin options max pain strike prices for multiple expirations directly on the price chart. Each line extends from the latest bar to its settlement timestamp, with line width dynamically scaled according to open int

Indicator v6 Support & resistanceVolume
Updated 3 months ago · MIT GitHub repository of BTC Max Pain (Deribit)

Buddha Bands

by DarthBuddha
1 stars

A chart-overlay indicator that draws four pairs of long-term moving averages, each pair forming a filled band between a slow and a fast line. The default lengths are 20 and 21, 50 and 55, 200 and 233, and 365 and 377. Each band can be switched on or off, its m

Indicator v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of Buddha Bands

Detrended CVD Z-Score

by tthanhvu002sgu
1 stars

A Pine v6 separate-pane indicator that estimates delta from candle direction and volume, accumulates it and turns it into a Z-score over a rolling window, shown as a coloured histogram with a signal EMA and standard deviation lines. It adds divergence detectio

Indicator v6 VolumeDivergence
Updated 3 months ago · None stated GitHub repository of Detrended CVD Z-Score

Fusion Cipher A Overlay

by shahzaib-574
1 stars

This indicator draws an eight-line EMA ribbon with an optional cloud on the price chart, using Fibonacci-style lengths from 8 to 233 and an optional Heikin Ashi source. It adds symbolic guidance marks, long and short setup labels, a compression filter and a vo

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Fusion Cipher A Overlay

Indicator Template

by maxenko
1 stars

A Pine v6 starter template for an overlay indicator, not a finished analysis tool. It sets up grouped inputs for length, source, a signal-on-bar-close option, line and label display, bull and bear colours and a debug log toggle. It includes a helper for higher

Indicator v6
Updated 3 months ago · MIT GitHub repository of Indicator Template

FVG Auto-Trader

by DANIELMANZRU
1 stars

A strategy that detects fair value gaps and trades only those scoring high on a five-point quality check covering gap size, impulse strength versus ATR, candle body ratio and volume. Optional filters include a 200 EMA trend filter, premium and discount zone, s

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · None stated GitHub repository of FVG Auto-Trader

EMA Gold Trader 2026

by alexhb-maker
1 stars

An overlay for the price chart that plots a 60-period EMA, a 60-period double EMA and a 200-period EMA. It marks a buy triangle when the previous close sits above both the EMA and the double EMA, and a second triangle when the EMA crosses above the double EMA.

Indicator v6 TrendMoving averages
Updated 3 months ago · MIT GitHub repository of EMA Gold Trader 2026
1 stars

High Low - Candle Origin is an overlay indicator that draws the current and previous period high and low as lines starting at the exact candle that formed each extreme. The period can be 1 hour, 4 hour, daily or weekly, and the chart timeframe must be smaller

Indicator v5 Support & resistanceSessions & time
Updated 3 months ago · MIT GitHub repository of High Low - Candle Origin
1 stars

An oscillator in a separate pane that blends two readings into a composite bias from minus 100 to plus 100. One measures price impulse, rewarding large-body candles relative to ATR, and the other applies volume spread analysis using volume, spread and close lo

Indicator v5 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Institutional Footprint + VSA
1 stars

This indicator draws two ATR trailing stop lines on the price chart: a fast Sniper line and a slow Anchor line. A buy or sell trigger comes from the fast line flipping, and the README says it should agree with the slow line's direction. A session filter shades

Indicator v6 TrendVolatility & bands
Updated 3 months ago · MIT GitHub repository of Phoelix 15min Sniper Bot - Raw Ride Edition

Crypto Sniper 1H

by balax-studio
1 stars

A multi-timeframe crypto signal indicator designed for the 1-hour chart. It combines Bollinger Bands, Keltner Channels, RSI and EMAs with sweep and fair value gap patterns, a smoothed Williams %R confirmation from 15-minute data, 4-hour ATR for volatility and

Indicator v6 Volatility & bandsSMC / ICT / price action Repaints
Updated 3 months ago · None stated GitHub repository of Crypto Sniper 1H
1 stars

A comprehensive fundamental analysis dashboard overlay tailored for the Indonesian Stock Market (IDX). It evaluates stocks across up to seven dimensions: Value, Quality, Growth, Health, Income, Momentum, and an optional Indonesia macro factor. The script autom

Indicator v6 Screeners & dashboards
Updated 3 months ago · MIT GitHub repository of Saham: Papan Instrumen
1 stars

Papan Gerak is a multi-dimension technical analysis dashboard aimed at Indonesian stocks. This base module declares the indicator in a separate pane and stores the display and calculation settings used by the dashboard. It covers table position, font size, com

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

BTC Master Window Analysis

by ShubhRanpara
1 stars

This overlay indicator divides Bitcoin price history into repeating time windows measured in days, with an optional gap between windows and an optional custom start date that phase-locks each cycle. For each window it sets a center and upper and lower bounds f

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · MIT GitHub repository of BTC Master Window Analysis

EMA Cross (Clean)

by ForexCodes-hq
1 stars

A small Pine v6 example strategy that goes long when a 12-period EMA crosses above a 26-period EMA, and only acts on a confirmed bar. After entry it attaches a fixed stop loss placed a set number of points below the average entry price, set by one input. There

Strategy v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of EMA Cross (Clean)
1 stars

The ATR Breakout Channel strategy detects breakouts by comparing the current close price to the high or low of the previous 20 bars, forming a channel. Entries occur when the price breaks through the channel in the trend direction of a 200-period EMA if the tr

Strategy v6 BreakoutTrend
Updated 3 months ago · MIT GitHub repository of ATR Breakout Channel [QuantForge]

Research Alpha Subset

by woodstock-tokyo
1 stars

A Pine v6 indicator in a separate pane that plots seven research formulas, each as its own line. They combine drawdown from a recent high with relative volume, inverted short RSI values, a panic-sell reversal term, a five-bar return minus a share of the twenty

Indicator v6 Oscillators & momentumMean reversion
Updated 3 months ago · None stated GitHub repository of Research Alpha Subset

Fat Tail System vFinal.2

by zyuzhong470
1 stars

A strategy that looks for a volatility squeeze using a normalised Bollinger Band width, then waits for rising linear regression slope momentum and a break above recent resistance before entering. Exits use an ATR-multiple stop loss, an optional reward-to-risk

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago · None stated GitHub repository of Fat Tail System vFinal.2

Mean Reversion + Trend Filter

by antonispaterakis
1 stars

A strategy that trades RSI reversals in the direction of a 200 EMA trend. It buys when RSI crosses up through the oversold level above the EMA and sells short when RSI crosses down through the overbought level below it. Each trade has an ATR-multiple stop, siz

Strategy v5 Mean reversionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Mean Reversion + Trend Filter

GEKO Gold

by grzegorzkowalskigk-jpg
1 stars

GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of GEKO Gold

Fractal Model (TTrades)

by abhinaynatraj
1 stars

An overlay that draws higher-timeframe candles beside the current chart and adds T-spot detection, sweep logic and fractal model labelling. The higher timeframe is chosen automatically or set manually, with a bias setting, remaining-time timer, labels and an i

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Fractal Model (TTrades)

Auric Sentinel

by arslanahmad429
1 stars

A multi-layer overlay that combines an EMA ribbon with a higher-timeframe EMA and price context, swing-based order blocks, a premium and discount zone, session and volatility filters, and a risk table. Settings choose the EMA lengths, swing bars, invalidation

Indicator v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of Auric Sentinel
1 stars

BottleRocket Pivot Breakout is an intraday trading strategy designed to capture breakout moves above daily pivot levels. It derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum sto

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of BottleRocket Pivot Breakout
1 stars

A Pine v6 strategy for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. It enters long or short when RSI pushes through set levels plus a gap, with optional candle color, EMA 200 trend, ATR range and body-size filters, and a pullback re-e

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

Marks order block zones on the price chart for gold. A displacement candle is one whose range is at least 1.2 times ATR on above-average volume; the last opposite-colour candle before it becomes the zone. Each zone is scored on five checks such as clean body,

Indicator v5 SMC / ICT / price actionScalping
Updated 4 months ago · None stated GitHub repository of Krishna Simple OB Scalper - XAUUSD

LSC Pattern

by mrdungx2603
1 stars

LSC Pattern is an on-chart indicator designed to detect three-bar price reversal patterns known as LSC Low and LSC High. An LSC Low bullish pattern occurs when the second bar forms a local trough relative to its adjacent bars and the third bar closes above the

Indicator v6 Candlestick patterns
Updated 4 months ago · None stated GitHub repository of LSC Pattern

Toxic Flow Radar

by omm9846
1 stars

A volume-based order flow gauge in a separate pane. It estimates buying and selling volume from each candle's close position within its range, then measures how one-sided that flow has been over a rolling window, in the style of VPIN. Columns turn green or red

Indicator v6 VolumeOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Toxic Flow Radar
1 stars

An overlay that scans for trend-continuation pullbacks. It reads a 1-hour EMA stack for bias, waits for a close through the latest confirmed swing to mark a market structure shift, then draws the 0.62 to 0.79 Fibonacci optimal trade entry zone of that leg. A s

Indicator v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of Market Structure + OTE

Pro Algo System

by Meghraj-N
1 stars

This strategy combines a stack of exponential moving averages with RSI, MACD, stochastic and a volume spike check before entering long or short trades. Stops and targets are set from ATR multiples, with an optional ATR trailing stop, and position size is deriv

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Pro Algo System

Sentinel Intelligence Strategy

by FolahanWilliams
1 stars

A strategy that trades mean reversion using a composite score built from RSI, MACD, 50 and 200 SMA trend, Bollinger bands, Z-score and volume. Longs and shorts trigger when oversold or overbought readings agree with a confidence gate, with filters against buyi

Strategy v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Sentinel Intelligence Strategy
1 stars

Identifies 3-candle price patterns that combine structural liquidity sweeps with candle breaks. In a bullish pattern, a second candle sweeps the low of an initial bearish candle before closing above its open, followed by a third candle closing above the previo

Indicator v6 Candlestick patternsSMC / ICT / price action
Updated 4 months ago · None stated GitHub repository of 3-Candle Pattern Clean

Asia Session Box

by riegodavid-git
1 stars

A small overlay indicator that draws a box around a fixed 30-minute window each day, defined in Philippine time (Asia/Manila). The only timing input is the start hour, 7 by default, so the window runs from the start of that hour to half past. The box expands t

Indicator v6 Sessions & timeSupport & resistance
Updated 4 months ago · None stated GitHub repository of Asia Session Box
1 stars

Ultimate Trend Suite [AI] is an overlay indicator that combines trend identification, momentum, volume analysis, and smart money concepts. It generates buy and sell signals based on moving average crossovers confirmed by volume above its average. The script ca

Indicator v5 TrendVolume
Updated 4 months ago · None stated GitHub repository of Ultimate Trend Suite [AI]

AI Animal Predator

by unemployedrabi
1 stars

Detects harmonic XABCD patterns on the price chart: Gartley, Bat, Butterfly, Crab, Shark and Cypher, in bullish, bearish and potential incomplete forms. Each pattern receives a score. Settings choose which pattern types to show, an optional lookback in bars, t

Indicator v5 Support & resistance
Updated 4 months ago · MIT GitHub repository of AI Animal Predator
1 stars

An intraday overlay combining candle range theory with price action. It plots break of structure and change of character labels from swing pivots, the previous higher-timeframe candle as a range with premium and discount shading, previous day high and low, the

Indicator v5 SMC / ICT / price actionSessions & time
Updated 4 months ago · MIT GitHub repository of Forex Analyst - CRT + Price Action
1 stars

A price-chart indicator that builds a zigzag from pivot highs and lows and searches it for classic chart patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and falling wedges. Each pattern gets

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

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