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.
Inside Bar Breakout identifies standard and double inside bar candlestick patterns to trade breakout momentum. It sets trigger levels using reference bar extremes plus an adjustable percentage buffer. Once a pattern forms, the strategy waits up to five bars fo
A Pine v5 script that looks for a price thrust followed by a pullback entry on the price chart. A thrust is a rate of change beyond a percent threshold. A pullback is price easing back toward a short EMA or by a small tolerance after the thrust bar, and an RSI
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in one day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from an o
The ES Professional Fade strategy plots entry and exit signals on the price chart for E-mini S&P futures. It fades price action after the opening range closes during regular trading hours. The strategy declares a fixed position size of one contract with $2.01
This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements. It generates buy and sell signals based on volatil
An indicator on the price chart that filters price with a range-based line. The smoothed average absolute price change over a sampling period, 100 by default, is multiplied by a range multiplier to give a band size. The filter only moves when price leaves the
This overlay indicator simulates a date-bounded Bitcoin dollar-cost average and separate long and short value-averaging books. Inside the start and end dates it adds a fixed USDT amount each bar, converts it at the close into BTC, and updates average price and
Plots Bollinger BandWidth, the distance between the upper and lower Bollinger Bands relative to the middle band, in a separate pane. Two extra lines track the highest value over a chosen expansion length and the lowest over a contraction length, both 125 bars
An indicator that detects classic candlestick patterns and marks them with labels on the price chart. Patterns include engulfing, hammer, shooting star, doji variants, morning and evening stars, harami cross, dark cloud cover and piercing. Each pattern can be
This indicator calculates common technical analysis variables including RSI, Stochastic Oscillator, EMA moving average, ATR volatility, and MACD with signal and histogram. It plots the MACD line, signal line, and histogram in a separate pane. The script serves
This indicator generates normalized probability factors for bull, bear and stagnant market states by combining CBOE Put-Call Ratio data with Money Flow Index. It applies an odd generator to distribute the probabilities across the three states and plots the res
A Pine v4 indicator in a separate pane that starts from on-balance volume, divides it by price, and compares the result with its own moving average over a short period of 21 and a long period of 100 bars. The two percentage differences are smoothed with an exp
Max Index is an oscillator that measures range expansion and contraction over rolling periods. It calculates a rolling high-low range over a user-defined lookback window, applies double exponential smoothing to that range, computes the ratio between the two sm
A moving average drawn on the price chart that uses a beta-shaped weighting function, letting the user trade lag against smoothness. Two parameters, one labeled minus lag and one plus lag, reshape the weights across the window, while the length and source are
A Pine v4 strategy that plots a 26-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
Asymmetrical RSI is an indicator that computes a custom relative strength index from the rate of change of a user-selected source. It plots the resulting ARSI line in a separate pane with color coding that turns green above the overbought level and red below t
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
Directional Movement Index Winner [Alorse] is a momentum and trend strategy that overlays a moving average on the price chart. It calculates the Directional Movement Index (DI+, DI-, and ADX) alongside an optional Exponential or Simple Moving Average filter. L
AIR-tracker is an overlay indicator that plots historical buy and sell transactions executed by ARK Invest for the corresponding stock on the price chart. It draws green labels below bars for buy events and red labels above bars for sell events based on hardco
This indicator fits a linear regression through stored pivot highs and lows and draws the resulting channel on the price chart. A function returns predicted values, maximum and minimum deviations, and the average absolute deviation. Confirmed two-bar pivots up
This strategy calculates volume-weighted moving averages and standard deviation Fibonacci channels using price data from multiple timeframes. It overlays these volatility bands directly on the main price chart to identify potential trend levels. Automated trad
This indicator detects bullish and bearish fair value gaps on the price chart and draws a translucent box for each gap. A bullish gap needs the high two bars back below the current low and a bullish middle candle; a bearish gap uses the opposite gap and a bear
This indicator calculates two Log-Normal Moving Averages (LAMA) based on John Ehlers' adaptive process and generates trend-following signals on the price chart. Entry signals trigger when the fast LAMA crosses the slow LAMA, optionally filtered by ATR volatili
8D Run is a Pine Script momentum strategy inspired by Linda Bradford Raschke. It tracks consecutive price closes relative to a 5-period Simple Moving Average (SMA). When price remains above the SMA for 8 or more bars and then dips below it, the strategy enters
This indicator calculates a bandpass series by cascading a highpass infinite impulse response filter with a lowpass filter. Lower and higher cutoff periods set the pass band, and the source input selects the series being filtered. It plots the source minus the
This indicator draws a channel between the most recent confirmed pivot highs and pivot lows on the price chart. It stores the last two pivot high prices and the last two pivot low prices, then, on the last confirmed historical bar, extends a line through each
This indicator plots an exponential moving average on the price chart. It calculates the EMA from a user-selected source, defaulting to the close, over a length that defaults to 44. An offset setting shifts the plotted line forward or backward by a chosen numb
This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th
The Donchian Channels indicator plots the middle basis line as the average of the high and low over the user-defined period. It also draws the upper band as the highest high and the lower band as the lowest low across the same period on the price chart. The ma
This overlay indicator draws 80/20 price levels and optional 40-point zone bands on the price chart. It marks repairs, cross sections, and forks with optional letter labels, and can highlight confluence when those marks sit near a level. Separate options shade
This strategy plots Bollinger Bands on the price chart using a simple moving average and a multiple of standard deviation. It places a long stop entry when close crosses above the lower band and a short stop entry when close crosses below the upper band. Pendi
This indicator draws colored boxes on the price chart to highlight gaps between bars. It detects bullish gaps when the current low exceeds the prior bar's high and bearish gaps when the current high falls below the prior bar's low. Strong gaps receive extra em
This is a template script for a TradingView Pine Script indicator. It provides empty sections for inputs, functions, calculations, plots, and alerts, plus helper functions for moving average types. Users must add their own code to implement logic. No calculati
This trend-following strategy plots Donchian channels and execution signals directly on the price chart. It calculates Average True Range volatility to determine position sizing based on a fixed risk percentage of account equity. Long and short entries trigger
This strategy enters on divergences between Squeeze Momentum section changes and price, confirming the pattern across two pairs at once. A smaller squeeze with higher price opens a short; a higher squeeze with lower price opens a long. Curie closing moving ave
Calculates directional setup scores by evaluating market structure, Fibonacci retracement location, and momentum response metrics. It analyzes confirmed price pivots, movement efficiency, ATR-adjusted Fibonacci zones, and oscillator divergences across user-sel
This indicator plots a volume-weighted moving average as a central trend baseline and surrounds it with ATR-based volatility bands. It colors the trend and optional price bars according to whether price is on the bullish or bearish side of those bands. Users c
The indicator calculates three distinct Supertrend lines on the main price chart using separate customizable ATR periods and multipliers. Users can switch between standard ATR and SMA-based true range calculations. It can highlight background trend states, dis
PaperHands is an indicator that plots entry, re-entry, and exit signals for LONG and SHORT positions in a separate pane. It calculates signals using multiple confluence conditions such as real candle color, Heikin-Ashi candle color and flat bottoms or tops, He
Calculates the Volatility Risk Premium (VRP) by comparing implied volatility against realized volatility calculated using Close-to-Close, Parkinson, or Garman-Klass methods. It plots VRP values as a histogram or line in a separate pane with optional Bollinger
MA ROC Strategy calculates five configurable moving averages (SMA, EMA, or WMA) and plots ATR-based Keltner Channels directly on the price chart. It combines moving average crossovers and Rate of Change (ROC) calculations to generate long and short trading sig
Capital41 Williams Flow Simple calculates current and higher-timeframe Williams %R values alongside a volume filter to identify trend regimes and momentum entries. It defines bullish, bearish, or chop market regimes using the higher-timeframe Williams %R. Entr
This strategy detects key support and resistance zones based on candle wick rejections and liquidity sweeps. It filters trade setups using an exponential moving average and optional higher-timeframe trend confluence, while also permitting high-confidence count
This overlay diagnostic builds three total-volume profiles from a fixed 15-minute source over a user-defined swing range. Fine, base, and coarse grids use row sizes near the base tick setting and assign each bar's volume by high-low tick overlap. Local density
This indicator computes and plots a harmonic moving average alongside optional central tendency measures directly on the price chart. It calculates the harmonic mean, geometric mean, simple arithmetic mean, median, and midrange over a user-defined lookback win
This strategy plots on the price chart and looks for a sequence of RSI overbought or oversold crosses before it can enter. It calculates RSI on a selectable timeframe and compares a fast EMA with a slow EMA, optionally requiring the same moving-average conditi
EMAs + BB Squeeze + Trend Long Strategy is an overlay strategy combining multi-timeframe Exponential Moving Averages with Bollinger Bands squeeze dynamics. It evaluates short, medium, and long EMAs defaulting to daily resolution alongside Bollinger Bands to id
This indicator calculates a composite volume score using relative volume ratios, short-term volume trends, moving averages, and spike thresholds. It plots buy and sell signals directly on the price chart alongside Average True Range based take-profit and stop-
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.