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 plots pivot trendlines on the price chart and scans for divergences using RSI. It combines multiple moving averages, stochastic RSI indicators, and multi-timeframe stochastic RSI to generate buy and sell signals based on confluence. Entries foll
This overlay indicator looks for swing highs and lows and draws D-shaped patterns around them on the price chart. Historical patterns can be shown as arcs, midlines, or both, with optional color fill and a line connecting the swing level. A breakout flag, tren
PF TA Isolate 10 - Typed-Matrix UTC is a Pine Script v6 strategy designed for engine parity validation. It populates a 24-by-7 boolean matrix tracking high-RSI hours and days using an explicit UTC timezone specification. The matrix is transposed twice to check
The script plots symmetrical golden shapes on the price chart using Fibonacci ratios of 0.382 and 0.5 to create boxes, rectangles, ellipses, triangles and other polygons. It detects symmetry levels around a user-defined center ratio and applies optional manual
ONE-tracker is an overlay indicator that marks ARK Invest purchases of the stock ONE on the price chart. It places green buy labels below bars on fixed calendar dates, each showing a buy mark and a count of X1. An ETF input is present but only offers ALL, so t
A trend-following strategy combining Bollinger Bands with a long-term moving average filter. It plots a 200-period EMA along with standard 21-period Bollinger Bands directly on the price chart. Long entries trigger when both the upper and lower Bollinger Bands
NW - Nadaraya-Watson Kernel Regression is an indicator that applies a non-repainting Gaussian kernel regression filter to smooth price data. For each bar, it calculates a normalized weighted average of historical values using a Gaussian weighting function, ope
This strategy draws on the price chart and manages long and short entries around pivot trendlines. It filters signals with three configurable moving averages, Stochastic RSI, a higher-timeframe Stochastic RSI, and optional RSI divergence. A session window can
Daily Chess Puzzles [LuxAlgo] renders interactive chess puzzles directly on the price chart using imported historical puzzle dataset libraries. The script parses chess notation to render pieces and a board on the layout. Users can type in move answers using th
This validation strategy calculates a 14-period Relative Strength Index (RSI) and maintains a persistent 24x7 boolean matrix tracking whether RSI crossed above 60 for specific hour and day combinations. Long positions are entered when at least six cells in the
This indicator calculates a simple moving average (SMA) alongside a zero-centered symmetrized price series and its moving average. It uses Average True Range (ATR) to create a dynamic price offset, plotting a stepline translated moving average along with an up
This indicator plots historical ARK Invest buy and sell events for ONEM on the price chart. It places green labels below bars for buys and red labels above bars for sells, each marked with an X1 count, using fixed calendar dates rather than calculated signals.
This strategy plots a volume-weighted average price, Bollinger Bands built on that VWAP, a 200-period simple moving average, and Fibonacci pivot levels in a separate pane. It opens a long position when VWAP crosses above the band basis and the close is at or a
This indicator plots an adaptive One Euro low-pass filter of a chosen price source on the chart. When movement is slow it uses a lower cutoff for heavier smoothing; when the smoothed derivative rises it raises the cutoff to reduce lag. Minimum cutoff, the spee
This strategy combines triple moving average trend filtering with Stochastic RSI levels and optional RSI divergence signals to generate long and short trade entries. It uses Average True Range multipliers to define dynamic take profit and stop loss levels for
The Developing Market Profile indicator plots a histogram of price distribution on the price chart. It calculates the most traded prices over a user-defined lookback period and divides them into columns based on resolution setting. The profile can be offset fr
A test strategy from a reference corpus that evaluates RSI, a MACD histogram and a Bollinger middle line on 1-hour data requested from a 15-minute chart, with lookahead off. It goes long one unit when hourly RSI is above 55, the hourly histogram is positive an
The Tagnet Circles indicator plots geometric time-price circle projections directly on the price chart. Users interactively select two time anchor points to establish a high-low price and time window. The script draws a central main circle with dashed upper an
This indicator overlays historical ARK Invest trade marks for Organovo Holdings on the price chart. When the ETF input is set to ALL, it places red labels above bars on fixed calendar dates, each reading Sell and X1. The ETF setting switches among ARKG, ARKK,
This strategy calculates the normalized rate of change between On-Balance Volume (OBV) and Price Volume Trend (PVT) indicators. It applies Bollinger Bands to this volume metric along with a Hodrick-Prescott filter array for time series decomposition. Displayed
Parabolic SAR plots dots on the price chart to indicate trend direction and potential reversals. It calculates a trailing stop level that starts at the extreme price of the prior bar and adjusts using an acceleration factor that increases with each new extreme
Premium Dashboard evaluates multiple technical indicators, including moving averages, oscillators, and price action metrics, displaying a consolidated confluence table on the main chart pane. It calculates bullish and bearish alignment across up to ten customi
This indicator overlays a dividend calendar on the price chart for a list of stocks. It schedules expected dividend payments by ex-date or pay-date, optionally estimates future payouts, and can show dividend growth over a chosen number of years. Users pick the
This validation strategy executes on the price chart to test bracket order execution. It enters a single long position at 00:15 whenever flat, using a fixed quantity of one contract. Upon entry, it immediately places a bracket exit order with a 0.4% take-profi
This Pine Script indicator plots tangent circles and mirrored price candles on the price chart using two user-defined time-price points. It calculates mirrored prices over the two points and weights the circles by the absolute candle bodies at those times. The
OPEN Tracker visualizes historical buy and sell transactions executed by ARK Invest for Opendoor Technologies (OPEN). It plots color-coded labels directly above or below price bars on specific trade dates, indicating the transaction direction and how many ARK
BB策略 is an overlay strategy combining standard Bollinger Bands with candlestick pattern recognition logic, including engulfing patterns, dojis, and long upper shadows. It calculates an SMA basis line and standard deviation bands, plotting them directly on the
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
The strategy enters a long position of two lots at 1:15 on the hour when no position is open. It then places a take-profit order for half the position at 0.3 percent above the average entry price and a stop-loss order for the remaining half at 0.6 percent belo
Time Analyzer {Morindok} calculates pivot highs and lows over a user-defined length to establish structural market baselines. It supports either an alternating ZigZag mode or independent high and low swing tracking. Based on these anchor points, the script con
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
A test strategy from a reference corpus that compares a normal market close with an immediate close. It buys one unit at 02:15 and closes at 03:15 in the normal way, then buys again at 10:15 and closes at 11:15 with the immediate option. Entries depend only on
Time Machine is an indicator that plots symmetric candles mirrored across a user-selected price level within a time range set by Point 1 and Point 2. It draws a horizontal yellow line at the selected level extending from t1 to t2 on the price chart. The script
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
This strategy isolates global pending-order cancellation and a full position close on the price chart. At 04:15 it places a long limit at 80 percent of close and a short limit at 120 percent of close so they are unlikely to fill. At 04:30 it cancels every pend
Time Machine plots horizontal lines on the price chart at user-defined start and end price levels. It supports two calculation bases: SMA for average price or HH/LL for high-low ranges. The time range is set by start and end timestamps, with options to auto-de
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
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.