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.
VRSK Tracker visualizes historical buy and sell transactions made by ARK Invest funds for Verisk Analytics (VRSK). It draws visual labels directly on the price chart at specific historical dates where trades occurred, displaying the action and the number of pa
This indicator plots a Wiener filter of a chosen price source on the price chart. It estimates noise from squared differences over a lookback window, estimates signal power from a smoothed mean of squared deviations, and blends the source toward that mean with
Supertrend Channels is a price-chart overlay. It builds ATR bands around the hl2 midpoint using a length and a multiplier, then tightens the upper or lower band while price stays on one side. A binary trend state flips when close crosses the opposite band. Fro
VRTX Tracker visualizes historical buy and sell transactions made by ARK Invest funds for Vertex Pharmaceuticals (VRTX). It places colored labels directly on the price chart at specific trade dates, displaying whether ARK bought or sold shares along with the n
This indicator calculates Williams %R and plots the result in a separate pane. It stores highs and lows over a lookback period, finds the highest high and lowest low, and expresses the close as a percentage of that range on a scale from -100 to 0. When the ran
Chilllax Moving Averages with Qullamaggie Colors calculates and displays two configurable moving averages directly on the price chart. It evaluates the alignment and directional slope of both averages compared to their values a set number of bars ago. Based on
VUZI-tracker overlays historical buy and sell transactions made by ARK Invest funds directly onto the price chart for VUZI stock. It plots colored labels above or below bars based on specific transaction timestamps, indicating buy or sell actions along with th
Calculates and plots the classic Williams Alligator indicator using smoothed moving averages (SMMA / Wilder's RMA) with exponential warmup compensation. It computes three distinct smoothed lines: the Jaw, Teeth, and Lips, which are plotted directly on the main
Equivolume Bars renders candlestick bodies and wicks using Pine Script box objects directly on the main price chart. It adjusts each bar's horizontal width proportionally to its trading volume relative to a historical lookback sum, making high-volume bars appe
WDAY-tracker displays historical ARK Invest buy and sell transactions for Workday Inc. (WDAY) directly on the price chart. The indicator places green labels below the candle for purchases and red labels above the candle for sales, indicating the action and the
Williams Fractals detects classic five-bar reversal patterns directly on the price chart. The indicator calculates up fractals when a candle high exceeds the two preceding and two succeeding highs, and down fractals when a low is lower than the surrounding low
Price Action Candles plots the close price in a separate pane. It also defines a helper that turns a number into a fixed-width string from a format pattern, using figure spaces and punctuation spaces so columns of values line up, with an optional leading minus
WDI Tracker visualizes historical buy and sell transactions executed by ARK Invest on the price chart. It displays trade activity and share volume adjustments, allowing traders to monitor institutional transaction history over time. An input setting enables fi
This indicator plots the Williams Gator Oscillator in a separate pane. It builds three smoothed moving averages (jaw, teeth, and lips) from a chosen source, shifts each by its offset, and plots two histograms: the absolute gap between jaw and teeth above zero,
SimpleBot is a Pine Script v4 overlay indicator that stores recent prior-bar opens and closes in rolling arrays and averages each series. It draws two horizontal lines on the price chart, one for the average open and one for the average close, both extended to
This indicator visualizes historical purchase and sale transactions made by ARK Invest on the price chart. It plots buy and sell labels corresponding to recorded trade dates, including share volume and ETF weight details depending on the selected settings. The
Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during
Calculates a dynamic trailing stop based on the Average True Range (ATR) and a sensitivity multiplier. It plots the trailing stop directly on the price chart, coloring the line green during uptrends and red during downtrends. Buy and sell labels appear when th
This indicator plots historical buy and sell transactions executed by ARK Invest ETFs for Workhorse Group Inc. (WKHS) directly on the price chart. It visualizes daily purchase activity with green labels below bars and sales with red labels above bars, includin
Beta Convexity plots the second difference of a linear regression fitted to the close. It estimates how that fitted series bends over a rolling window and draws the result in a separate pane with a zero reference line. The period input sets the regression leng
Blastoise's Indicator draws dynamic support and resistance trend lines on the price chart. It locates swing highs and swing lows with a fixed 20-bar pivot and joins the last three of each into rising lower lines and falling upper lines. A line is kept only whe
This overlay indicator marks historical ARK Invest purchases and sales of the WORK stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with a count of how many selected ARK ETFs traded that day. The ET
CSV Feed Reference is a Pine Script v5 indicator that plots the close price as a blue line in a separate pane. The published source contains no user inputs and no additional calculations, signals, or overlays. The file name and title identify it as a CSV feed
The Directional Movement Index plots the Average Directional Index (ADX) along with the Positive Directional Indicator (+DI) and Negative Directional Indicator (-DI) in a separate pane. It calculates trend strength and direction from price changes using true r
XLNX-tracker visualizes historical purchase and sale transactions made by ARK Invest funds for Xilinx (XLNX) directly on the price chart. The script plots green labels below price bars for buy transactions and red labels above price bars for sell transactions,
Elder Impulse System plots a column series in a separate pane. It compares a 13-period exponential moving average with its previous value and a MACD histogram with its previous value. A rising EMA and rising histogram print 1, a falling EMA and falling histogr
The Divergence Scanner is an indicator that detects divergences using the Hull Moving Average. It calculates the high-low average price as the source and applies a Hull Moving Average with length 21 and a lookback of 2. Users can enable the display of Hull sup
This Pine Script indicator plots the Geometric Brownian Motion Reference line on a separate pane. It calculates the reference value as the close price multiplied by e raised to the drift parameter, creating a simulated price path under GBM assumptions. The dri
This indicator calculates eight technical oscillators, normalizes their values to a 0 to 1 scale, and plots them as a visual radar or spider chart directly on the price chart. The supported oscillators include RSI, Stochastic, price correlation, MFI, Williams
This overlay indicator estimates a Holt-Winters-style level, trend, and acceleration from the close, then projects a middle line one step ahead. It tracks a smoothed squared forecast error and multiplies its square root by the multiplier to form upper and lowe
The OBV MACD Indicator calculates a volume-based momentum oscillator by combining On-Balance Volume with price standard deviation spread. It creates a synthetic price-volume shadow series, smooths it using an Exponential Moving Average, and applies a Moving Av
Rolling Minimum Index calculates and plots the bar offset to the lowest closing price over a user-defined lookback window using Pine Script's built-in lowestbars function. Plotted in a separate indicator pane, it outputs a negative integer representing how man
Squeeze Pro measures market volatility compression by comparing Bollinger Bands against three tiers of Keltner Channels (wide, normal, and narrow). It calculates squeeze intensity based on whether Bollinger Bands fall within these respective channel boundaries
This indicator detects volatility compression by comparing Bollinger Bands with Keltner Channels. It calculates standard deviation and Average True Range over a user-defined period, plotting a binary column in a separate pane. When the Bollinger Band width fal
The Volatility Stop indicator calculates a trailing stop level based on Average True Range (ATR) to help identify trend direction and reversal levels. It tracks price changes over a user-defined ATR period and multiplier, plotting a green line during uptrends
This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee
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.