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.
This strategy combines a smoothed stochastic oscillator with three exponential moving averages. It opens a long position of 1000 units when the stochastic K line crosses above D and the 5-period and 15-period EMAs both cross above the 50-period EMA. It closes
TTM Trend plots an exponential moving average of a chosen source on the price chart and colors the line by the direction of its one-bar change. A positive change is green, a negative change is red, and an unchanged value is gray. Optional bands scale with the
MyVIXFIX calculates the Williams Vix Fix as the percentage distance from the highest close over a lookback to the current low. It plots that reading as histogram columns in a separate pane. Columns turn red when the value reaches the upper Bollinger band or an
TREE-tracker visualizes historical buy and sell trades made by ARK Invest funds directly on the main price chart. It projects static historical transaction records across specific timestamps and plots labels below or above price bars to indicate transaction ac
This strategy demonstrates how to place and cancel pending stop orders with syntax formatted for MT4 and MT5 webhook bridges. It generates entries using a smoothed Stochastic oscillator crossover and crossunder. Stop orders are placed at a configurable tick di
This indicator plots six MACD histogram channels from exponential moving averages. Fast period is eight and the signal period equals each Fibonacci slow period: 34, 55, 89, 144, 233, and 377. Wave A shows short-term momentum, Wave B medium-term, and Wave C lon
This overlay indicator builds a volume profile from a chosen number of recent bars and splits the price range into rows. It draws a horizontal volume histogram on the price chart, highlights the point of control, and can optionally show a rolling point of cont
The TRMB-tracker indicator plots labels directly on the TRMB stock price chart to mark ARK Invest buy and sell trades. It displays specific dates with "Buy X1" or "Sell X1" text in green and red colors. The input setting selects an ETF type from ARKK, ARKQ, AR
This strategy plots three moving averages on the price chart, although the calculations use simple moving averages despite the EMA title. It enters long when the fastest average crosses above the other two and short when it crosses below them, limited to the L
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
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
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
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
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
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 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
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
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
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
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
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 indicator overlays dated labels on the VMware price chart to mark recorded ARK Invest activity. With the ETF setting on ALL, it places green buy labels below the bars and red sell labels above the bars on four fixed dates in 2020. Each label shows a simpl
Calculates the Weighted Root Mean Squared Error (WRMSE) between an actual data series and a predicted series over a user-defined lookback window. It plots the resulting error metric in a separate pane along with a baseline at zero representing zero error. User
Combines Supertrend, Relative Strength Index (RSI), and Bollinger Bands into an overlay indicator on the price chart. It calculates ATR-based trend boundaries alongside an RSI-derived smoothed moving average and volatility bands. Main inputs allow users to adj
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.