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

The Iron Condor Signal (Range Detector) is an overlay indicator that identifies range-bound, low-trend market conditions suitable for non-directional trading strategies. It calculates Bollinger Bands, the Average Directional Index (ADX), and the Relative Stren

Indicator v5 Volatility & bandsTrend
Updated 4 months ago · GPL-3.0 GitHub repository of Iron Condor Signal (Range Detector)
1 stars

A strategy for index futures that combines New York session timing, session VWAP with bands, previous day levels and a volume profile with order flow proxies such as delta and a depth-of-market aggression threshold. Inputs set the aggression threshold, how man

Strategy v5 VolumeSessions & time Repaints
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile + Order Flow

BB(10,2) + TP20 SameDay

by zraesdev-hub
1 stars

This strategy draws Bollinger Bands on the price chart and enters long when both the open and the close are below the lower band. Mode S1 exits the same day at a 20 percent take profit or forces a close if that target is missed. Mode S2 can hold for a set numb

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) + TP20 SameDay
1 stars

An overlay indicator that scans a configurable lookback window for Bat, Butterfly, Crab and Shark harmonic patterns using Fibonacci ratio checks with an adjustable tolerance. It draws pattern lines, labels, price levels, a projected completion point and a qual

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Harmonic Pattern Recognition

Trade Signal Indicator

by ashishgkwd
1 stars

Trade Signal Indicator is an overlay script that combines three tools: an EMA crossover (13 and 48 by default), an adaptive trend finder channel and a Nadaraya-Watson envelope. Each can be enabled separately, and colours, deviation multiplier, bandwidth and so

Indicator v6 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Trade Signal Indicator

po3_Cx

by PraiseSinkamba
1 stars

A price-chart indicator for a sweep, change in state of delivery and expansion model. It marks a liquidity sweep of a swing pivot, then a displacement candle that confirms the change within a set number of bars, and draws entry, stop and target lines with a ta

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of po3_Cx

Pairs Trading Z-Score

by dcrown99
1 stars

An indicator in a separate pane that compares the chart symbol with a second symbol chosen in the settings. It takes the ratio of the two prices, optionally as a log ratio, and converts it into a rolling Z-score over a set window. Horizontal lines mark entry,

Indicator v5 Mean reversion
Updated 4 months ago · None stated GitHub repository of Pairs Trading Z-Score
1 stars

A fractional differencing Z-score oscillator in a separate pane for one-minute Nasdaq futures that adds a regime gate based on a three-vote model of directional efficiency, range expansion and VWAP slope, allowing entries only in a mean-reversion state. Furthe

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 1m + HMM Policy A
1 stars

ADX Trend Filter Pro is a separate-pane indicator built on the directional movement system. It plots ADX with DI plus and DI minus, classifies trend strength as weak, moderate, strong or very strong from adjustable thresholds, and overlays a fast and slow EMA

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of ADX Trend Filter Pro

OOTM Strategy

by FRX132
1 stars

This strategy tracks the Asia, London and New York session highs and lows and draws them on the price chart. In Sweeps mode it looks for a wick beyond a finished session level that closes back inside; Breakouts mode looks for a close beyond it. Optional EMA 20

Strategy v6 Sessions & timeBreakout
Updated 4 months ago · None stated GitHub repository of OOTM Strategy

RTE Overlay EURUSD 5M

by Jagadeesh963
1 stars

A generated overlay script that draws a fixed set of horizontal lines, boxes and text labels on the last bar of a EURUSD five-minute chart. The labels cover items such as market structure shifts, buy-side and sell-side liquidity, fair value gaps, an order bloc

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of RTE Overlay EURUSD 5M

ADX and DI

by rubbermetal
1 stars

A separate-pane indicator that calculates the Average Directional Index and the plus and minus directional indicators with Wilder-style smoothing over an adjustable length. It plots ADX with grid lines at weak, strong and extreme levels, optional DI+ and DI- l

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of ADX and DI

UT Bot v6

by Stolzel
1 stars

This indicator calculates and plots trend-following signals based on an adaptive UT Bot trailing stop mechanism on the price chart. Entry signals trigger on trailing stop crossovers, with sensitivity keys adjusting dynamically between trending and ranging mark

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of UT Bot v6

Markov-HMM Regime v5

by flaviodesalvo54-del
1 stars

Markov-HMM Regime v5 classifies each bar as Bull, Bear or Sideways using a hidden Markov model whose parameters were trained offline in Python and pasted into the script. It runs the forward algorithm on price and volume features and loads a parameter set matc

Indicator v5 TrendAI / machine learning
Updated 4 months ago · MIT GitHub repository of Markov-HMM Regime v5
1 stars

A manual annotation indicator for the price chart. The user types in an entry, stop and target price, a direction, a status and a confidence number, and the script draws those three levels as lines with labels and shows a small summary table in the corner. It

Indicator v6 Support & resistanceScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of Setup Receipt Template
1 stars

Array Advanced Helpers is a Pine Script v6 strategy that plots on the price chart. It builds arrays from close, open, high and hl2 to compute the lowest and highest values along with the last index of the highest. Two EMAs with periods 8 and 21 generate crosso

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Array Advanced Helpers

SMC / ICT Pro

by saadanezakaria6
1 stars

This overlay script identifies Smart Money Concepts (SMC) and ICT structure on the price chart. It detects swing pivots, Break of Structure (BOS), Change of Character (CHoCH), liquidity sweeps, order blocks, and Fair Value Gaps (FVG). Additionally, it plots an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC / ICT Pro
1 stars

A strategy for crypto futures that combines a Hurst exponent estimate with a z-score, ADX, RSI and ATR to separate trending from mean-reverting conditions. It plots a 50-bar high and low as resistance and support lines and uses pivot-style levels for entries a

Strategy v5 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of QuantiFine v6 Pivot R2 S2
1 stars

Plots volume as coloured columns in a separate pane with a 20-bar volume average and threshold lines for high volume and climax volume. Bars are shaded by direction and by how large volume is relative to the average. Optional volume spread analysis labels mark

Indicator v6 Volume
Updated 4 months ago · None stated GitHub repository of Volume Distribution Analyzer
1 stars

Calculates institutional liquidity sweeps across a configurable swing lookback period to trade market reversals directly on the price chart. It enters long when price dips below recent swing lows and closes back above, and enters short when price sweeps swing

Strategy v5 SMC / ICT / price actionSupport & resistance

Nexus Flow

by darkwader26
1 stars

Nexus Flow is a multi-dimensional trend and momentum indicator that combines EMA and ALMA trend detection with Supertrend consensus for adaptive trend filtering. It incorporates an adaptive RSI for momentum analysis with volatility-adjusted lookback and plots

Indicator v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Nexus Flow
1 stars

A one-minute reversal indicator drawn on the price chart. It combines swing-point structure breaks, wick-to-body rejection candles, an RSI condition or divergence, higher-timeframe demand and supply zones and session filters, and prints buy or sell labels only

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 5 months ago · None stated GitHub repository of M1 Reversal Multi-Filter Hub Pro

DST HMM v9 Mobile

by Javas128282
1 stars

DST HMM v9 Mobile is a variant of a gold-focused hidden Markov model regime indicator, adjusted for mobile screens. It classifies the market into Sideways, Bull and Bear states using Baum-Welch retraining on a rolling window, draws a Kalman filter line with co

Indicator v6 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of DST HMM v9 Mobile

Micro Atomic Clean Signal

by alfadeepmode
1 stars

An overlay indicator that prints long, short and exit labels on crypto charts. A signal needs trend alignment of a 50 and 200 EMA, RSI and fast MACD ranges, a minimum ATR percent, a volume ratio and an ADX floor, combined into a percentage entry score. An opti

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Micro Atomic Clean Signal

Bond Market Dashboard

by iyoshikawa
1 stars

A table-style dashboard that reads Treasury yields and futures through request.security on a chosen data timeframe, five minutes by default. Six rows show the 10-year yield and its rate of change, the 2-year yield, the yield curve spread and slope, bond future

Indicator v6 Screeners & dashboards
Updated 5 months ago · None stated GitHub repository of Bond Market Dashboard
1 stars

A price-chart indicator aimed at Nifty and Sensex options that combines VWAP, central pivot range levels, three EMAs, Supertrend, optional Bollinger Bands, Parabolic SAR and previous-day high and low. RSI, MACD, stochastic and ADX readings feed a signal dashbo

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Multi-Indicator Confluence System

Adaptive Supertrend Pro

by shubhamtaywade82
1 stars

Plots an adaptive Supertrend on the price chart whose multiplier moves between a minimum and maximum with volatility regime, using ATR, ADX and volume percentile settings. Signals are filtered by a higher-timeframe EMA and ATR check, liquidity sweeps, pullback

Indicator v6 TrendVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Adaptive Supertrend Pro

Talons BB Squeeze Breakout

by muammeryldrm42
1 stars

This strategy identifies Bollinger Band squeezes and enters positions on volatility breakouts. It defines a squeeze when the normalized band width over the last five bars drops below its 25th percentile over a configurable lookback window. When a breakout occu

Strategy v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Talons BB Squeeze Breakout
1 stars

This overlay strategy is built for MNQ on a five-minute chart and is meant to trade imbalance fair value gaps. It reads one-hour and two-hour closes against exponential moving averages for directional bias, and it flags liquidity sweeps of the previous day hig

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of IFVG Strategy – MNQ 5min
1 stars

Finds the highest high and lowest low on the current timeframe and draws Fibonacci levels between them on the price chart, with the low as the zero level and the high as the full range. Labels show each level. It has no adjustable inputs and does not state whi

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Fibonacci Levels with Labels
1 stars

A futures strategy that looks for price touching pivot levels or dynamic touch zones during the regular session and enters on a rejection wick. A stack of optional filters must agree: VWAP, EMA, momentum, volume, a higher timeframe trend, a trend cloud, a VIX

Strategy v6 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Pivot Master Bot v4 Strict Zones

BOS & CHoCH [AFTHAB]

by kvmafthab-pixel
1 stars

This overlay indicator detects market structure on the price chart with two layers at once: internal structure on a five-bar leg and swing structure with a configurable length. It labels break of structure and change of character. After a break of structure, a

Indicator v6 SMC / ICT / price action
Updated 5 months ago · Custom licence GitHub repository of BOS & CHoCH [AFTHAB]

AMT ICT SMC v1

by latifangren
1 stars

This indicator plots premium and discount zones, equilibrium lines, fair value gaps (FVG) with center of equilibrium (CE) midpoints, inverted FVGs (IFVG), scored order blocks (OB), and CISD markers on the cryptocurrency price chart. It includes a compact dashb

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · MIT GitHub repository of AMT ICT SMC v1

BTC 1min CCI Reversal

by PETERSAMUELOPS12
1 stars

A one-minute Bitcoin strategy built on a short five-period CCI of the typical price. A cross above the upper level opens or flips to a long, and a cross below the lower level opens or flips to a short, with each direction switchable. It holds a single position

Strategy v6 Oscillators & momentumScalping
Updated 5 months ago · None stated GitHub repository of BTC 1min CCI Reversal

Sentiment 2

by ggamer5555
1 stars

Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1. It combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotte

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Sentiment 2

Gold indicator

by H4RsH-25
1 stars

The Gold indicator plots the 20 SMA and 200 EMA on the price chart together with $2 proximity zones around the SMA. It generates strong long signals when price enters the zone from below, stays above the SMA and MACD histogram is positive. Strong short signals

Indicator v6 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Gold indicator
1 stars

This indicator is tuned for 30-minute micro gold futures. It computes a Keltner-style band around a Hull-type moving average and draws a coloured cloud on the price chart. A separate pane shows a smoothed mountain-style oscillator and candles, while a four-lin

Indicator v6 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of MMP v.17 Futures 30Min MGC

BVortex

by Alberto082544
1 stars

BVortex calculates a scaled Vortex Indicator presented as a histogram in a separate pane. It evaluates positive and negative directional movements over a specified lookback period relative to True Range. The histogram changes color to highlight extreme momentu

Indicator v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex
1 stars

A strategy that links TradingView to an external trading backend. Its inputs cover an RSI with overbought and oversold levels, a fast and slow EMA pair, and a London kill zone time window. It is set up to send signals to a webhook address, with an optional API

Strategy v5 Sessions & timeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Quantum Trading Connector

BEST Supertrend Strategy

by Ayooluwa-trading-dev
1 stars

This strategy combines a Supertrend line, calculated on a selectable timeframe from daily up to yearly, with a fast and slow SMA pair, 7 and 20 by default. A long needs price above the Supertrend level and the fast SMA above the slow one; a short needs the rev

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of BEST Supertrend Strategy

Bakome Buy Sell

by BAKOME-Hub
1 stars

This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss

Indicator v5 Moving averagesTrend
Updated 5 months ago · MIT GitHub repository of Bakome Buy Sell
1 stars

Plots two VIDYA adaptive moving averages, a short one of 9 bars and a long one of 21 bars by default, on the price chart. A buy label appears when the short line crosses above the long one while the positive directional index is above a threshold, and a sell l

Indicator v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of VIDYA Crossover with ADX Filter

MVRV Regime Monitor

by lonelyobserver0
1 stars

MVRV Regime Monitor is a separate-pane indicator for Bitcoin. It reads the free daily MVRV series from the IntoTheBlock feed on TradingView and compares it with four adjustable thresholds for entry, neutral, exit and euphoria zones. The background can be colou

Indicator v6 Support & resistance
Updated 5 months ago · Custom licence GitHub repository of MVRV Regime Monitor

XAUUSD Renko Scalping

by thealgo899-creator
1 stars

A strategy intended for gold on a Renko chart with a box size of 1. It goes long when close is above its five-bar average and RSI sits between 45 and the overbought level, and short on the mirror conditions. An optional volume filter is available. Stop loss an

Strategy v5 ScalpingOscillators & momentum
Updated 5 months ago · None stated GitHub repository of XAUUSD Renko Scalping

BAKOME ICT Institutional

by BAKOME-Hub
1 stars

BAKOME ICT Institutional is an overlay indicator that implements Inner Circle Trader concepts directly on the price chart. It calculates 50 and 200 EMAs for trend direction, identifies market structure breaks and changes of character using pivot points, and de

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · MIT GitHub repository of BAKOME ICT Institutional

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