8,340 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.
Pro Quant Desk (US) v1 is a comprehensive market analysis dashboard overlaid directly on the price chart for US equities. It calculates market regime metrics including macro risk gauges using SPY, QQQ, and equal-weight RSP breadth proxies, two-layer relative s
This strategy combines trend, volatility, and multi-oscillator filters to generate directional trades. It calculates an Arnaud Legoux Moving Average (ALMA), Keltner Channels, Bollinger Band width, the Chande Momentum Oscillator (CMO), Money Flow Index (MFI), a
Trend Surfer Strategy (Full Configurable) is a trend-following trading strategy displayed on the main price chart. It pairs multi-timeframe exponential moving averages with a relative strength index and a stochastic oscillator. The script pulls higher-timefram
This indicator draws a Kalman-based trend strength oscillator in a separate pane. It can plot a Kalman filter and an optional Follow Line filtered by ATR and Bollinger Bands, with an optional fill between those lines. ZigZag swings and higher-timeframe PO3 gho
This strategy combines two Supertrend indicators with different factors and periods to identify trend direction on the price chart. The primary Supertrend (factor 3, period 10) signals flips for entries, confirmed optionally by a faster Supertrend (factor 2, p
VABOAlgo is a Pine Script v5 strategy that detects breakouts from a value area. It uses VWAP as a POC proxy and ATR to calculate VAH and VAL, requiring volume above average for confirmation and prior bar consolidation within the VA. Long entries trigger on bre
This overlay indicator plots a simple moving average and inner and outer standard-deviation bands on the price chart. It scores the last four closes against the inner bands, then marks long and short triangles when a mean-reversion cross or, in Aggressive mode
This indicator projects an on-chart overlay of the MACD oscillator directly onto the main price pane rather than in a separate window. It supports four calculation modes: traditional MACD, MACD-as-histogram, leader MACD, and source MACD. Users can adjust movin
This indicator plots aggregated net long and short positions from selected crypto perpetual markets in a separate pane. It can show net longs, shorts, delta, and ratio as candles, a line, or columns, and it can switch to a position RSI view. Users choose Binan
This indicator demonstrates how to retrieve fundamental financial metrics using Pine Script's financial data function. It requests quarterly accounts payable data for the current symbol, specified in Swiss Francs, and plots the resulting value series in a sepa
Z-Score BB measures statistical deviation by comparing a short-term 22-bar sample mean against a longer-term population baseline. It computes the population standard deviation and standard error to derive absolute Z-score offset bands around the selected basel
This indicator improves the standard Directional Movement Index by adjusting plus and minus directional movement calculations with a weight factor and SMA adjustments for sensitivity. It calculates and plots improved DI+ and DI- lines in a separate pane. Setti
Volume Accumulation sums bar volume inside a chosen time bucket and plots the running total as columns in a separate pane. The bucket can be minutely, hourly, session, daily, monthly, quarterly, or yearly, and the total resets when that period changes. Columns
This overlay indicator marks ICT market structure shifts from a zigzag of swing highs and lows on the price chart. It can show bullish and bearish swings, structure-shift marks, and retracements, with optional zigzag lines and colored boxes. Zigzag length, hig
RSI Multi Alerts [Alorse] is a multi-asset monitoring indicator that calculates the Relative Strength Index (RSI) for up to 40 individual user-selected symbols simultaneously. It overlays signal indicators on the chart to identify when any of the monitored ass
This indicator calculates theoretical options contract values and in-the-money probabilities using historical realized volatility across multiple standard deviations. It displays these metrics in a table overlay directly on the price chart. Users can adjust th
ABBV-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for AbbVie Inc. (ABBV) directly on the main price chart. It plots colored labels above or below candles on specific timestamps corresponding to trade dates, indicating b
This Pine Script v5 library exposes numerical helpers for correlation and special-function work and draws nothing on a chart. It returns machine-dependent floating-point constants, truncates a Chebyshev coefficient array to a requested accuracy, and evaluates
This indicator plots a 200-period weighted moving average (WMA) on the main chart and monitors price deviations across multiple timeframes. It retrieves daily, 15-minute, 5-minute, and 2-minute price data to track distance from the 200 WMA relative to key sess
This indicator identifies High Of Low Price (HOLP) and Low Of High Price (LOHP) candlestick setups based on price extremes over a specified lookback period. A HOLP signal triggers when the current bar closes above the high of a recent session low, whereas a LO
This indicator identifies local high pivot points on the price chart by comparing the high price of four bars ago against four preceding and four subsequent bars. When the middle bar is higher than all surrounding eight bars, it plots an H label on that peak b
Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi
This indicator calculates the statistical autocorrelation coefficient of an input series over a user-defined lookback window at a specified lag. It tracks values using an internal circular buffer, computes sample mean, variance, and autocovariance, and normali
This indicator plots a volume-weighted average price of the typical price on the chart and colors that line by ADX strength. It draws a standard-deviation envelope around VWAP and tints the fill green when plus DI leads and red when minus DI leads. Triangle ma
This script calculates a simple moving average of closing prices over a specified length and dynamically changes its plot color based on the direction of the average. When the moving average value is rising compared to the previous bar, the line displays the s
This indicator calculates a suggested position size from account size, risk per trade, and a percentage stop. It multiplies account size by the risk percent to get the dollar risk, then divides that by a stop distance equal to the current close times the stop-
Supply Demand is a Smart Money Concepts style indicator that maps market structure and identifies volumetric order blocks directly on the price chart. It detects swing points, structural sweeps, and key supply and demand zones. Users can customize structural c
This indicator calculates a 14-period RSI from close and plots it in a separate pane with dotted overbought and dashed oversold lines at 70 and 30. It marks bullish divergence when a five-bar pivot low in price is lower than the price twenty bars earlier while
The script calculates the Relative Strength Index (RSI) alongside customizable overbought and oversold thresholds. It tracks recent high and low values over a user-defined lookback period to detect price and momentum divergence. Bullish and bearish divergences
The Choppiness Index is a technical indicator designed to determine whether a market is trending or consolidating. It calculates values between zero and one hundred using true range sums and price ranges over a user-defined lookback length. Lower values indica
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This indicator plots Donchian channel bands and a midline on the price chart. It finds the highest and lowest values over a user-set length, then draws the upper band, lower band, and their average as the basis. The source setting chooses high and low, or the
The Candle Bar - No Repaint indicator plots candlestick bars on the price chart. It sets the high and low to the maximum and minimum open prices from the previous three bars. The close of the bar is taken as the current open. The bar color turns blue when the
This indicator marks unfilled price gaps on the chart. It treats a gap-up as the current low above the previous close and a gap-down as the current high below the previous close, then draws a colored box for each gap that extends to the right. A dotted line ca
This indicator calculates the average true range and plots it as a single line in a separate pane. It measures true range with gaps included, then smooths that series over a user-set length. The main settings choose the lookback length and the moving-average m
This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al
Breaker Blocks with Signals [LuxAlgo] is an overlay indicator that identifies smart money market structure swing points and breaker block zones. It plots bullish and bearish breaker blocks directly on the price chart as dynamic boxes. Traders can customize the
This indicator plots a smoothed stochastic oscillator in a separate pane, with K and D lines, a midsection background, and adjustable overbought and oversold levels. Optional highlights mark overbought or oversold breakouts and K/D crossovers, and ribbon filli
This indicator plots a Swami Chart of relative strength index values in a separate pane. It calculates RSI-style up and down ratios for lookbacks from 2 to 48 bars, smooths them with a Super Smoother filter, and colors stacked horizontal plots as a heatmap. Va
This strategy plots an RSI line in a separate pane and calculates Bollinger Bands and band width without showing those plots. It enters long when price crosses under the lower band and RSI is at or below the buy level. When price crosses the upper band and RSI
This strategy executes trend-following breakout trades using asymmetric parameters for long and short directions. It calculates Donchian channels and ATR (N) to adapt to directional market speeds. Long positions utilize a longer entry lookback and tighter ATR
Divergenced D002 is a trading strategy designed to identify entries based on price and Squeeze Momentum indicator divergences. It triggers long or short positions when histogram color transitions conflict with price higher highs or lower lows. Position exits a
Calculates and projects a Volume Profile Visible Range (VPVR) directly onto the price chart. It calculates volume distribution over a configurable lookback depth to generate horizontal profile bars and highlight the Point of Control (POC) line where trading ac
TPCharts Liquidity Range calculates and plots significant liquidity levels over a specified historical period and resolution directly on the main price chart. It highlights the range high, range low, and the 50% range equilibrium level, as well as the previous
Chandelier Flip Radar plots an ATR trailing stop on the price chart and tracks a directional trend state. It holds a ratchet stop until an accepted flip, using close or wick extremums and a body filter so weak breaks do not change direction. Distance to the fl
This indicator overlays a volume-weighted average price and a simple moving average on the price chart. It calculates VWAP from the typical price of high, low, and close and an SMA of close over a user-set length that defaults to 20. It plots the VWAP in orang
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.