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

BWC Momentum v5

by tonimaxx
1 stars

A long-only strategy for stocks that enters when the close is above both a 50-period and a 200-period SMA, RSI is above a set minimum, volume exceeds a multiple of its average, price has stayed above the 50 SMA for several bars and dollar volume passes a floor

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · Custom licence GitHub repository of BWC Momentum v5
1 stars

An indicator that combines several normalised oscillators, namely RSI, CCI, Fisher, DMI, Z-Score and a moving-average ratio, into one composite, then groups values into clusters over a rolling lookback. Lower and upper percentile settings mark extreme zones, a

Indicator v6 AI / machine learningOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Simplified Percentile Clustering

FPL Cheatcode

by onlyspx
1 stars

This indicator draws up to six configurable moving averages on the price chart. Each has its own type (SMA, EMA, SMMA, WMA or VWMA), length, source, offset and optional higher timeframe. Defaults are 50 and 200 averages on the chart timeframe plus hourly 21 EM

Indicator v6 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of FPL Cheatcode

PA Strategy Backtest

by Chovy-King
1 stars

A strategy version of a price-action signal set with eleven switchable entry setups, such as trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest and double top or bottom. Levels come from clustered swing points, with 20,

Strategy v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of PA Strategy Backtest

AlgoBot FHB Strategy Long Only

by ghostnathan30-ops
1 stars

A long-only first-hour breakout strategy for Nasdaq futures on the 15-minute chart. It records the 9:30 to 10:30 New York range, then enters at the close of the first bar after 10:30 that closes above it while price is above a 50-period EMA. The stop is an ATR

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot FHB Strategy Long Only

Beginner EMA + RSI + ATR

by Sandesh30-cloud
1 stars

Beginner EMA + RSI + ATR is a long-only trend-following strategy plotted directly on the price chart. It identifies an uptrend when the 50-period EMA trades above the 200-period EMA, triggering long entries when the 14-period RSI crosses above the 50 centerlin

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Beginner EMA + RSI + ATR

Kill Zone Liquidity Sweeps tracks the Asian trading session high and low prices and monitors for liquidity sweeps during the London session. When price temporarily breaches the prior Asian high or low during the London kill zone but closes back within the rang

Indicator v5 SMC / ICT / price actionSessions & time
Updated 6 months ago · MIT GitHub repository of Kill Zone Liquidity Sweeps - Castle Trade

BOS Indicator

by cavaldos
1 stars

Marks break of structure events on the price chart, based on swing pivots found with a leg-detection routine. It tracks two structure levels: a swing level with a default length of 50 and an internal level with a default length of 5. Each can be shown or hidde

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of BOS Indicator

Algo2.0

by dtheran1
1 stars

A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo2.0
1 stars

An overlay indicator that shades four trading sessions, New York, London, Tokyo and Sydney, with editable hours, colours, labels, range boxes and dividers. It also detects pivot-based order blocks and draws them on the chart, with a mitigation setting that dec

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Sessions + Order Blocks
1 stars

Detects bullish and bearish order block zones from swing structure and draws them as boxes on the price chart. Each zone can carry volume information and an optional mirrored volume bar. Settings control swing length, how many zones are shown, whether a Wick o

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks MTF 2026-2
1 stars

A strategy version of an oscillator indicator built on a channel length, average length and short length. It opens long and short positions from the oscillator signals, uses 10 percent of equity per order and allows a very high pyramiding count, so many same-d

Strategy v6 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Bull4Life Hunters with TP

CVD Profiles

by Focal-QuantAI
1 stars

An indicator in a separate pane that builds volume profiles from cumulative volume delta using lower-timeframe volume. A model setting switches between CVD, imbalance ratio, activity and USD volume. Profiles reset daily or from a fixed start time, with an adju

Indicator v6 Volume Repaints
Updated 6 months ago · None stated GitHub repository of CVD Profiles
1 stars

This strategy trades reversal candlestick patterns such as hammer, doji, engulfing, stars, harami, piercing line and shooting star on the price chart. Pattern strength, ratios and size are adjustable, and optional filters use volume, a trend EMA, RSI, moving a

Strategy v5 Candlestick patterns
Updated 6 months ago · Apache-2.0 GitHub repository of Advanced Candlestick Pattern Strategy
1 stars

Estimates the mean-reversion half-life of price in bars by fitting an Ornstein-Uhlenbeck model with a rolling regression on log prices. A lookback input sets how many bars feed the regression, and the half-life is capped for display. Optional bands show the me

Indicator v5 Mean reversionVolatility & bands
Updated 6 months ago · None stated GitHub repository of Half-Life Estimator (O-U)

my TPO

by Devtest-Dan
1 stars

My TPO is an overlay market profile indicator that builds time price opportunity profiles for each four-hour, daily or weekly period and draws them on the price chart. It plots the point of control, value area high and low with a configurable percentage, an in

Indicator v6 Support & resistanceVolume
Updated 6 months ago · None stated GitHub repository of my TPO
1 stars

This Pine Script strategy detects ICT smart money concepts including order test zones, fair value gaps, and wicks on BTC and XAUUSD price charts. It calculates swings using pivot high and low. Signals enter long or short when the order test zone is hit with su

Strategy v5 SMC / ICT / price actionCandlestick patterns
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya BTC Improved

Breadth Dip Buying

by AlanGuo
1 stars

A long-only strategy that combines a market breadth index, the percentage of stocks above their 50-day average, with a long moving average of 225 periods. When price is above the average, it buys if breadth drops below 25. In bear mode, which is off by default

Strategy v6 Mean reversionMoving averages
Updated 7 months ago · None stated GitHub repository of Breadth Dip Buying

NQ SSR Strategy

by CathalF
1 stars

The NQ SSR Strategy is a trading strategy for Nasdaq futures contracts. It generates buy and sell signals based on multi-timeframe pivot high and low detection across 4H, 1H and 5M timeframes. Signals are plotted directly on the price chart as entry and exit p

Strategy v6 TrendSupport & resistance
Updated 7 months ago · None stated GitHub repository of NQ SSR Strategy

Risk & Lot Calculator

by Jony2176
1 stars

Risk & Lot Calculator is an overlay position-sizing tool for forex. The user sets an entry time, entry price and stop loss on the chart, plus account balance and risk percentage. The script draws the stop and two take-profit levels, from reward-to-risk ratios

Indicator v5
Updated 7 months ago · None stated GitHub repository of Risk & Lot Calculator

Precious Metals Dashboard

by TehbynDFRNT
1 stars

Overlays fast, slow and trend EMAs with an optional cloud, cross triangles and volume spike markers on the price chart, and pulls spot gold, silver and a list of ASX gold and silver miners through security requests. A table summarises daily change, RSI, volume

Indicator v6 Screeners & dashboardsMoving averages
Updated 7 months ago · None stated GitHub repository of Precious Metals Dashboard
1 stars

A strategy for automated order routing that formats alert messages for a MetaTrader connector service. Inputs cover a license identifier field, symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage. Selected i

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy

WirezardStrategyTester

by udhansingh
1 stars

A stock-oriented strategy that scores each bar from minus 100 to plus 100 by combining RSI, an impulse MACD, VIDYA, volume spikes, a spread and wick proxy for market depth, and sector ETF strength against a benchmark. Buy entries need the score above a thresho

Strategy v6 Oscillators & momentumTrend Repaints
Updated 7 months ago · MIT GitHub repository of WirezardStrategyTester

Smart Volume Profile

by billy1030
1 stars

An overlay indicator that builds a volume profile on the price chart over the visible range, a fixed number of bars or a custom time span. Rows split volume into buy and sell parts, and the script marks the point of control, value area high and low, buy and se

Indicator v6 VolumeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Smart Volume Profile

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a long-only position trading strategy designed for Bitcoin. It tracks price drawdowns relative to All-Time High (ATH) levels to execute a five-stage dollar-cost averaging entry schedule. As prices decline by configurable percentage tier

Strategy v6 Support & resistanceMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

An indicator for one-hour charts that plots a Donchian channel from the highest high and lowest low over a set number of bars. A close beyond the prior channel edge marks a long or short breakout, and an ATR-multiple trailing stop line tracks the exit. An opti

Indicator v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of V18 Donchian Channel Breakout
1 stars

A Pine v6 indicator that combines two smart money tools on the price chart. It finds supply and demand zones from an impulse, base candles, impulse pattern measured against ATR, and it marks breaker blocks, which are order blocks that price later closes throug

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Supply & Demand + Breaker Blocks v6
1 stars

A price-chart overlay for DAX, based on the Advanced School Run Strategy. Inside a configurable session window in Berlin time, it numbers the opening five candles, takes the fourth candle's high and low and draws buy and sell breakout lines offset by a buffer

Indicator v6 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of TraderTom's ASRS Indicator
1 stars

This indicator serves as a validation test suite for the McClellan Oscillator. It fetches NYSE advancing and declining issues data and computes the oscillator using ratio-adjusted net advances. The script cross-checks manual EMA calculations against ta.ema for

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of McClellan Oscillator Tests
1 stars

This strategy identifies the Initial Balance session on the chart and detects confluence with VWAP levels for trade signals. It enters positions when price shows rejection at the confluence zone via a candle with sufficient wick to body ratio. The main setting

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB + VWAP Confluence
1 stars

This strategy implements the classic Turtle Trading System using Donchian channels. It enters long when the price breaks above the upper entry channel and short when it breaks below the lower channel, with an optional filter that skips signals following a winn

Strategy v5 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Donchian Channel - Turtle Trading

MACD Trend Filter

by itstherax
1 stars

Draws a standard 12, 26, 9 MACD with signal line and histogram in a separate pane, together with a 200-period EMA used as a trend filter. A buy label appears when MACD crosses above its signal while price is above the EMA, and a sell label when it crosses belo

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of MACD Trend Filter

15m Reversal Detector

by caizongxun
1 stars

A separate-pane tool that looks for potential reversals by combining momentum, volume and candle shape. It uses RSI, MACD and a stochastic reading for momentum, volume spikes and dry-ups against a volume average, Bollinger Band extremes, wick rejection and eng

Indicator v5 Oscillators & momentumDivergence
Updated 8 months ago · MIT GitHub repository of 15m Reversal Detector
1 stars

Buy/Sell Signals - Multi-Condition combines the Relative Strength Index (RSI) with fast and slow Exponential Moving Averages (EMA) to identify trend pullback opportunities. It displays buy signals when the RSI drops below an oversold threshold during an establ

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Buy/Sell Signals - Multi-Condition

ARC EngulfingAlgo

by Tradehook-org
1 stars

A Pine v5 strategy that trades engulfing candle patterns on the price chart. A pattern needs the current body to cover a set percentage of the previous body, with options for opposite color, doji handling and a maximum previous body size in ATR. Optional confi

Strategy v5 Candlestick patternsTrend
Updated 8 months ago · None stated GitHub repository of ARC EngulfingAlgo

Simple RSI

by ferranfont
1 stars

Plots the Relative Strength Index in a separate pane with adjustable period, optional EMA smoothing and an optional higher timeframe calculation. Overbought and oversold lines are drawn at configurable levels, defaulting to 70 and 30. It has no entry or exit r

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of Simple RSI
1 stars

A Pine v5 long-only strategy that buys when RSI falls below an entry level and then trails an exit level behind the highest close using an ATR multiple. The position is closed when the close drops below that trailing level, which is drawn as a red line on the

Strategy v5 Mean reversionVolatility & bands
Updated 8 months ago · None stated GitHub repository of AU RSI + ATR Trailing Stop

MES Gamma (1DTE)

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 one day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated

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

Lifecycle Example

by propuchon
1 stars

This strategy demonstrates a training, testing, and deployment lifecycle for Pine Script strategies. It calculates a simple moving average (SMA 20) and generates buy signals on crossover. The runMode input selects between Training, Testing, and Deployment. In

Strategy v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Lifecycle Example
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It calculates the Parabolic SAR with acceleration start 0.01, step 0.08 and maximum 0.37. It buys when the close crosses above the SAR and closes the position when the

Strategy v6 Trend
Updated 9 months ago · MIT GitHub repository of Parabolic SAR 0.01/0.08/0.37

Turtle Soup

by Ahmed1926
1 stars

An overlay indicator that detects turtle soup setups, where price takes out a higher-timeframe pivot high or low and then reverses. It uses an imported price action library for market structure, with separate pivot lengths for the trend structure and for the l

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Turtle Soup

Reports how volatile each part of the trading day has been, shown as columns in a separate pane. It groups intraday bars by time slot and compares their ranges using a daily ATR period, defaulting to 20. The output can be set to median, with high and low volat

Indicator v6 Volatility & bandsSessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Volatility - Time of Day Report

This indicator draws a trading range box on the price chart, based on a rolling lookback, the previous day or the previous week. Inside it, it marks golden pocket Fibonacci zones, liquidity areas near the range extremes and fair value gaps that extend a set nu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MPL-2.0 GitHub repository of Range Indicator: Golden Pocket, Liquidity, & FVG
1 stars

A monthly rotation strategy based on the global equity momentum approach. It requests monthly closes for a US equity ETF, an international equity ETF and a bond ETF, compares their returns over a lookback in months and checks the stronger equity against a manu

Strategy v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Dual Momentum 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