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

A strategy for index charts such as the S&P 500 on five minutes, trading only inside a configurable New York time window. It looks for a large-bodied candle, measured against ATR, that follows a short-term liquidity sweep of recent highs or lows, with an optio

Strategy v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Gemini ICT V11 Extended Dashboard

Market Fear Gauge Pro

by wiktorjl
1 stars

A separate-pane sentiment oscillator that blends several fear and greed components into one composite score: VIX, market breadth, put/call ratio, safe-haven flows, momentum, price strength, junk bonds and an optional crypto component. Scores are shown as z-sco

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Market Fear Gauge Pro
1 stars

A utility overlay that places a text watermark on the chart in a single-cell table. Up to four lines can each show the ticker, exchange, timeframe, a live candle countdown timer or custom text, or stay empty. Settings choose the text size, colour and vertical

Indicator v6 Screeners & dashboards
Updated 7 months ago · None stated GitHub repository of Top Right Watermark
1 stars

This indicator screens daily price charts to identify potential parabolic snapback short and washout bounce long setups. It calculates price extension using moving averages, percentage gain lookbacks, and optional Bollinger Bands filters. Long signals require

Indicator v6 Mean reversionVolume
Updated 7 months ago · None stated GitHub repository of Parabolic Snapback & Washout
1 stars

This indicator plots a McClellan-style market breadth oscillator in a separate pane. It measures the gap between a fast and a slow exponential moving average of net advancing versus declining issues for NYSE or NASDAQ, or for custom tickers. A ratio-adjusted m

Indicator v6 Oscillators & momentum
Updated 7 months ago · None stated GitHub repository of Asymmetric McClellan Oscillator
1 stars

This strategy identifies the Initial Balance (IB) high and low during a user-defined opening session and trades breakout pullbacks. Once the IB window concludes and range filters are satisfied, it enters long or short when price breaks out and retraces back to

Strategy v6 BreakoutSessions & time
Updated 7 months ago · MIT GitHub repository of Gold IB Breakout Retracement

This strategy detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r

Strategy v5 Volatility & bandsBreakout
Updated 7 months ago · None stated GitHub repository of Bollinger Band Squeeze - Volatility Breakout

ICT iFVG Continuation Engine

by kashifali1234a12-beep
1 stars

A strategy that tracks fair value gaps on a higher timeframe, 15 minutes by default, and watches for price to tap a zone and then invert a one-minute fair value gap before entering. It trades only inside a set session window, limits trades per day, and can opt

Strategy v5 SMC / ICT / price actionSessions & time
Updated 8 months ago · None stated GitHub repository of ICT iFVG Continuation Engine

ICT 2022 Pure Mentorship

by cKm-IceCold
1 stars

A strategy that models an ICT-style sequence: it detects a liquidity sweep of a one-hour swing level, then waits for a market structure shift on the chart timeframe confirmed by a large displacement candle. Signals are limited to configurable London, New York

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of ICT 2022 Pure Mentorship
1 stars

Adaptive Regime Decoder estimates price velocity with a seven-point Savitzky-Golay style filter and plots it as a histogram and line in a separate pane. It also computes Shannon entropy of recent velocity values and compares it with a rolling percentile thresh

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Adaptive Regime Decoder

ATR Range Break

by itstherax
1 stars

Plots the 20-bar highest high and lowest low on the price chart, plus buy and sell levels set one ATR beyond them. A buy triangle appears when the close first moves above the upper level and a sell triangle when it first drops below the lower level. The ATR va

Indicator v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Range Break

HalfTrend

by 0xRadicalEd
1 stars

The indicator overlays HalfTrend trend-following lines and ATR channel bands on the main price chart. It calculates trend reversals using high and low price channels over a user-defined amplitude, combined with Average True Range deviation channels. Directiona

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of HalfTrend
1 stars

An oscillator pane that plots a Bollinger Band z-score as coloured columns with reference lines at plus and minus two and three. Colour depends on a volatility regime taken from the percentile rank of band width, separating squeeze, normal and expansion. It al

Indicator v5 SMC / ICT / price actionVolatility & bands
Updated 8 months ago · MIT GitHub repository of 15m BB-SMC Confluence Oscillator

Session Highlighter

by Timonkru
1 stars

The Session Highlighter indicator draws colored boxes over Asia, London, and New York trading sessions directly on the price chart. It calculates the session high and low price bounds based on custom session hours and timezone configurations. Upon session comp

Indicator v6 Sessions & timeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Session Highlighter
1 stars

A template file of simple Pine strategy examples, led by an EMA crossover that goes long when a 10-bar EMA crosses above a 20-bar EMA and short on the reverse. Other templates in the file show ATR-based stop loss and take profit, an RSI overbought and oversold

Strategy v6 Moving averagesTrend Repaints
Updated 8 months ago · None stated GitHub repository of EMA Crossover Template

This indicator plots a classic MACD line, signal line, and histogram in a separate pane. It subtracts a slow moving average from a fast moving average, then smooths that difference into a signal and shows the gap as columns. Alerts fire on histogram slope flip

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Moving Average Convergence Divergence
1 stars

This indicator measures trend strength with Bollinger Bands. It computes a simple moving average as basis and plots upper and lower bands using standard deviation. The region between bands fills with color. Bar color changes based on price position relative to

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Trend Strength Signals Enhanced
1 stars

A Pine v5 strategy that classifies the market as volatile, trending or ranging using ATR against its history and ADX thresholds. In trending conditions it trades a 9 and 20 EMA crossover, and in ranging conditions it fades Bollinger Band extremes. Stops and ta

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of APSAlgo Adaptive Pattern System
1 stars

Detects pivot highs and lows using a fractal length and draws Fibonacci retracement lines between the latest swing points on the price chart. Settings set the fractal length in bars and toggle the lines and their price labels. Pivots need the same number of ba

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Simple Fibonacci Analyzer

Agentic AI Trading Indicator

by Algorithmic-Token
1 stars

A price-chart indicator that draws two simple moving averages, Bollinger Bands and an RSI-based condition set, then prints buy and sell labels when a trend condition and a pullback condition agree. A signal strength value from zero to one counts confirmed cond

Indicator v5 TrendMean reversion
Updated 8 months ago · Custom licence GitHub repository of Agentic AI Trading Indicator

Mean Reversion Trading Bot

by BenjaminLettner
1 stars

This strategy executes mean-reversion trades by combining RSI momentum, Bollinger Bands volatility, dynamic ATR stops, and Exponential Moving Averages for trend filtering. It seeks entry opportunities when price reaches extreme Bollinger Band boundaries alongs

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Mean Reversion Trading Bot

MTV MTF

by coding-kian
1 stars

MTV MTF is a Pine v4 indicator that combines a fast EMA-based MACD with volume trend and candle shape across several timeframes. Each bar receives bull-type flags that are counted over the last few candles with weights that fade with age, and these feed sugges

Indicator v4 Oscillators & momentumVolume Repaints
Updated 8 months ago · None stated GitHub repository of MTV MTF
1 stars

A Pine v5 long-only strategy that switches behavior with an ADX trend reading. When ADX is above the threshold it buys on a fast EMA crossing above a slow EMA, and when ADX is below it buys on RSI under 30. It closes the long on the opposite EMA cross in trend

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of AU Adaptive Regime Switch

A price-chart indicator that combines an opening-range style bias with a candle range trigger. It compares a lower-timeframe pulse against the previous closed candle's high and low across several higher timeframes, counts how many disagree, and only accepts a

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of HORC x CRT Hybrid Stealth Dome v8.7

MES Gamma (0DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot d

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of MES Gamma (0DTE)
1 stars

An indicator in a separate pane that combines RSI, a normalized WaveTrend oscillator and relative volume into a weighted conviction score, with user-set weights for each part. A trend filter reads the slope of a higher-timeframe EMA, five minutes by default, t

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · None stated GitHub repository of Sniper Alert Wrapper
1 stars

0-DTE Momentum Continuation Pro is a Pine Script indicator that overlays labels on the price chart to mark A+ BUY, A+ SELL, B BUY and B SELL setups. It calculates EMA trend structure using fast and slow EMAs, checks momentum with close price position relative

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of 0-DTE Momentum Continuation Pro
1 stars

AGS Smart Signals 5M is an overlay indicator tuned for five-minute crypto charts. It draws an ATR-based cloud of bands around an EMA, filters direction with a trend EMA and RSI oversold and overbought levels, and marks buy and sell signals whose frequency is s

Indicator v5 ScalpingVolatility & bands
Updated 8 months ago · None stated GitHub repository of AGS Smart Signals 5M

Backtest Example

by propuchon
1 stars

A course example strategy that buys when a fast EMA crosses above a slow EMA and then manages the trade with a percentage stop loss and take profit measured from the average entry price. Only long trades are opened; the short condition is calculated but not us

Strategy v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Backtest Example
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It tracks the highest high over a 115-bar lookback. It buys when the close is at or above 70 percent of that high and sells when the close falls below 52 percent of it

Strategy v6 TrendBreakout
Updated 9 months ago · MIT GitHub repository of 52-Week High 115/70/52
1 stars

An overlay indicator that marks market structure from swing points. It draws continuation lines for breaks of structure in the trend direction and breaker lines for market structure shifts. A swing is a candle with a set number of lower or higher bars on each

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of ICT Breakers (BOS / MSS)

Draws horizontal lines at the open of selected higher periods on the price chart, with up to five configurable slots that default to daily, weekly, monthly and yearly. Each slot has its own timeframe, colour and lookback count of past opens. Options extend the

Indicator v6 Support & resistanceSessions & time Repaints
Updated 9 months ago · MPL-2.0 GitHub repository of Daily Weekly Monthly Yearly Opens
1 stars

This indicator plots an anchored VWAP and a moving average on the price chart. The VWAP anchor can be chosen automatically or set to session, week, month, quarter, year, highest high, lowest low or highest volume bar within a lookback. Up to three standard dev

Indicator v6 Moving averagesVolume
Updated 9 months ago · MPL-2.0 GitHub repository of Anchored VWAP + Moving Average

XT Market Sessions Private

by Voldemortexe
1 stars

This indicator plots session boundaries and opens on the price chart. It visualizes daily weekly and monthly opens, New York Midnight as the institutional day start, previous daily high and low, plus colored session boxes for Asia Frankfurt and London. Users t

Indicator v5 Sessions & time Repaints
Updated 9 months ago · None stated GitHub repository of XT Market Sessions Private

Crypto Entry Signal

by caizongxun
1 stars

A Pine v5 indicator that draws Bollinger Bands on the price chart and marks buy and sell triangles. A buy appears when volume is above its 20-bar average by a set multiplier, the band basis is rising, and price touches the lower band or breaks below it and clo

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of Crypto Entry Signal

Dual Momentum

by nxtaiapp
1 stars

An overlay indicator based on the global equity momentum approach of comparing assets over a monthly lookback. It requests monthly closes for a US equity ETF, an international equity ETF and a bond ETF, and compares their returns over a set number of months, 1

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 9 months ago · None stated GitHub repository of Dual Momentum

NXOG + FVG

by TavaresBugs
1 stars

The indicator detects and plots Fair Value Gaps across multiple timeframes on the price chart, including 15 minutes, 1 hour, 4 hours, daily, weekly, and monthly. It identifies institutional opening gaps such as NDOG, NWOG, and NMOG with colored boxes and label

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of NXOG + FVG
1 stars

The Advanced Trading System - Premium is an all-in-one chart overlay that combines market structure, smart money concepts, and momentum analysis. It identifies institutional order blocks, fair value gaps, break of structure, and change of character levels alon

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 9 months ago · MIT GitHub repository of Advanced Trading System - Premium

Dynamic DCA Equities/Gold

by LucasRibeiroCaetano
1 stars

A Pine v5 indicator that works on any chart by reading the S&P 500 to gold ratio on the weekly timeframe. It compares the ratio to its 200-week simple moving average and sets a regime only after 30 consecutive weekly closes on one side. Above the average it ti

Indicator v5 Screeners & dashboardsMean reversion
Updated 9 months ago · None stated GitHub repository of Dynamic DCA Equities/Gold

SmaCross Strategy

by SimonLai-28198
1 stars

A long-only strategy that buys when a short simple moving average crosses above a long one and closes the position when it crosses back below. Defaults are 10 and 50 bars, both adjustable. It draws both averages and buy and sell triangles on the price chart, e

Strategy v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of SmaCross Strategy

A Pine v6 overlay that implements smart money concepts: internal and swing market structure with break of structure and change of character labels, strong and weak highs and lows, equal highs and lows, premium and discount zones, and fair value gaps. Settings

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of SMC + Sessions & Liquidity Ultimate
1 stars

An indicator in a separate pane that plots the Money Flow Index from the typical price and a signal line made by smoothing it with a simple or exponential average. Green dots mark where the MFI crosses above the signal and red dots mark where it crosses below,

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Money Flow Index + Signal + Dots

ES Professional Fade

by knectardev
1 stars

An ES futures fade strategy designed to trade market opening gaps during regular trading hours. It calculates opening gaps using percentage, point, and ATR thresholds while employing a market breadth TICK filter to veto trades on trend days. It features an exe

Strategy v6 Sessions & timeMean reversion
Updated 9 months ago · None stated GitHub repository of ES Professional Fade
1 stars

Auto Chart Patterns Trendoscope automatically identifies and plots technical chart patterns on the main price chart using multi-depth ZigZag pivot calculations. It detects various geometric formations including channels, wedges, and triangles across rising, fa

Indicator v6 Support & resistanceTrend
Updated 9 months ago · None stated GitHub repository of Auto Chart Patterns Trendoscope

Momentum FX Order Block Zones

by mikedconcepcion
1 stars

An indicator that finds supply and demand zones after a short consolidation followed by a fast ATR-scaled breakout, and draws them as boxes on the price chart. Zones can be limited to windows around the hour and half hour in UTC, and to the direction of a high

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 9 months ago · MIT GitHub repository of Momentum FX Order Block Zones

Live Market Scanner - V7

by IamTamheedNazir
1 stars

The Live Market Scanner V7 is a real-time market analysis indicator that fuses MACD, RSI, EMAs, volume, and price momentum to calculate LONG and SHORT scores. It determines market status (LONG, SHORT, WAIT) using a sensitivity-based threshold and plots signals

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · Custom licence GitHub repository of Live Market Scanner - V7

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