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.
BTC Bot is a trading strategy designed for cryptocurrency charts. It calculates Weekly Pivot Points and a smoothed momentum oscillator based on RSI and EMA. Long entries trigger when the oscillator crosses above zero, while short entries trigger when price bre
This indicator applies a recursive least squares adaptive FIR filter to a chosen price source and plots the resulting smoothed series on the price chart. Each bar it predicts from past source values, updates a weight vector from the prediction error, and refre
A momentum scalping strategy designed for 5-minute charts that combines the Relative Strength Index (RSI) with fast and slow Simple Moving Averages (SMA). It triggers long entries when the 14-period RSI exceeds 70 while the 5-period SMA is above the 20-period
This indicator calculates relative volume metrics and combines them with On Balance Volume (OBV) momentum and price-OBV correlation in a separate pane. It evaluates volume strength against simple moving averages and standard deviation thresholds, while offerin
This strategy combines the Rank Correlation Index (RCI) and Williams %R to identify momentum confirmation for long positions. It enters a trade when RCI crosses above a specified entry threshold while Williams %R remains above its configured level. Exits occur
SCHW-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of Charles Schwab stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text showing the direction
This strategy constructs a synthetic Bitcoin price feed by averaging open, high, low, and close data across seven cryptocurrency exchanges. It derives a composite price value using quadratic averaging and plots a volatility envelope around its simple moving av
Regression Channels calculates a linear regression trend line and standard deviation channel bands over a specified lookback period. It computes standard deviations from the residuals to form symmetrical upper and lower channel bands around the central regress
RT Candle Signals LCBigMoves recolors candlestick bars directly on the chart to emphasize specific price action patterns. It identifies and highlights opening session bars based on a configurable time window, long-wick rejection candles determined by wick-to-b
This educational indicator demonstrates a multi-layer neural network built natively in Pine Script using matrices and arrays. It normalizes price input data, executes feedforward and backpropagation cycles across user-defined epochs, and updates internal weigh
This indicator plots labels on the SEDG price chart to mark ARK Invest buy and sell trades from November 2019 onward. Labels indicate share volume changes at each trade date. The main input setting selects an ETF type to filter which trades are visualized. Lab
This strategy plots the RSI of Bitfinex Bitcoin long and short interest in a separate pane and colors a zero line from changes in those series versus short exponential moving averages. It opens a long when the long-interest RSI crosses above the short-interest
Relative Absolute Error (RAE) measures the accuracy of a moving average model against an underlying price series. It compares the sum of absolute forecast errors between the source and its Exponential Moving Average to the baseline absolute errors relative to
This indicator detects confirmed pivot highs and lows using a user-set pivot length and stores those prices in rolling arrays. It optionally draws extended horizontal support and resistance lines for each stored level and plots the average of the stored resist
This indicator calculates and overlays numerical volume or time metrics directly on chart bars, primarily tailored for Renko style analysis. It compares current values against an EMA or SMA baseline to grade activity across multiple visual tiers and color scal
This indicator marks historical ARK Invest purchases and sales of SEER on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with a same-day ETF count such as X1. An input switches between all recorde
This strategy plots a moving average with a range band on the price chart and places stop entries when the source crosses the upper or lower band. Long and short orders are cancelled if price returns through the average or reaches the stored stop price. Option
This indicator calculates Relative Squared Error between a selected price source and an exponential moving average of that source. It divides the rolling sum of squared differences by the rolling sum of squared deviations from the source mean, using circular b
ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os
This indicator generates geometric circular boundary plots anchored to the right edge of the chart. It calculates upper and lower arc curves across a set bar radius using circle equations and the distance to the final bar index. The indicator plots both bounds
This overlay indicator marks historical ARK Invest purchases and sales of SGFY on the price chart. It draws green buy labels below bars and red sell labels above bars at fixed dates, with each label showing a single-ETF count. An ETF input switches between all
Bulle de bollinger is a price-chart strategy that plots a 20-period simple moving average and two-standard-deviation Bollinger bands, with a fill between the bands. It enters long when the prior bar's open and close are below the lower band, and short when the
This indicator calculates the Relative Strength Index from a chosen price source using Wilder's smoothing of average gains and losses. It plots a single RSI line in a separate pane. The length sets the lookback period and the source selects the series used in
This strategy draws up to three session range boxes and optional backgrounds on the price chart. It records each session high and low, then looks for a breakout during a later trading window after a set number of candles close outside the range. Entries can be
Oscillator Scatterplot Analysis [Trendoscope] plots a scatterplot visualization of technical indicators in a separate pane. Users can choose from various oscillator sources including RSI, CCI, CMO, COG, MFI, ROC, or price, and apply overbought and oversold thr
SGL-tracker plots historical ARK Invest transactions for SGL directly on the price chart. It marks historical buy and sell actions using chart labels positioned at specific trade timestamps, detailing the action and the number of participating ARK ETFs. Users
The script plots the SMA middle band along with Bollinger upper and lower bands with two standard deviations, filling the area between them on the price chart. It signals long entries on a close crossing above the lower band after the previous bar was below it
This indicator plots Relative Strength Xtra in a separate pane. It splits the source into positive and negative bar-to-bar changes, then smooths each side with an integrated Jurik-style moving average before combining them into an RSX momentum reading. Length
This indicator tracks key price levels and range boundaries across user-defined trading sessions on the main price chart. It calculates session extremes, including highest high, lowest low, session midpoint, and highest or lowest candle body levels during a sp
Pandora Vast Volatility Treasure Trove calculates and plots multiple historical volatility estimators in a separate pane. It offers several mathematical models including Parkinson, Garman-Klass, Rogers-Satchell-Yoon, and Yang-Zhang volatility. Users can adjust
SI-tracker is an overlay indicator that places historical ARK Invest purchase marks for this stock under the price bars. Each mark is a green label at a fixed calendar date and shows a buy count rather than a calculated signal. The ETF input switches among ALL
This educational strategy executes trades based on specific days of the week, entering long on a chosen weekday (Monday, Tuesday, or Wednesday) and closing or reversing to short on Friday. It plots dynamic stop loss and take profit price levels directly on the
This indicator plots the Relative Vigor Index and a four-bar symmetrically weighted signal line in a separate pane. It compares the close-open range with the high-low range using fixed four-bar SWMA weights, then divides a simple moving average of the numerato
Session High Low Levels with Session Breakout Box Strategy tracks customizable trading sessions to calculate and display key price levels directly on the main chart overlay. It identifies the highest high, lowest low, highest candle body, lowest candle body, a
This indicator plots periodic linear regressions on the main price chart based on selected anchor period and source. Users choose rolling or static method, periodic or first bar anchor, multiple factor, and color options including bicolor and gradient. Extremi
SIE-tracker plots historical ARK Invest transaction data for SIE directly onto the price chart. It uses chart labels positioned above or below price bars to mark specific dates when ARK funds bought or sold shares, showing buy or sell designations alongside tr
This strategy holds a long position between user-defined start and end dates. It enters long with the full equity while the chart time is inside that window and closes the position when time falls outside it. Day, month, and year inputs set both boundaries. It
This indicator calculates and plots a rolling sum of an input price series over a specified lookback period in a separate pane. It implements the Kahan-Babuška algorithm to maintain numerical precision and mitigate floating-point errors across rolling addition
This strategy executes long and short trades on the price chart by combining multi-timeframe smoothed Heikin-Ashi trends, higher-timeframe Hull Moving Average variations, and an ATR-based trailing stop. Users can adjust timeframes, smoothing lengths, Hull form
This indicator overlays a population-sampled linear regression channel with standard deviation bounds onto the price chart to evaluate price distribution and pivot momentum. It calculates statistical moments including mean, variance, skewness, and kurtosis to
This indicator overlays historical ARK Invest sell markers for SILC on the price chart. When the ETF input is set to ALL, it places red labels above the bars dated 15 and 16 January 2020, each showing a single sell count. The only setting selects the ETF view,
This strategy searches for long buy-and-hold entries on the price chart. It calculates a user-length EMA and a fixed 12/26 MACD, then opens a long position when price is within the maximum EMA distance, that distance is not shrinking, MACD is at or below zero,
This indicator measures the root mean squared error between a chosen price source and an exponential moving average of that same source. It averages squared differences over a user-set lookback with a circular buffer, then plots the square root as a red area i
This strategy calculates smoothed Heikin-Ashi candles alongside a moving average of the Relative Strength Index to enter trend reversals. It triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entr
This indicator tracks and visualizes the historical performance of a multi-asset portfolio against a selected benchmark symbol. It displays performance metrics, specification details, and asset allocations directly on the price chart using customizable on-scre
This indicator overlays historical ARK Invest purchase marks for SKLZ on the price chart. It places green labels below bars on fixed calendar dates, each reading Buy with an X1 count, using bar time rather than a calculated signal. The only setting chooses whi
This strategy simulates a buy-and-hold or short-and-hold position across a user-defined date window. It enters a single long or short position when the bar time reaches the start date and holds that position continuously until the end date passes, where it tri
This indicator calculates root mean squared logarithmic error between a selected price source and an exponential moving average of that source. It squares the difference of the logarithms of one plus each series, averages those values over the lookback with a
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.