Synced with GitHub · updated today

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

This strategy tracks the high and low range established during the Asian trading session and executes breakout trades during the London session. It draws directly on the price chart. When the price crosses above the Asian high or below the Asian low, it enters

Strategy v6 BreakoutSessions & time
Updated 2 months ago · MIT GitHub repository of EUR/USD London Breakout [trugurpala]
4 stars

The Smart Money Concepts Analyzer draws key price action zones directly on the main price chart. It identifies bullish and bearish order blocks using historical candle sequences, highlights fair value gaps exceeding a user-defined percentage threshold, labels

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Smart Money Concepts Analyzer [Lab]
4 stars

This indicator modifies the classic Supertrend calculation by incorporating the Commodity Channel Index (CCI) to determine trend direction. It calculates ATR bands around the median price and updates trailing stop levels based on whether CCI is above or below

Indicator v4 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Simple Supertrend CCI
3 stars

This indicator plots the Parabolic SAR on the price chart and identifies trend reversals with buy and sell labels. It features multi-symbol screening capability, allowing traders to monitor predefined symbol groups or custom BIST stock lists on a selectable ti

Indicator v5 TrendScreeners & dashboards
Updated yesterday · None stated GitHub repository of Parabolic SAR Tarama

jash_GGMA_Granville

by jash-git
3 stars

This indicator implements a modified Guppy Multiple Moving Average (GMMA) framework based on Granville's trading rules. It calculates and plots five Fibonacci-based exponential moving averages (3, 13, 34, 55, and 144 EMAs) directly on the price chart. When the

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of jash_GGMA_Granville
3 stars

Consecutive Candle Levels identifies sequences of consecutive bullish or bearish candles to establish price ranges and project horizontal extension levels directly onto the main price chart. The indicator calculates customizable Fibonacci ratio levels, upper a

Indicator v5 Support & resistanceCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Consecutive Candle Levels

This indicator identifies and plots volumetric order blocks alongside trend strength on the price chart. It highlights recent bullish and bearish order blocks using full candles or custom length coordinates, displaying internal buy and sell activity, mid-lines

Indicator v5 SMC / ICT / price actionVolume

The Stock and NQ Futures Convergence Strategy identifies trading opportunities by comparing the Relative Strength Index of the active chart stock against NQ futures. It enters a long position when NQ RSI rises above the upper threshold while the stock RSI stay

Strategy v5 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of Stock and NQ Futures Convergence Strategy

Vertical Hour Lines

by piecioshka
2 stars

Vertical Hour Lines draws vertical gridlines at user-defined intraday timestamps directly on the main price chart. It helps traders mark key session events, market opens, or specific time thresholds across any intraday timeframe. The script provides multiple c

Indicator v6 Sessions & time
Updated 11 days ago · MIT GitHub repository of Vertical Hour Lines
2 stars

This indicator calculates the Relative Strength Index from a chosen price source and length and plots it in a separate pane. It draws horizontal bands at 70, 50, and 30 and fills the area between the outer bands. An optional moving average can smooth the RSI u

Indicator v6 Oscillators & momentumMoving averages
Updated 5 weeks ago · None stated GitHub repository of Relative Strength Index

MirPapa Lib Box

by alvinng214
2 stars

This Pine Script v6 library defines shared types and price checks for smart-money boxes. It stores box type, bullish or bearish direction, start and end breach modes, state, and top, bottom, and midpoint prices, plus a box and line handle. A higher-timeframe c

Library v6
Updated 2 months ago · None stated GitHub repository of MirPapa Lib Box

Alpy Kazan

by avatar-lavventura
2 stars

This strategy tracks market direction using an ATR-based trailing envelope similar to Supertrend, combined with Bollinger Bands, Keltner Channels, and momentum filters. Long and short entry signals trigger on trend direction shifts within a specified backtest

Strategy v4 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alpy Kazan

Intrabar Efficiency Ratio

by regalouisei
2 stars

Intrabar Efficiency Ratio calculates an efficiency ratio indicator using lower timeframe intrabar data to measure price efficiency and market noise. It plots in a separate pane using customizable visual modes such as Line, Candles, or Circles based on moving a

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Intrabar Efficiency Ratio

Trend Catcher Strategy

by wynnforthework
2 stars

This strategy identifies trending breakouts by comparing total candle ranges to the overall high-low channel over a set period alongside a Simple Moving Average. Long trades enter when the range efficiency ratio crosses above a threshold while the SMA rises, w

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Catcher Strategy

RSI Divergence

by Web3Degenerate
2 stars

The indicator detects RSI divergences on the price chart. It calculates the RSI using the close prices with a configurable length and identifies potential trend reversals by comparing swings in price and RSI values. Bullish divergence is signaled when price fo

Indicator v5 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of RSI Divergence

ZigZag Channel

by WISEPLAT
2 stars

Calculates ZigZag swing points, classifies market structure pivots into higher highs, lower highs, higher lows, and lower lows, and computes swing length ratios. It renders ZigZag lines, pivot labels, and channel bands directly on the main price chart. User se

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Channel

This indicator combines three analysis tools into a single chart overlay: a custom trend signal script, a ZigZag indicator, and a swing high and low pattern detector. It calculates dynamic support and resistance thresholds based on high-low price ranges and a

Indicator v4 TrendSupport & resistance Repaints
Updated 4 years ago · MIT GitHub repository of Trendsignal + Zig Zag + Swing Highs/Lows Candle Patterns
1 stars

This overlay strategy combines an AlphaTrend core with kinematic, Bayesian, and mean-reversion models, plus harmonic, classical, and candlestick pattern engines. It plots consolidation zones, volume-profile points of control, pattern lines, and forward forecas

Strategy v5 TrendCandlestick patterns Repaints
Updated yesterday · None stated GitHub repository of JAT+BSM Pro Extended

Pivot Levels

by jayadevrana
1 stars

Pivot Levels identifies key structural high and low turning points on the price chart using customizable left and right bar confirmation periods. It calculates pivot highs and lows to plot horizontal resistance and support lines directly on the main chart pane

Indicator v6 Support & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of Pivot Levels

SMC Long-Dip Mobile

by skipp-dev
1 stars

SMC Long-Dip Mobile is a compact companion surface and HUD indicator designed for mobile or small-screen chart viewing. It links to the main SMC Long-Dip Suite indicator outputs via plot sources, displaying setup state, quality score, and hero action or bias s

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 3 days ago · None stated GitHub repository of SMC Long-Dip Mobile

Dual SMA Cross

by pineforge-4pass
1 stars

A dual simple moving average crossover strategy with adjustable fast and slow lengths. When the fast average crosses above the slow one it closes any short and enters long; when it crosses below it closes any long and enters short. There is no stop loss, take

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Dual SMA Cross

P_err_float_as_int_length

by GammaExpansion
1 stars

This indicator is a minimal Pine Script v6 fixture that calculates a simple moving average of the close and plots the result in a separate pane. It passes the close series, a floating-point value, as the length argument of the moving-average function, which ex

Indicator v6 Moving averages
Updated 6 days ago · MIT GitHub repository of P_err_float_as_int_length
1 stars

An indicator that draws a Dynamic P0 line on the price chart: a rolling volume-weighted equilibrium price computed over a window set in minutes, with a value area band around it. A dashboard table scores acceptance and rejection from P0 migration, new-location

Indicator v6 VolumeScreeners & dashboards
Updated 7 days ago · GPL-3.0 GitHub repository of Dynamic P0 Architecture Dashboard

DEPV2 D1 Giriş Kalitesi

by YuceSezar89
1 stars

This indicator evaluates trade entry quality across trend, momentum, volatility, and volume dimensions. It calculates momentum ROC z-scores, ATR-based volatility expansion, volume flow thresholds, and multi-timeframe Heikin Ashi alignment across multiple timef

Indicator v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 D1 Giriş Kalitesi
1 stars

An overlay indicator that detects pivot highs and lows on closing prices and draws a created line that extends to the right, plus a short confirmation line. Labels show the level, price and an Indian-time stamp, and each element has its own toggle. Break alert

Indicator v5 Support & resistanceBreakout
Updated 2 weeks ago · None stated GitHub repository of S (Or) R Breakout

Liquidity Zones

by morindok
1 stars

Builds a liquidity heat map on the price chart over the last 240 candles by default. The price range is split into rows and the history into time columns. Candle wicks, bodies and equal pivot highs and lows add weighted scores, and a candle body passing throug

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Liquidity Zones

Root Mean Deviation Trail

by vedkanani123
1 stars

An overlay indicator that measures how far price sits from a central EMA, smooths the signed deviation with a selectable moving average, and normalizes it with a root mean square deviation to scale a trailing band. The multiplier shrinks when deviation is stro

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Mean Deviation Trail
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.2

Davo Indicator

by GreyssonEnterprises
1 stars

This indicator searches price and selected oscillators for five-point W and M formations, based on Davinci's dav-o meter but without a fixed five-bar window. It can scan close price, OBV, Williams %R, RSI, MFI, and DI plus and minus. Enabled sources, strictnes

Indicator v4 Oscillators & momentumVolume
Updated 2 months ago · MIT GitHub repository of Davo Indicator

V11 Swing Sniper Pro

by kevinesk
1 stars

V11 Swing Sniper Pro is a trend-following and swing timing indicator tailored for equity markets such as the KLSE. It overlays key moving averages directly on the price chart and evaluates setups across three structured tiers: trend quality based on Minervini

Indicator v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of V11 Swing Sniper Pro

Scalping BB CCI ROC

by rubbermetal
1 stars

Scalping BB CCI ROC is an indicator that marks Scalp L or Scalp S labels when the close is outside a Bollinger Band while CCI and rate of change are both beyond their thresholds in the same direction. It draws the bands with a fill colored by price position, a

Indicator v6 ScalpingMean reversion
Updated 4 months ago · MPL-2.0 GitHub repository of Scalping BB CCI ROC
1 stars

Corpus Exit Qty Percent is a Pine Script strategy that executes trades based on exponential moving average crossovers and manages positions with Average True Range levels. It calculates 12-period and 26-period EMAs along with a 14-period ATR. When the fast EMA

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Exit Qty Percent

Trendline Breakouts With Targets

by shubhamtaywade82
1 stars

Detects pivot highs and lows, draws sloping trendlines from them and marks breakouts on the price chart. After a breakout it shows take profit and stop loss visuals and a status table. Settings choose the pivot period, whether lines use wicks or candle bodies,

Indicator v6 Support & resistanceBreakout Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. This variant uses looser body thresholds, allowing a base candle body up to the full can

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-2

Liquidation Heatmap

by ymlee1104
1 stars

This indicator draws a liquidation heatmap on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by minimum intensity and merges nearby labels. An optional ZigZag plots swings, w

Indicator v6 Support & resistanceVolume
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

NR7 Range Breakout

by Basant1Saini
1 stars

NR7 Range Breakout identifies narrowest range bars over a specified lookback period and trades breakouts beyond their high or low price boundaries. It plots an exponential moving average trend filter alongside visual highlights for range compression and breako

Strategy v5 BreakoutVolatility & bands
Updated 7 months ago · None stated GitHub repository of NR7 Range Breakout

SPY Gamma (30DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from

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

ES Professional Fade

by knectardev
1 stars

This strategy executes gap-fade trades on E-mini S&P 500 futures during Regular Trading Hours. It compares the current market open with the prior session close to identify opening gaps, qualifying entries using minimum gap percentages, index point minimums, an

Strategy v5 Mean reversionSessions & time
Updated 9 months ago · None stated GitHub repository of ES Professional Fade

v5 Combination

by webcrack4
1 stars

This indicator calculates several variants of the MACD oscillator, including Traditional, Histogram, Leader, and Source methods, and overlays the oscillator directly on the price chart. It plots shape labels for MACD and signal line crossovers, while rendering

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of v5 Combination

Simple Market Metrics v5

by turnupdigital
1 stars

An indicator in a separate pane that shows buy and sell signals with optional chop, moving average and time-of-day filters. It adds profit target lines at a tick distance, a profit wave band, background trend colouring and candle colouring. Built-in text descr

Indicator v5 TrendScalping
Updated 1 year ago · None stated GitHub repository of Simple Market Metrics v5

Bollinger Bars

by ivansoft
1 stars

Restyles the chart's candles as an overlay. Bodies are coloured green when the close is above the open and red otherwise, while wicks are drawn in a fixed blue. It performs no calculation beyond the candle comparison and has no inputs or signals. It needs the

Indicator v6 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Bollinger Bars

Coin to CNY

by zhuzp98
1 stars

The script converts cryptocurrency prices to Chinese Yuan (CNY) by multiplying the open, high, low, and close prices of the selected coin with the corresponding USDCNY exchange rates. It plots candlestick data in a separate pane for the translated prices. User

Indicator v5 Candlestick patterns
Updated 1 year ago · None stated GitHub repository of Coin to CNY

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