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 indicator plots an extended Parabolic SAR on the price chart. It tracks a stop-and-reverse level with separate acceleration-factor start, step, and maximum settings for long and short modes. The start value can force an initial long or short direction, or
Price Action Candles is a minimal placeholder indicator written in Pine Script. It plots the closing price of the current symbol as a simple line in a separate indicator pane. The script contains no input parameters, entry or exit signals, trade alerts, or com
Dynamic Linear Regression Channels calculates and plots an auto-adjusting linear regression line alongside upper and lower standard deviation bands on the price chart. Unlike fixed-length regression tools, it dynamically expands its calculation window bar-by-b
This strategy trades long only on the price chart. It enters when a fast exponential moving average crosses above a slower one and sizes the next order from the last closed trade: the recovery quantity after a negative result and the full quantity otherwise. I
This indicator analyzes capital rotation and volume flow across 20 major cryptocurrency pairs. It compares volume changes and relative flow momentum across selected symbols to identify where market capital is migrating. The script overlays findings directly on
This overlay indicator visualizes historical ARK Invest transactions for PagSeguro Digital on the main price chart. It plots green labels below price bars for purchases and red labels above bars for sales at specific historical timestamps, indicating transacti
The Bear & Bull Zone Signal Strategy is a trend-momentum strategy that calculates an RSI based on Heikin-Ashi closes, smoothed with fast and slow double EMAs to identify bullish and bearish zones. It also computes a Stochastic oscillator applied to RSI values.
This indicator calculates the partial autocorrelation of a chosen price source at a user-selected lag and plots the coefficient in a separate pane. It estimates autocorrelation for lags up to the target lag, then applies Durbin-Levinson recursion so the result
The Price Action Candles script is an indicator that calculates and plots a custom On-Balance Volume (OBV) in a separate pane. It uses a rolling period to compute signed volume accumulation based on close price changes and volume data. The primary setting adju
Calculates cycle periods and spectral density using John Ehlers' roofing filter, autocorrelation, and Fourier smoothing methods. It plots a spectral heatmap and dominant cycle measurements in a separate indicator pane to help traders identify prevailing market
The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d
This overlay indicator marks historical ARK Invest activity in PACCAR on the price chart. It draws dated labels under bars for recorded buy days, with text showing Buy and a count of how many selected ETFs traded the stock that day. An ETF input switches betwe
Best Crypto DEMA is a long-only trend-following strategy that generates trading signals based on Double Exponential Moving Average crossovers. It calculates fast and slow DEMAs across a user-defined timeframe resolution, with an option to derive prices from He
This indicator calculates the percentage change of a chosen price source over a specified historical lookback period. It measures momentum by comparing current price values directly against historical values using direct history referencing. The output is plot
Price Action Candles draws a grid of dotted horizontal lines on the price chart around a user-chosen starting price. On the last bar it places one line at that anchor and equal numbers of lines above and below it, spaced by a tick or pip distance. Settings cha
This overlay indicator plots a fair value basis on the price chart and surrounds it with threshold and deviation bands. The basis can be an SMA, EMA, HMA, RMA, WMA, VWMA, median, or a VWAP anchored to a chosen timeframe, using a selectable price source and len
PineForge — Mosaic Map Regime is a trend-following strategy that dynamically scales trading signals using volatility regimes. It calculates an Exponential Moving Average and ATR, using a map to assign risk weights based on whether ATR percentage exceeds an exp
This indicator plots historical buy and sell transactions executed by ARK Invest funds for Pinduoduo (PDD) directly on the price chart. It uses historical trade records to render color-coded labels on corresponding transaction dates. Green labels positioned be
Big Bar Strategy identifies unusually large candles relative to a moving average of recent bar body sizes. It executes contrarian trades by opening long positions following a large bearish bar and short positions after a large bullish bar, with an optional con
This indicator plots a Percentage Price Oscillator in a separate pane. It computes fast and slow compensated exponential moving averages of the chosen source, then expresses their difference as a percentage of the slow average. An EMA of that line forms the si
The Price Action Candles indicator plots the current low price on the chart. This provides a basic visual reference line for price action traders. The plot appears directly on the price chart as an overlay. It helps identify potential support levels and curren
The Financials indicator displays a fundamental and technical comparison table on the price chart for up to five user-selected stock symbols. It uses fundamental financial data requests to calculate key valuation and financial health ratios, including Price-to
Orbit MTF Trend is a multi-timeframe strategy that plots higher-timeframe and local exponential moving averages on the price chart. It generates long entries on local EMA crossover above the higher EMA and closes positions on the reverse crossover. Risk manage
PERI Tracker overlays historical buy and sell transactions made by ARK Invest funds on the price chart for Perion Network Ltd. It plots labels at specific historical bar timestamps indicating transaction direction and the count of ARK ETFs participating on tha
Binance Liquidations is a strategy and separate-pane indicator that estimates derivative volume activity by calculating the volume spread between Binance perps and Coinbase spot data. It applies Weighted Moving Averages and a SuperSmoother filter to the volume
The Percentile indicator calculates and plots a custom percentile rank for a chosen price source over a historical lookback window. It gathers valid price points into an array, sorts the dataset, and applies linear interpolation to compute the target percentil
This indicator plots a 20 period simple moving average of the closing price on the chart. The test_val input sets the number of last bars to show for the plot. It draws in a separate pane using price action principles and a moving average. No buy or sell signa
This indicator plots FINRA daily short sale volume as colored columns alongside a simple moving average in a separate pane. Columns display in a brighter red shade whenever short volume exceeds the moving average. Users can configure the moving average length
The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a
PFE-tracker overlays historical buy and sell trades executed by ARK Invest for Pfizer (PFE) directly on the price chart. The indicator plots timestamped chart labels indicating transaction directions and the number of participating funds. Inputs allow users to
The Binary Options Strategy Template is a Pine Script v4 strategy that overlays the 14-period simple moving average on the price chart. It signals long entries when the close price is above the SMA and short entries when below. Positions close automatically af
The PFE indicator calculates Polarized Fractal Efficiency using fractal geometry. It compares the straight-line price distance over the period to the total fractal path length of bar-to-bar movements, producing a signed efficiency ratio smoothed by EMA. The re
Price Action Candles is a Pine Script v5 indicator that keeps a running integer and draws a text label on every bar. Each bar adds one to the previous count, then places a new label at that bar's index and close showing the number. There are no user inputs, no
This indicator calculates first passage time distributions using Monte Carlo simulations based on historical log returns and volatility. It models the time required for price to reach configured percentage threshold targets above or below current market levels
This strategy enters one long position when a fast exponential moving average crosses above a slow one. While the trade is open, it keeps an ATR stop and target under the same exit identifier. For the first revision hold bars those distances stay wide; afterwa
PGEN-tracker is an overlay indicator that marks recorded ARK Invest sell activity on the PGEN price chart. When the ETF input is set to ALL, it places red downward labels above bars on five dates in 2020, each reading Sell and X1. The input offers no other ETF
This strategy calculates custom moving averages weighted by binomial coefficients. It plots a fast and a slow binomial moving average directly on the price chart, filling the space between them according to the trend direction. A long position enters when the
The Pivot Points (Camarilla) indicator calculates eight pivot levels based on the previous bar's high, low, and close. It derives the central pivot point PP and resistance (R1-R4) and support (S1-S4) levels using the Camarilla equation. Users select a pivot ca
Price Action Candles is an overlay indicator that plots the closing price on the main price chart. It uses a single plot of the close series and adds no calculations, filters, or trading signals. There are no user inputs, so nothing changes colour, style, or c
The Flare indicator plots connected linefills on the price chart to create a customizable visual flare shape. It takes user inputs for flare width, bars to look back from the close, power factor, and step size to control the shape and transitions. The script i
This strategy identifies bullish trends using a fast EMA crossing above a slow EMA to enter long positions when no trade is open. Once entered it attaches a stop loss and limit order using ATR multiplied by the input values of 1.7 and 2.2 respectively. The fas
PHR-tracker overlays historical ARK Invest purchases and sales of PHR on the price chart as dated labels. Green labels below bars mark buys and red labels above bars mark sells, with text showing the action and how many ARK ETFs traded that day. An ETF input s
Binomial Strategy calculates a binomial cumulative distribution of recent up bars from a longer-run up probability and smooths it with two exponential moving averages. It plots the distribution and both averages in a separate pane and colors bars according to
This indicator calculates classic floor trader pivot points using high, low, and close prices from a higher timeframe. It determines the central pivot point along with three resistance levels (R1, R2, R3) and three support levels (S1, S2, S3). Calculated value
Price Action Candles is an unfinished strategy script written in Pine Script v5. It plots the closing price line in a separate pane below the chart. The script does not contain any trading signals, order placement logic, exit rules, or user-configurable input
The Gann Box (Zeiierman) indicator calculates and overlays Gann Box and optional Gann Fan structures directly on the main price chart. It projects horizontal Fibonacci level bounds and dynamic angle lines based on significant high and low points to highlight p
PineForge — Sextant CCI HMA is a trend-following momentum strategy that combines the Commodity Channel Index with a Hull Moving Average filter. The strategy opens long positions when the CCI crosses above a specified entry level, provided the HMA is rising and
This indicator overlays historical ARK Invest buy and sell transactions directly onto the price chart for Pinterest (PINS). It plots visual labels at precise execution timestamps, indicating buy or sell decisions along with the count of participating funds. Us
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.