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.
This indicator calculates the Tukey biweight loss between an actual series and a predicted series over a rolling window. Designed as a robust statistical error metric, it limits the influence of extreme outliers using a configurable threshold parameter. Values
This indicator plots classic On Balance Volume in a separate pane. It accumulates volume according to the sign of each close change, then overlays a smoothing moving average. Users choose the average method among SMA, EMA, RMA, WMA, and VWMA, set its length, a
This strategy evaluates premarket session activity on equity markets like NASDAQ. During premarket hours, it enters a long position whenever an intraday candle closes higher than its open price. Once the regular market session opens, the strategy automatically
TRU Tracker visualizes historical buy and sell trades executed by ARK Invest for TransUnion (TRU). It plots color-coded labels directly on the price chart at specific timestamps corresponding to reported transaction dates. Green labels indicate purchases, whil
This overlay strategy is aimed at silver and combines a length-based simple moving average with a MACD-style histogram. Inside a user-set date window it looks for bullish or bearish candles aligned with the average and a rising or falling histogram. One mode a
TYPPRICE: Typical Price is a core technical indicator that calculates the typical price for each bar. Computed as the arithmetic average of the bar high, low, and close prices, it serves as a common benchmark and price input for complex indicators like the Com
This indicator plots the Parabolic SAR (PSAR) on the price chart combined with Relative Strength Index (RSI) momentum filters. It calculates SAR dots and triangle markers to display trend direction. When a PSAR trend reversal occurs alongside confirmation from
A strategy based on the slow stochastic oscillator. Raw %K is smoothed into slow %K and then averaged into %D, with adjustable lengths. It enters long when slow %K crosses above %D while below 80, and short when it crosses below %D while above 20, reversing th
TSEM Tracker visualizes historical buy and sell transactions executed by ARK Invest for TSEM directly on the price chart. The script places color-coded labels below or above bars on specific dates corresponding to historical trade records, indicating buy or se
This indicator calculates the Ultimate Oscillator from buying pressure and true range over three lookback windows. It weights the fast, medium, and slow averages, defaulting to periods of 7, 14, and 28 with weights of 4, 2, and 1, then plots the result on a 0
This indicator calculates a Quantitative Qualitative Estimation (QQE) variant and plots it in a separate pane. It computes an EMA-smoothed RSI alongside a double Wilder-smoothed ATR of that RSI. From these, it creates fast and slow trailing stop bands based on
This strategy calculates a smoothed Stochastic RSI oscillator and generates trading signals based on overbought and oversold crossovers. It opens a long position when the %K line crosses above %D while below the oversold threshold, and enters short when %K cro
TSM-tracker places historical ARK Invest purchase and sale markers for Taiwan Semiconductor on the price chart. It draws green buy labels below bars and red sell labels above bars, each tied to a calendar date and marked with a count of how many ARK ETFs trade
Velocity (VEL) measures the zero-lag rate of price change smoothed using a Jurik Moving Average (JMA) algorithm. It calculates the raw difference between the current price and the price from a specified lookback period, then applies adaptive JMA smoothing to r
Range Filter is a chart strategy that estimates a smoothed price range from absolute bar-to-bar changes using two exponential averages and a multiplier. It plots a filtered price line plus high and low target bands on the price chart, colors bars by filter dir
The Supertrend ADX Filter strategy calculates Supertrend direction and ADX strength to generate trend signals. It plots the Supertrend line on the price chart in green for bullish and red for bearish. Long entries trigger on Supertrend direction change to bull
This indicator marks recorded ARK Invest purchases and sales of the TSP stock on the price chart. It draws green buy labels below bars and red sell labels above bars on hardcoded historical dates, with text such as X1 or X2 for how many selected ETFs traded th
This indicator calculates Adam White's Vertical Horizontal Filter in a separate pane. It divides the close range over the lookback by the sum of absolute bar-to-bar close changes, so higher values indicate a more directional path and lower values a more rangin
The RSI Strategy calculates the Relative Strength Index with a user-defined length. It generates long entries on crossover above the oversold threshold and short entries on crossover below the overbought threshold. The strategy overlays signals directly on the
Swing Pivot ATR is a trend-breakout strategy that identifies swing highs and lows using pivot points and enters positions on price breakouts. It tracks historical pivot high and low levels, plotting them as steplines directly on the price chart. When price clo
TTD-tracker visualizes historical buy and sell transactions made by ARK Invest ETFs in The Trade Desk stock. It plots colored labels directly onto the price chart at specific historical timestamps, indicating whether ARK funds accumulated or reduced positions
This indicator calculates and plots the positive and negative Vortex Indicator lines, VI+ and VI-, in a separate pane alongside a neutral reference line at 1.0. It uses circular buffers and running sums to compute true range and directional vortex movement eff
This indicator measures relative volume by comparing cumulative session volume against a historical average for the same time of day across previous days. Drawn in a separate pane, it renders a multi-color gradient area and stepline plot across four activity z
This strategy evaluates intraday trading execution for US equities during regular trading hours while handling overnight gaps. It calculates a 14-period Relative Strength Index (RSI) across price history without daily resets. Trades are gated by the market ses
This indicator overlays historical ARK Invest purchase and sale labels on the Twitter (TWTR) price chart. It places green buy labels below bars and red sell labels above bars on fixed calendar dates, with text showing the trade side and how many selected ARK E
This indicator plots a volume-weighted average price on the price chart and resets the calculation when the selected session changes. It builds first and second standard-deviation bands from a volume-weighted variance of the chosen source, which defaults to th
This indicator plots a custom volume profile on the price chart. It divides the price range into rows and calculates volume distribution by summing bar volumes that fall within each price level over a lookback period. Horizontal bars represent volume at each l
A long-only strategy that measures the rate of change of the Negative Volume Index and Positive Volume Index over separate windows. It enters long when both growth rates first exceed their minimum thresholds and price is above a trend EMA. It exits when either
UCTT-Tracker is a chart overlay indicator that visualizes historical buy and sell transactions made by ARK Invest for Ultra Clean Holdings Inc. (UCTT). It plots labels directly on the price chart on specific trade dates, displaying trade direction and the coun
This indicator calculates a volume-weighted average price from a chosen source and the chart volume, then plots upper and lower bands at a chosen number of standard deviations. Cumulative price-volume sums reset when the selected session interval changes, or o
This overlay indicator plots ATR-based trigger, target and Fibonacci levels around a prior close taken from a higher timeframe chosen by the trading type. Day, multiday, swing, position and long-term modes map to daily through yearly data. Optional CALL and PU
The strategy tests untested TA classes including ALMA, SAR and rolling correlation under bar magnifier. It enters long only when ALMA crosses above close, SAR flips below price and 20-period correlation of close and volume is positive. It exits long when SAR f
UPS Tracker visualizes historical buy and sell transactions made by ARK Invest for United Parcel Service on the main price chart. The indicator plots labels on historical bar dates to indicate transaction events and the count of participating ARK ETFs on speci
This indicator denoises a selected price source with an a trous, or stationary, Haar wavelet. It decomposes the series into an approximation and detail coefficients across one to eight levels, estimates noise from the mean absolute level-one details, and soft-
Tracks local swing highs and lows to determine market structure and current market bias. It draws horizontal price lines required to break structure, labels structural reversals or breaks, and highlights Buy The Dip and Sell The Rally setup points. Settings al
A test strategy from a reference corpus that checks a daily counter reset using the trading day time variable. The counter resets at each new session. When it is even and flat, the strategy buys one unit and adds one to the counter; when it is odd and long, it
URGN-tracker is an overlay indicator that visualizes historical transactions executed by ARK Invest for UroGen Pharma (URGN). It places color-coded labels directly on the price chart at specific historical dates, indicating whether ARK bought or sold shares al
This indicator calculates and plots the Weighted Close Price (WCLPRICE), a standard price transform compatible with TA-Lib and equivalent to HLCC4. It computes the value by summing the high, the low, and twice the close price, then dividing the total by four t
SHORT eMACD is a short-only strategy that evaluates bearish momentum using MACD crossunders, exponential moving averages (EMA), and consecutive candle filters. It offers five configurable entry modes combining MACD signals and custom EMA candle logic. Users ca
A long-only strategy built on the True Strength Index smoothed by an RMA signal line, shown in a separate pane with a minimum strength line. It enters long when the index crosses above its signal, exceeds a minimum strength and price is above a trend EMA. It e
This indicator plots historical buy and sell transactions made by ARK Invest funds for Veeva Systems (VEEV) directly on the price chart. It utilizes static trade records to display green labels below price bars for buy events and red labels above bars for sell
This indicator calculates the Cumulative Distribution Function (CDF) of the Weibull distribution based on min-max normalized price source data over a chosen lookback period. It transforms the normalized price value using adjustable shape (k) and scale (λ) para
This indicator plots smoothed Heiken Ashi candles on the price chart using two stages of exponential moving averages. It computes smoothed open, high, low, and close values with adjustable lengths of 10. Bullish candles appear green and bearish candles appear
A minimal strategy that compares the True Strength Index, with fixed 25 and 13 lengths, to a 13-period EMA of itself. It enters long when the index crosses above the average and short when it crosses below, reversing the position each time. It has no adjustabl
This indicator visualizes historical buy and sell transactions executed by ARK Invest ETFs for Velo3D (VLD). It plots green buy labels below bars and red sell labels above bars directly on the main price chart at specific historical timestamps. The labels indi
This indicator calculates weighted mean absolute percentage error between an actual series and a predicted series over a rolling window. It sums absolute differences and absolute actual values, divides those sums, and scales the result by one hundred. Length,
This indicator identifies regular and hidden bullish and bearish divergences between price action and multiple technical indicators, including RSI, OBV, MACD, Stochastic, and CCI. It evaluates price and indicator pivots over a configurable lookback window, cal
This Pine Script strategy executes a dual moving average crossover system designed as a validation test for intraday order capping across exchange session rollovers. It calculates a 9-period fast SMA and a 21-period slow SMA, entering long on bullish crossover
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.