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 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 strategy calculates a fast EMA, a slow EMA, and an ATR value to implement a trend-following trading model with cash position sizing. It enters long trades when the fast EMA crosses above the slow EMA. Positions are exited when the fast EMA crosses below t
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
Session Wicks is a price-chart strategy that combines a Heikin Ashi weighted moving average, an RSI compared with its moving average, and a smoothed stochastic. Bullish and bearish states come from the Heikin Ashi average falling or rising and from RSI sitting
This indicator calculates and displays the empirical probability distribution of transformed market data alongside theoretical distributions in a separate pane. It compares empirical bar frequencies against theoretical models like normal or Laplace distributio
The PineForge Compass Partial Ladder strategy identifies trend-following opportunities using a fast and slow Exponential Moving Average (EMA) crossover. Upon entering a long position, the strategy manages risk and profit targets using Average True Range (ATR)
This indicator overlays historical ARK Invest trade marks for the SLGC stock on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, each marked with an ETF count such as X1. An input switches the view
This strategy tests calendar-day buy-and-hold timing on the price chart. Inside a user-set start and end date, it opens a long entry whenever the calendar day of the month matches the entry day. If the exit-day option is on, it closes every position on the day
This indicator calculates the R-squared coefficient of determination between a chosen price source and its exponential moving average over a specified lookback period. It plots the resulting statistical fit score as an area curve in a separate pane, alongside
Sessions Toolbox overlays key intraday trading sessions—Asia, Euro, and USA—directly on the price chart. It features optional background highlighting, markers for session open and close levels, and session-specific Volume Weighted Average Price (VWAP) lines wi
This utility indicator displays a palette of Pine Script colors using horizontal lines and labels in a separate pane to assist script developers with color selection and theme design. It does not provide trading signals. Users can simulate black, dark, or ligh
PineForge — Constellation Bands is a mean-reversion strategy displayed on the price chart. It calculates standard Bollinger Bands alongside price volatility. A long entry triggers when the close price crosses back above the lower band while remaining below the
This indicator plots historical ARK Invest buy and sell labels for SLGCW on the price chart. An ETF input switches between a combined view and ARKG only. In the combined view, each dated label shows a buy or sell mark and a same-day ETF count. In the ARKG view
This dollar-cost averaging backtesting strategy executes periodic buy entries within a user-defined date window. The script calculates position size based on a fixed USD amount input for each executed trade, accumulating long positions at regular intervals. On
This indicator implements John Ehlers' Swiss Army Knife as a second-order recursive filter and plots the result in a separate pane. A mode string selects EMA, SMA, Gaussian, Butterworth, smoother, high-pass, two-pole high-pass, band-pass, or band-stop coeffici
This overlay indicator combines classic Bollinger Band and Keltner Channel squeeze detection with linear regression momentum and pivot-based support and resistance levels. It plots a long-term moving average filter and tracks squeeze compression and release co
This indicator generates a multi-ticker dashboard table displaying key metrics across multiple symbols on a user-defined timeframe. It calculates data such as percentage price changes, RSI values, and moving average relationships using multi-symbol requests. S
This strategy uses RSI with bull and bear threshold crossovers to trade opposite market pairs. It enters long when RSI crosses above 58 and short when below 42, automatically closing the opposite position first. Entry size is 8 percent of equity with 0.05 perc
The SLGL-tracker is an indicator that plots labels on the price chart to visualize ARK Invest's purchases and sales of stocks from November 2019 to the present. It draws buy and sell labels showing share volume and ETF weight for selected ETFs. Users can choos
This strategy simulates a monthly dollar-cost averaging investment plan over a user-defined date range. It executes an initial long position at the start of the date window and continues to add long entries at the start of each subsequent month or year. Positi
This indicator calculates John Ehlers' Smoothed Adaptive Momentum oscillator in a separate pane. It identifies the dominant cycle period using a Hilbert Transform and Homodyne Discriminator, then measures price momentum across that dynamic cycle length. A two-
This indicator calculates a Slow Stochastic Oscillator plotted in a separate pane. It calculates a smoothed %K value using a 3-period stochastic raw calculation averaged over a configurable K Period simple moving average. The %D line is calculated by applying
The R:R Trading System Framework is a TradingView Pine Script indicator that overlays on the price chart. It lets users select a backtest method such as Stochastic or 2x MA Cross. Multiple risk-reward levels can then be configured with adjustable stop loss per
This strategy models market regimes using principal variance concentration between price and volume. It builds a 2x2 correlation matrix from price and volume rate-of-change, then calculates its eigenvalues. It enters long positions when the principal eigenvalu
SMFR-Tracker visualizes historical ARK Invest buy and sell transactions directly on the price chart for the SMFR ticker. It draws chart labels at specific historical trade timestamps, indicating whether ARK funds bought or sold shares on those days. Users can
Calculates a historical dip level based on the lowest low over a specified lookback period. It enters a long strategy position when the current bar close falls below the previous dip level. Positions are managed with take profit and stop loss exits placed at f
The Savitzky-Golay Filter applies polynomial convolution to smooth price series while preserving features like local extrema better than simple moving averages. It calculates filter coefficients based on the selected window size and polynomial order, applying
Stochastic Divergences calculates standard Stochastic Oscillator lines (%K and %D) and scans for regular and hidden divergences against price action. It evaluates pivot highs and lows over a user-defined pivot lookback period to compare oscillator peaks and tr
This overlay indicator builds a sentiment profile across the highest-to-lowest price range of a lookback window. It splits that range into rows and draws boxes whose length reflects bullish or bearish candle bodies, optionally using lower-timeframe intrabar op
This strategy plots adaptive upper and lower triggers on the price chart. It builds the channel from the highest high and lowest low over channelLength bars, then adjusts the width by the average logarithmic price movement captured across the lookback period u
This overlay indicator marks historical ARK Invest purchases and sales of SNAP on the price chart. It places green buy labels below bars and red sell labels above bars on fixed calendar dates, with text that counts how many selected ETFs traded the stock that
Buy The Dips - MA200 Optimised is a mean-reversion strategy that measures short-term percentage price changes alongside a simple moving average trend filter. It opens long positions when price experiences a steep drop exceeding three percent while remaining ab
This indicator calculates the Schaff Trend Cycle and plots it in a separate pane. It subtracts a slow EMA from a fast EMA, applies a stochastic over the cycle length, smooths that result, and applies a second stochastic. A second-stage smoother then feeds opti
Supersaiyan Strategy is an overlay indicator that plots three exponential moving averages alongside the volume-weighted average price (VWAP). It computes a standard Moving Average Convergence Divergence (MACD) oscillator and prepares trend metrics based on EMA
This indicator logs realtime bar updates across five dimensions: volume, price, time, activity, and age to plot interactive profiles directly on the price chart. It aggregates ticks, volume, and polarity into customizable level buckets, displaying double-sided
The Pine Script strategy calculates fast and slow EMAs along with RSI and ATR on the price chart. It enters long positions when the configuration string matches trend confirmation, fast EMA crosses above slow EMA, and RSI exceeds a threshold. It exits on fast-
SNOW Tracker visualizes historical buy and sell transactions executed by ARK Invest ETFs for Snowflake Inc. (SNOW). It plots green and red labels directly on the main price chart at specific historical transaction timestamps. Each label indicates whether share
This trend-following strategy identifies buying opportunities during bullish pullbacks on the price chart. It defines a bull market when the 50-period simple moving average trades above the 200-period moving average. Long entries trigger when the RSI drops bel
This indicator calculates the second finite difference of a chosen source series, treating that value as price acceleration. It subtracts twice the previous bar from the current bar and adds the value two bars earlier, then plots the result as a yellow line in
This strategy calculates trend direction using a multi-timeframe Supertrend formula based on ATR and median price, paired with RSI and Bollinger Band indicators. It enters positions when the Supertrend flips direction, plotting uptrend and downtrend bands with
This indicator plots a histogram of historical risk values in a separate pane. It calculates risk with standard deviation, ATR, downside deviation, drawdown, entropy-based risk, or VIX. Drawdown can use the period high or a rolling high. Users set lookback, op
This strategy plots a trend EMA and a working pullback limit on the price chart. It enters long only when flat, the EMA is rising, and close is above the EMA, placing a limit buy a set fraction of ATR below the EMA. If that trend condition fails while still fl
This indicator plots historical ARK Invest buy and sell events for Synopsys on the price chart as dated labels. Green labels mark buys below the bar and red labels mark sells above the bar, with an X count for how many ARK ETFs traded the stock that day. The E
This strategy plots on the price chart and opens one buy-and-hold position between a user-chosen start and end time. By default it enters long with 100 percent of equity when the bar time is inside that window; a boolean input switches the same entry to short.
This indicator calculates the population skewness of a chosen source over a rolling lookback, using the Fisher-Pearson coefficient. It keeps rolling sums of the mean, variance, and third central moment, then divides the third moment by the cubed standard devia
This indicator plots multiple moving averages directly on the price chart and identifies crossover entry and exit signals. It evaluates crossovers between a fast moving average and a slower baseline, requiring price bar direction confirmation to mark long and
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.