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

Donchian Breakout + ATR Risk

by JustACoder279
1 stars

A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has

Strategy v5 BreakoutTrend Repaints
Updated 9 months ago · MIT GitHub repository of Donchian Breakout + ATR Risk
1 stars

A chart-overlay trailing stop that adapts to market conditions. It uses Kaufman's adaptive moving average to measure how efficiently price is moving, scales an ATR-based stop distance accordingly, and optionally adds a k-nearest-neighbours pattern layer that n

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Adaptive ML Trailing Stop
1 stars

This mean-reversion strategy identifies deep price drops following a multi-bar low, such as a 52-week low. It calculates a target threshold located a specified percentage below the period low and triggers a buy entry when price plunges to this oversold level.

Strategy v6 Mean reversionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Super Oversold (52 Week Low Version)

SFA Core v2

by genesisgrubio39
1 stars

A Pine library that exports one core function returning many values for use by other scripts. It computes ATR, optional session and displacement filters, a signed volume pressure measure with z-score, a session-resetting cumulative volume proxy, and linear reg

Library v6
Updated 10 months ago · None stated GitHub repository of SFA Core v2

CodonATRStop

by codon-pro
1 stars

This library exports a function that returns a dynamic trailing stop price based on Average True Range. For longs it subtracts an ATR multiple from the close and ratchets the level upward, resetting the stop when price closes below the previous level. For shor

Library v6 Volatility & bands
Updated 10 months ago · MIT GitHub repository of CodonATRStop

Apex Trend & Liquidity Master (SMC)

by app-builder-sketch
1 stars

Apex Trend & Liquidity Master (SMC) is an overlay indicator that combines trend-following filters with Smart Money Concepts market structure and liquidity tools. It calculates baseline trend clouds using moving averages such as HMA, EMA, SMA, or RMA alongside

Indicator v6 SMC / ICT / price actionTrend
Updated 10 months ago · GPL-3.0 GitHub repository of Apex Trend & Liquidity Master (SMC)
1 stars

This indicator combines liquidity sweep detection, Fibonacci retracement levels (0.382, 0.5, 0.618, 0.786) and two user-set ratio levels called CC levels on the price chart. A sweep is a wick beyond a recent swing by a buffer, optionally followed by reclaim ca

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 10 months ago · None stated GitHub repository of Quantitative Pivot Strategy [QPS]

This strategy automatically adapts its moving average lengths and types based on the chart's timeframe, covering scalping, intraday, and swing styles. It generates entry signals when a fast moving average crosses a slow moving average, provided price is on the

Strategy v6 TrendMoving averages
Updated 10 months ago · MIT GitHub repository of EMA / SMA Crossover + ADX + EMA100 Trend Filter
1 stars

RI LONG Levels is an overlay indicator for ES and NQ futures that sets out a manual long reversal plan. It anchors on the previous session close, then draws an entry level at a chosen multiple of a risk interval below the anchor, with a target and a stop level

Indicator v6 Support & resistanceMean reversion
Updated 10 months ago · None stated GitHub repository of RI LONG Levels REVERSAL_TOUCH

TXF Choppy Detector

by amytsengtw
1 stars

The TXF Choppy Detector is an indicator that identifies choppy or sideways markets in Taiwan index futures using the Choppiness Index (CHOP). It plots Bollinger Bands on the price chart with customizable length and multiplier. The script detects washout signal

Indicator v5 Mean reversionVolatility & bands
Updated 10 months ago · None stated GitHub repository of TXF Choppy Detector
1 stars

This overlay strategy requires sequential confluence before it enters. A hybrid detector blends selected oscillators, including RSI, CCI, MFI, Bollinger percent B and Keltner percent K, and treats extreme overbought or oversold readings as the market regime. V

Strategy v6 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Stratégie Confluence Hybride-VMCB
1 stars

This strategy uses a fast and a slow simple moving average with the bar's price range. In its default long-only mode it buys when price sits below the fast average, in the lower part of the bar range, while staying above the slow average, and exits when price

Strategy v6 Mean reversionMoving averages
Updated 10 months ago · None stated GitHub repository of Mean Reversion Pro Strategy
1 stars

A chart-overlay indicator, a corrected variant of a crypto alert script, that combines RSI threshold crosses, a fast and slow EMA cross, Bollinger Band breaks, volume spikes, MACD and stochastic readings. Each alert group can be enabled separately, and a weigh

Indicator v6 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Crypto Trading Bot Pro Fixed

HTS NemoN Simple

by nemon82-web
1 stars

Draws two bands on the price chart, one from smoothed highs and lows over a fast length and one over a slow length, using Wilder-style moving averages. The fast length must be smaller than the slow one or the script stops with an error. Settings change the two

Indicator v6 Moving averagesTrend
Updated 10 months ago · None stated GitHub repository of HTS NemoN Simple

Orderflow Break Tape

by Blendoxius
1 stars

An overlay that tracks swing highs and lows and marks change of character, break of structure and liquidity events with lines and labels. Breaks can be filtered by a volume strength check that compares the breaking bar with the last few bars or with a tape ave

Indicator v6 SMC / ICT / price actionVolume
Updated 10 months ago · None stated GitHub repository of Orderflow Break Tape

Candlestick Patterns

by ognenmitev
1 stars

Detects a set of classic candlestick patterns and labels them on the price chart. Bullish patterns include hammer, inverted hammer, bullish engulfing, morning star, piercing, three white soldiers, bullish harami and dragonfly doji, with a matching bearish grou

Indicator v6 Candlestick patterns
Updated 11 months ago · Custom licence GitHub repository of Candlestick Patterns
1 stars

An order-flow proxy indicator that estimates delta from volume and the close position within each bar, then builds a cumulative delta line, relative volume and a delta z-score. Bull and bear signals need relative volume, delta and close-in-range thresholds, an

Indicator v6 VolumeDivergence Repaints
Updated 11 months ago · None stated GitHub repository of Institutional Orderflow Pro

This indicator maps estimated dynamic liquidity levels across the chart by combining normalized volume and an ATR multiplier. It tracks highs and lows within a designated lookback window, projecting buy and sell liquidity bins and highlighting maximum liquidit

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 11 months ago · None stated GitHub repository of Dynamic Liquidity HeatMap Profile [BigBeluga]

Spread Analysis

by Blendoxius
1 stars

An indicator that measures the candle spread, optionally as a percentage, and compares it with its own moving average to classify volatility as compression, normal, moderate, high or extreme using adjustable multipliers. Output can be shown as columns, histogr

Indicator v6 Volatility & bands
Updated 11 months ago · None stated GitHub repository of Spread Analysis

Combines three moving averages, MACD, RSI, a volatility length and Bollinger Bands on the price chart. Bollinger signals mark a buy when price crosses back above the lower band. Settings set the three average lengths, MACD fast, slow and signal values, RSI len

Indicator v5 Oscillators & momentumVolatility & bands
Updated 11 months ago · MIT GitHub repository of Adaptive Wave Interference Indicator with Bollinger Band Strategy
1 stars

A trend-following strategy that goes long when the fast EMA is above the slow EMA, RSI is above its threshold and the MACD histogram is positive, and goes short on the opposite conditions. An optional filter requires the close to sit beyond both EMAs. When ena

Strategy v6 TrendOscillators & momentum
Updated 11 months ago · None stated GitHub repository of Hybrid EMA+RSI+MACD Strategy
1 stars

This indicator finds pivot highs and lows with adjustable left and right bars and draws support and resistance zones as boxes on the price chart. Repeated touches of a level raise a strength rating shown as dots. High-volume bars, measured against a 20-bar ave

Indicator v6 Support & resistanceVolume
Updated 11 months ago · None stated GitHub repository of Support/Resistance & Liquidity Zones

RVol Panel

by samkdgit
1 stars

RVol Panel plots relative volume in a separate pane for intraday charts. It compares each bar’s volume with the same bar position across a configurable number of recent sessions and also tracks cumulative session volume against that baseline. Bars are colored

Indicator v5 VolumeSessions & time
Updated 11 months ago · MIT GitHub repository of RVol Panel

MTF Checklist Dashboard

by eliasvictor-trading
1 stars

An overlay indicator that shows a colour-coded table of market conditions across six timeframes, 1, 5, 15, 30, 60 and 240 minutes by default, including opening range breakout status and distance from the daily high and low. It prints arrow signals when enough

Indicator v6 Screeners & dashboardsSessions & time
Updated 11 months ago · None stated GitHub repository of MTF Checklist Dashboard

This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and

Strategy v5 TrendBreakout Repaints
1 stars

This indicator looks for a five-candle shape on the price chart. In the high model the middle candle holds the highest high, with rising highs into it and falling lows after it; the low model is the mirror image. When a shape is found it draws grey connecting

Indicator v6 Candlestick patterns Repaints
Updated 11 months ago · None stated GitHub repository of 5-Candle High/Low Indicator
1 stars

ATR Volatility Trailing Stop plots an EMA trend moving average alongside dynamic ATR-based trailing stops on the price chart. The indicator determines trend direction from price relative to the EMA. Long trailing stop trails upward using ATR when uptrend, shor

Indicator v5 Volatility & bandsTrend
Updated 11 months ago · None stated GitHub repository of ATR Volatility Trailing Stop

N Rolling and Anchored VWAP

by murasamenomad
1 stars

A price chart overlay that plots rolling VWAP lines over 7, 30, 90 and 365 days, calculated from a selectable reference timeframe with optional smoothing and price labels. It also draws up to several anchored VWAPs that restart each day, week, month, quarter o

Indicator v6 VolumeSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of N Rolling and Anchored VWAP

Normalises USD/TWD, TSMC, the 0050 ETF, the dollar index and the SOXX semiconductor ETF against their own moving averages and plots them together. It then measures rolling correlations of USD/TWD with the dollar index, SOXX and TSMC, and labels whichever has t

Indicator v5 Screeners & dashboards
Updated 11 months ago · MIT GitHub repository of TWD Triple-Layer Driver Detector

CHoCH Signal TRXUSDT

by gnuhhung317
1 stars

A generated indicator on the price chart that draws a fixed set of hard-coded lines and one label for TRXUSDT on the 30 minute chart. Aqua dashed lines mark pivot highs, yellow dashed lines mark pivot lows, and a lime label marks a change of character at a sta

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · MIT GitHub repository of CHoCH Signal TRXUSDT
1 stars

A price-chart trend indicator that passes the chosen source through a multi-order Kalman filter, then places ATR-multiple upper and lower bands around the filtered price and smooths them exponentially. The trend turns bullish when price crosses above the upper

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MIT GitHub repository of Kalman Exponential SuperTrend

Hybrid Pro Strategy

by bdrnjom007
1 stars

A Pine v5 strategy, with Arabic input labels, that counts bullish signals from several groups: Turtle-style breakouts, RSI and Bollinger Band mean reversion, EMA, MACD and ADX momentum, plus order blocks, fair value gaps and supply and demand zones. It enters

Strategy v5 BreakoutMean reversion
Updated 11 months ago · None stated GitHub repository of Hybrid Pro Strategy
1 stars

A price-chart overlay that marks regular pivot highs and lows using a configurable pivot length, plus missed pivots that occurred between them, joined by zigzag lines. It measures each move between consecutive pivots, showing price change in points and percent

Indicator v6 Support & resistance
Updated 11 months ago · None stated GitHub repository of [FS] Pivot Measurements

Order Block Detector

by freacatt
1 stars

A price-chart overlay that finds bullish and bearish order blocks from volume pivots. A pivot length sets how many bars confirm a volume swing, and the candle range there becomes a zone drawn as a box with a dashed or solid average line, extended to the right.

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Order Block Detector

A price-chart indicator that marks the opening range of each session, either from a chosen opening time period or a custom session and timezone. It plots the range high and low, shades the range, and prints breakout signals when price closes beyond it. Targets

Indicator v6 Sessions & timeBreakout
Updated 12 months ago · MIT GitHub repository of LuxAlgo Opening Range with Breakouts and Targets

ichiV1 Freqtrade Mirror

by ChiChasesCheese
1 stars

A long-only strategy that ports a Freqtrade bot to TradingView. It builds Heikin-Ashi values, a ladder of EMAs standing in for several timeframes, a fan magnitude ratio and an Ichimoku-style cloud from Donchian midpoints. Entries need price above the cloud, a

Strategy v6 Trend Repaints
Updated 12 months ago · None stated GitHub repository of ichiV1 Freqtrade Mirror

SamK Indicator

by samkling
1 stars

A Pine v5 overlay that combines several chart aids for stock trading. It plots selectable moving averages on all timeframes, optional daily moving averages pulled from the daily series, 50, 100 and 200 SMAs, and pivots. Further switches add average daily range

Indicator v5 Moving averagesSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of SamK Indicator

Flip Zones V1

by TraderBarat
1 stars

Finds candles with unusually high volume and draws a box from the candle high to low on the price chart. Volume counts as unusual when it exceeds a moving average of volume by a multiplier, default 2. Large-body candles are tagged as breakouts, and small-body

Indicator v5 Support & resistanceVolume
Updated 1 year ago · MIT GitHub repository of Flip Zones V1

Bitcoin Cycles Indicator

by mikegreiner
1 stars

Bitcoin Cycles Indicator tracks cycle lows and highs on the price chart for daily, weekly, monthly and custom timeframes. It labels potential and final cycle points, flags failed cycles, and draws projection boxes based on an average cycle length. Minimum and

Indicator v6 Support & resistance Repaints
Updated 1 year ago · MIT GitHub repository of Bitcoin Cycles Indicator

Swing Highs and Lows

by RadinAnsari
1 stars

This indicator identifies dynamic support and resistance levels on the price chart using pivot high and low calculations. Based on a configurable swing length setting, it detects key market turnarounds and plots triangular markers above swing highs and below s

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Swing Highs and Lows

bar_index

by SauceSlinger
1 stars

This file is mostly a text reference for Pine Script variables such as bar_index and the barstate family, kept with a parsing project. The runnable code is a minimal indicator that plots the bar index in a separate pane and plots the close only after bar 5000,

Indicator v5 Repaints
Updated 1 year ago · MIT GitHub repository of bar_index
1 stars

An indicator that builds a rolling volume profile over a configurable window of recent candles and plots the Value Area High, Value Area Low and Point of Control. Settings include the lookback length, the percentage of volume treated as the value area, a smoot

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Rolling Volume Area Indicator

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