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.
Calculates and plots two Supertrend lines with different sensitivity settings alongside a 200-period EMA baseline on the price chart. The fast Supertrend uses a smaller ATR multiplier to capture short-term price momentum, while the slow Supertrend uses a large
Hotzones identifies and plots bullish and bearish order block liquidity zones directly on the price chart. It draws colored boxes for active liquidity ranges along with average price levels. The indicator dynamically removes mitigated zones when price crosses
Modified Asia Sweep is a futures strategy sample built around the Asian and London sessions, with session hours and time zone as inputs. It draws session ranges, Asian swing points, market structure and break of structure lines. Position size can be set by a f
A long strategy built on a 50-period Hull moving average crossing a 200-period EMA, with ADX strength, a short Hull slope and an optional RSI filter used to scale entry size in steps. It uses an ATR stop that tightens after a drawdown, staged profit-lock parti
A long-only strategy for stocks that buys when the close is above a 5-period EMA, the short EMA is above a 20-period EMA, and volume exceeds a multiple of its 20-bar average. Position size is a set percent of initial capital. After entry it places a fixed perc
FRK OHLC Statistics is an overlay indicator that draws key Open, High, Low, and Wick level lines on the price chart from up to five customizable timeframes. It allows traders to monitor historical reference points across intraday, daily, weekly, and monthly pe
A statistics table on the price chart that counts how many recent candles closed up, down or flat and shows the share of each as a directional bias. In Standard mode it uses a fixed lookback; in Daily, Weekly or Monthly mode it counts candles since the session
An overlay with Turkish labels that detects XABCD harmonic patterns, including Gartley, Bat, Butterfly, Crab, Deep Crab, Shark and Cypher. In automatic mode it scans pivots over a lookback window and scores each match against a minimum percentage; in manual mo
Plots ATR-based trailing exit levels on the price chart. It tracks the highest and lowest close over a lookback window, 200 bars by default, and sets a long exit level at three ATR below the high and a short exit level at three ATR above the low. Labels and al
ATR Retracement EMA Signals identifies momentum setups by detecting large candle expansions relative to Average True Range, followed by brief price retracements and moving average crossovers. When price experiences a strong bar move, retracing within a configu
This indicator simulates a dollar-cost averaging investment strategy over time on any chart timeframe. It calculates recurring monthly asset purchases based on a fixed investment amount, a starting timestamp, and a selected target day of the month. In a separa
This strategy combines Exponential Moving Averages, the Relative Strength Index, and Average True Range with optional multi-timeframe confirmation to generate trade signals. Long trades trigger on fast EMA bullish crossovers when RSI is low, while short trades
A strategy for 5-minute charts that builds a morning range of either five or fifteen minutes after the market open and takes the first breakout entry, with an entry buffer in ticks. An optional trend filter buys only above and sells only below the 50 EMA, and
This indicator, drawn in a separate pane, combines MACD, RSI and volume analysis with divergence detection. It compares price extremes over the last twenty bars with MACD and RSI to flag bullish and bearish divergences, colours the background by trend and mark
A price chart overlay that plots a 9-period EMA and a Bollinger upper band and prints buy markers. A standard buy triangle appears on a confirmed green bar that closes above the EMA and above the close two bars back, provided the previous bar was not red. An e
Opening range breakout strategy on the price chart. It measures the high and low of a configurable opening window, 09:30 to 09:45 by default, ignores ranges below a minimum point size, and trades breakouts of that range. Position size is based on a risk percen
This indicator combines a neural network signal grading engine with moving average and trading session filters directly on the price chart. It plots buy and sell signal labels based on momentum, volatility, and trend conditions evaluated across selectable cand
A session and levels overlay that draws boxes for the Sydney, Asia and London sessions in New York time with optional labels, plus a Fibonacci retracement of the session range. It also draws horizontal lines for the current and true day open, previous day, wee
Marks the opening range of the US stock session on the price chart. The range starts at 9:30 New York time and lasts a set number of minutes, 15 by default, with optional extension levels projected from it. A setting limits the display to the morning or to the
An indicator on the price chart that looks for candle reversal setups over a lookback of 12 candles and requires confirmation within a few further candles, optionally backed by volume above its 20 bar average. A trend moving average, selectable as SMA, EMA, WM
A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is
A chart-overlay indicator that plots a 9-period EMA and converts the absolute distance between the close and the EMA into a confidence value using a sigmoid curve with fixed fitted constants. A buy triangle appears when price is above the EMA and the value mee
This indicator calculates the average high-to-low range of a user-selected number of prior candles on a chosen timeframe. It plots bullish and bearish target lines from the current candle range on the price chart and can extend those lines by a set number of b
An overlay that marks the opening price at five New York clock times each day: 12 AM, 8:30 AM, 9:30 AM, 2 PM and 6 PM. For the current day only, each time gets a horizontal line at that bar's open and a text label to the right, and the previous day's lines are
A strategy written for a 15-minute TRUMP perpetual swap chart. When a candle's high-to-low range exceeds a percentage threshold, it places a limit order against the candle's direction, short after a green candle and long after a red one, at a price between the
Detects bullish and bearish order blocks using pivot highs and lows and draws them as boxes on the price chart. Settings define the minimum and maximum block size, the pivot left and right bar counts, the maximum number of historic blocks kept, and a lookback
A multi-tool overlay indicator on the price chart. It offers reversal buy and sell markers, oversold and overbought shading, a trend ribbon, optional reversal bands and three moving average support and resistance lines. It can also show higher-timeframe liquid
This indicator generates reversal signals based on simple candlestick comparisons over a user-defined lookback period. A bullish signal triggers when both the current and historical candles close higher while the current low is lower than the past low, and vic
An overlay indicator that marks price breaks confirmed by a volume surge. A break is when price moves past the recent high or low by a set percentage, direction selectable, on volume above its average. Optional confirmations are a retest, RSI and MACD momentum
A long-biased strategy that compares two selectable trend lines (TEMA, LSMA, EMA or SMA) and enters when the fast line crosses above the slow one while an ATR trailing level sits below price. It exits when price drops under the trailing high, when the lines cr
This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke
This indicator finds pivot highs and lows with an adjustable detection length and margin, then draws buyside and sellside liquidity zones and level lines on the price chart. Zones can be coloured separately and given their own margin. Optional liquidity voids
A separate-pane indicator built for crypto swing and day trading with an external bot. It plots a Stochastic RSI, a MACD with very long periods for the medium-term trend, and a Money Flow Index, and also uses two Bollinger Band sets for oversold entries and ex
TAIndicators is a Pine Script library providing helper functions for technical analysis calculations. It features flexible moving average functions supporting SMA, EMA, SMMA, WMA, and VWMA options, along with secondary smoothing methods and Bollinger Band calc
An early skeleton of a dashboard intended to support the LuxAlgo smart money concepts indicator. It declares a multi-timeframe trend row for 1, 5, 15 and 60 minutes and a table for long and short setup checks covering liquidity grab, CHoCH, order block and fai
Liquidity Zones highlights bars where volume is above a multiple of its moving average while short-term price volatility is below half of the average volatility. Matching bars are shaded as zones, with optional labels showing the zone volume in units or curren
Consolidation Zones draws boxes over periods when price stays inside a band around a simple moving average. A zone forms when every close in the last minimum-zone-length bars sits within one ATR of the average. Overlapping zones are extended and merged, and zo
Three Bar Reversal Pattern marks bullish and bearish three-candle reversals. A bullish pattern is two down candles followed by an up candle closing above the first candle's open; the bearish pattern is the mirror image. Optional filters require volume above it
Market Structure plots swing highs and swing lows, found as the highest or lowest bar within a configurable window, and marks change of character events when the close breaks the latest swing level in the opposite direction. Pivot colors, visibility and the nu
Trend Detector can plot up to three moving averages, each with its own type (SMA, EMA, RMA, WMA or VWMA), length, source and timeframe, defaulting to 15, 60 and 240 minutes. A table lists whether each selected average is trending up or down. An option waits fo
This Pine Script v6 indicator calculates and plots three simple moving averages directly on the main price chart. It displays a 20-period short-term SMA, a 50-period medium-term SMA, and a 200-period long-term SMA using distinct line colors. The script offers
An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high
Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon
An indicator on the price chart that draws a 20 period and a 50 period EMA together with Bollinger Bands, 20 period and 2 standard deviations by default, and fills the band area. It marks a buy triangle when the fast EMA crosses above the slow EMA or price clo
The Adaptive SuperTrend Strategy is a custom trading strategy that calculates an adaptive SuperTrend value using volatility-adjusted factors. It determines high or low volatility by comparing ATR to its 100-period SMA and adjusts the SuperTrend factor accordin
This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban
Entry Zone Marker is a simple position calculator that draws on the price chart. The user types an initial entry, position volume, averaging volume and averaging price for a long and a short position. The script computes the volume-weighted average entry for e
Crown Club Strategy is an overlay indicator that plots two simple moving averages, 50 and 200 by default, together with the previous week's and yesterday's high and low. For each period it adds Fibonacci levels and a golden zone, oriented by a long or short bi
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.