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.
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
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
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
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
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
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
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,
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
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
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
This Pine Script indicator detects and plots price action concepts on the chart, including swing highs and lows, internal market structures, break of structure (BOS), change of character (CHoCH), and EQH/EQL levels. It signals trend shifts with colored BOS and
This strategy backtests Minervini-style volatility contraction pattern breakouts on the price chart. Entries can require a full seven-point trend template, a VCP squeeze, a volume surge, and optional SmartMCDX banker bars. It plots the 21 EMA, the 50, 150 and
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
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
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
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
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
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
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
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
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
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
A price-chart overlay that draws trendlines from confirmed pivot highs and lows and signals bounces and breakouts. Early and confirmed signals depend on score thresholds, a quality filter using range size, ADX and EMA separation, a trend filter from 21, 50 and
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.