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.
A Pine Script v5 library that records the open, high, low and close points of successive periods and keeps the latest few in an array. It exports types for period contexts and alignment, a helper that detects when a period such as a week or month changes relat
This indicator overlays dated ARK Invest buy and sell labels on the FATTAL price chart. It places a green buy label below the bar and a red sell label above the bar at fixed historical timestamps, with text marking the direction and a count of one. An ETF inpu
This indicator implements a one-dimensional function minimizer in a separate pane, based on golden-section search combined with successive parabolic interpolation. A sample function of cosine plus one is evaluated inside a rolling log of the latest ten results
Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,
This Pine Script strategy detects bullish engulfing candlestick patterns to generate buy and sell signals overlaid directly on the price chart. It supports backtesting over a user-defined date range with inputs for profit target, stop loss percentage, order si
This indicator plots Ehlers Ultimate Bands on the price chart. It smooths the selected source with an Ehlers ultrasmooth filter, measures the root-mean-square of residuals over the lookback, and draws upper and lower bands as that smooth line plus or minus the
History SAW demo is a TradingView documentation example script that demonstrates basic long position entry execution. The script enters a long position on every bar, building positions up to a maximum pyramiding limit of 100 entries. Orders are re-evaluated on
This indicator calculates the Williams Gator Oscillator derived from Bill Williams Alligator lines and plots dual histograms in a separate pane. The upper histogram displays the absolute difference between the Jaw and Teeth moving averages, while the lower his
This strategy implements a custom Parabolic SAR algorithm to generate trend-following entries. It plots current and next-bar SAR levels directly on the main price chart. When the SAR flips, the strategy places stop orders to reverse positions from long to shor
This strategy looks for a long rebound after three or more candles of falling volume followed by a higher-volume candle, while price is lower across that span. It is written as a Zignaly-linked TradingView strategy and was noted for BTCUSDT on the one-hour cha
The script calculates a two-layer reversal scoring system designed to identify potential market turning points. Layer A evaluates momentum, overextension, volume, and candle metrics to establish a setup score, while Layer B confirms structural events such as m
Calculates a dynamic trend level based on recent highest and lowest prices adjusted by a weighted moving average of Average True Range. It plots the Trend Trader Line directly on the price chart and colors bars according to the active trend direction. Long ent
This strategy detects liquidity sweeps and market structure shifts by computing swing highs and lows on a base timeframe then drawing zones around them. On a confirmation timeframe it identifies sweeps when price exceeds zone boundaries followed by rejection c
Jerry MACD is a momentum oscillator indicator displayed in a separate pane. It calculates a standard Moving Average Convergence Divergence line, signal line, and histogram using fast, slow, and signal lengths. The indicator features symbol-specific entry thres
This indicator calculates volume-weighted money flow across price action, plotting in a separate pane. It combines close-to-range and close-to-close metrics using dynamic or static weighting. Users can toggle between an index mode smoothed by RMA or a cumulati
This strategy detects roll states in multiple timeframes to generate trading signals on the price chart. It fetches close prices from 60m, 240m and daily bars using request.security. Long entries trigger on a 60m roll up with flat 240m state or on a daily high
This indicator lets traders select any time range on the price chart. It computes the high and low prices, total range height, green candle height, and red candle height inside the chosen period. The duration in minutes is also calculated. A table at the top r
A price-chart indicator that combines trend, range edge reversal and transition breakout sleeves, with shock conditions blocking new signals. It uses an adaptive core, causal trail, completed ranges and a previous completed higher-timeframe filter. Presets suc
Time-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement
TN Sovereign Market Structure v6 is an overlay strategy that identifies market structure breaks and trends using pivot points, a 50-period Exponential Moving Average (EMA), and the Ichimoku Cloud. It detects Break of Structure (BOS) signals when price closes p
Draws supply and demand zones on the price chart from engulfing candle patterns. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance margin. A long term mode keeps more zones. Algori
An indicator that draws a box on the price chart for each higher timeframe period, showing that period's range as one candle-like block. The timeframe is chosen automatically from the chart timeframe or set by hand. Box height can be based on the high-low rang
This indicator plots ARK Invest buy and sell trade labels directly on the price chart for Facebook stock. Labels show buy quantities with green "Buy Xn" text and sell quantities with red "Sell Xn" text at exact bar times. The etf_type input changes the ETF fil
This visual script displays a digital matrix screen effect using TradingView tables. It generates pseudo-random character displays across a customizable grid of rows and columns. Users can configure the table dimensions, controlling row and column counts to ad
This indicator plots two Williams Vix Fix series in a separate pane as thick histograms with thin step lines. It scales recent highs, lows, and closes, then builds upward and downward variants selected by the VixFix UP and DN settings. Bars turn colored when a
This boilerplate strategy script acts as a customizable template for generating buy and sell signals based on price or source crossovers relative to defined fixed values. Users can select an input source, set threshold values, and specify whether to trigger en
Ehlers Ultimate Channel calculates volatility bands around an adaptive smoothed centerline based on John Ehlers' smoothing algorithm. It applies a specialized infinite impulse response filter to both price and True Range, constructing an upper, middle, and low
Holiday Candles is a visual demonstration script from TradingView documentation that renders price candlesticks with randomized colors. For each bar, it generates pseudo-random values for red, green, blue, and transparency levels to construct a dynamic RGB col
This indicator plots a winsorized mean moving average of the close on the price chart. Over a lookback window it sorts values, replaces the lowest and highest percentage of samples with the values at the trim boundaries, and averages the full window so outlier
Identifies the two-candle bullish Piercing Line reversal pattern during a downtrend directly on the price chart. It checks for a long bearish candle followed by a bullish candle opening at or below the prior low and closing above its midpoint. Users can filter
Ruckard Walcrypto DoubleDonchian is a trend-following breakout strategy built on two Donchian Channels with an optional exponential moving average filter. Position entries trigger when price achieves a new high or low on the primary channel, provided the optio
This indicator draws support and resistance zones on the price chart from reversal bars that later reach ATR-based targets. Weak and strong labels depend on travel distance, adverse move, and how quickly the target is hit. Nearby same-direction zones merge, a
Vdubus Pattern Gen V2 is a TradingView indicator that identifies and plots chart patterns, harmonic shapes, and structural reversals based on multi-scale ZigZag structures and smoothed momentum physics. It draws fast entry structures, slow macro context struct
This indicator plots Malaysian-style support and resistance on the price chart. It marks A levels from pivot highs and V levels from pivot lows, using a user-set lookback, and can also mark gap levels. Fresh and previously touched levels can be shown or hidden
This trading strategy evaluates moving average slope and concavity changes to identify trend direction and entry signals. Traders can choose between Hull, EMA, SMA, WMA, or ALMA moving averages, filtered by secondary trend EMAs for long and short positions. Si
Earnings Price Move Cheat Sheet [Kioseff Trading] is an overlay indicator designed to quantify price movements around earnings announcements. It calculates percentage returns across earnings periods and uses historical simulation to estimate Value at Risk (VaR
This strategy is a validation probe that isolates an implicit reversal exit. When flat at 00:15 it enters one long unit. At 00:45 an opposite short entry of quantity one closes that long and opens a short. At 01:15 an opposite long entry reverses back to long.
Measures a chart range chosen by two time inputs and projects offset levels from it on the price chart. It records the highest high and lowest low inside the range, takes the range height, and plots nine upward levels from the close at one to nine times that h
An On-Balance Volume oscillator in a separate pane. It plots an OBV histogram against a moving average chosen from SMA, RMA, WMA or VWMA and marks regular and hidden divergence from pivots. Optional filters use a higher-timeframe confirmation, ADX and a volume
Tick-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement
This multi-timeframe strategy combines higher-timeframe trend context with lower-timeframe execution. It evaluates macro trend direction on a higher timeframe using Exponential Moving Average crosses and a Supertrend indicator. On the lower timeframe, entry si
Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s
Experimental overlay that tracks high and low points for several period types such as session, five and ten minutes, day, week, month and year using varip objects. It draws dashed lines for the current period extremes and writes debugging labels with times on
FBRT-tracker is an overlay indicator that marks recorded ARK Invest activity in FBRT with labels on the price chart. With the ETF input set to ALL, it draws red downward labels above bars on fixed dates, each reading as a sell with a count of X1. The only sett
This indicator builds a TradingView table in a separate pane and fills its cells with fixed placeholder text according to whether each row and column index is even or odd. Users set the table position, the number of rows and columns, and the background, frame,
This indicator overlays a Renko-style brick channel on the price chart. It sets brick size as a fraction of the previous close, choosing that fraction from the chart timeframe, then steps two brick levels when price moves beyond that size. It colors the fill g
This strategy plots a fast and a slow exponential moving average on the price chart and trades their crossovers. It enters long when the fast average crosses above the slow average, volume is above 85 percent of the prior five-bar average, and price is above t
This indicator calculates John Ehlers' Ultimate Smoother Filter, a two-pole infinite impulse response filter designed to reduce market noise while minimizing lag. It computes filter coefficients using exponential decay and trigonometric functions, then applies
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.