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.
A price-chart indicator that builds a volume profile between confirmed swing pivots, a variant of a pivot-anchored profile by another author. It draws profile rows, the point of control, value area high and low with a shaded value area, and can extend the poin
A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has
A chart-overlay trailing stop that adapts to market conditions. It uses Kaufman's adaptive moving average to measure how efficiently price is moving, scales an ATR-based stop distance accordingly, and optionally adds a k-nearest-neighbours pattern layer that n
This mean-reversion strategy identifies deep price drops following a multi-bar low, such as a 52-week low. It calculates a target threshold located a specified percentage below the period low and triggers a buy entry when price plunges to this oversold level.
This indicator builds a table in a separate pane with one row per timeframe, from one minute to daily, and columns for fourteen readings: momentum, EMA, MACD histogram, average change, RSI, stochastic RSI, ATR, ADX, Williams %R, CCI, ultimate oscillator, relat
A Pine library that exports one core function returning many values for use by other scripts. It computes ATR, optional session and displacement filters, a signed volume pressure measure with z-score, a session-resetting cumulative volume proxy, and linear reg
This library exports a function that returns a dynamic trailing stop price based on Average True Range. For longs it subtracts an ATR multiple from the close and ratchets the level upward, resetting the stop when price closes below the previous level. For shor
Apex Trend & Liquidity Master (SMC) is an overlay indicator that combines trend-following filters with Smart Money Concepts market structure and liquidity tools. It calculates baseline trend clouds using moving averages such as HMA, EMA, SMA, or RMA alongside
This indicator combines liquidity sweep detection, Fibonacci retracement levels (0.382, 0.5, 0.618, 0.786) and two user-set ratio levels called CC levels on the price chart. A sweep is a wick beyond a recent swing by a buffer, optionally followed by reclaim ca
This strategy automatically adapts its moving average lengths and types based on the chart's timeframe, covering scalping, intraday, and swing styles. It generates entry signals when a fast moving average crosses a slow moving average, provided price is on the
RI LONG Levels is an overlay indicator for ES and NQ futures that sets out a manual long reversal plan. It anchors on the previous session close, then draws an entry level at a chosen multiple of a risk interval below the anchor, with a target and a stop level
The TXF Choppy Detector is an indicator that identifies choppy or sideways markets in Taiwan index futures using the Choppiness Index (CHOP). It plots Bollinger Bands on the price chart with customizable length and multiplier. The script detects washout signal
This overlay strategy requires sequential confluence before it enters. A hybrid detector blends selected oscillators, including RSI, CCI, MFI, Bollinger percent B and Keltner percent K, and treats extreme overbought or oversold readings as the market regime. V
This strategy uses a fast and a slow simple moving average with the bar's price range. In its default long-only mode it buys when price sits below the fast average, in the lower part of the bar range, while staying above the slow average, and exits when price
A chart-overlay indicator, a corrected variant of a crypto alert script, that combines RSI threshold crosses, a fast and slow EMA cross, Bollinger Band breaks, volume spikes, MACD and stochastic readings. Each alert group can be enabled separately, and a weigh
Draws two bands on the price chart, one from smoothed highs and lows over a fast length and one over a slow length, using Wilder-style moving averages. The fast length must be smaller than the slow one or the script stops with an error. Settings change the two
An overlay that tracks swing highs and lows and marks change of character, break of structure and liquidity events with lines and labels. Breaks can be filtered by a volume strength check that compares the breaking bar with the last few bars or with a tape ave
Detects a set of classic candlestick patterns and labels them on the price chart. Bullish patterns include hammer, inverted hammer, bullish engulfing, morning star, piercing, three white soldiers, bullish harami and dragonfly doji, with a matching bearish grou
An order-flow proxy indicator that estimates delta from volume and the close position within each bar, then builds a cumulative delta line, relative volume and a delta z-score. Bull and bear signals need relative volume, delta and close-in-range thresholds, an
This indicator marks swing highs and lows using an adjustable lookback and draws break of structure and change of character lines and labels on the price chart. A volume filter labels some changes of character as weak or strong. It also plots a VWAP coloured b
This indicator maps estimated dynamic liquidity levels across the chart by combining normalized volume and an ATR multiplier. It tracks highs and lows within a designated lookback window, projecting buy and sell liquidity bins and highlighting maximum liquidit
An indicator that measures the candle spread, optionally as a percentage, and compares it with its own moving average to classify volatility as compression, normal, moderate, high or extreme using adjustable multipliers. Output can be shown as columns, histogr
A chart overlay built around a SuperTrend calculation with a sensitivity setting, combined with short simple moving averages, parabolic SAR and RSI to produce buy and sell signals. An optional trend ribbon colours the chart, and optional take profit and stop l
Combines three moving averages, MACD, RSI, a volatility length and Bollinger Bands on the price chart. Bollinger signals mark a buy when price crosses back above the lower band. Settings set the three average lengths, MACD fast, slow and signal values, RSI len
This indicator calculates dynamic Anchored VWAP lines plotted directly on the main price chart based on detected swing highs and lows. It incorporates an Adaptive Price Tracking mechanism that adjusts VWAP reaction speed according to market volatility and ATR
A trend-following strategy that goes long when the fast EMA is above the slow EMA, RSI is above its threshold and the MACD histogram is positive, and goes short on the opposite conditions. An optional filter requires the close to sit beyond both EMAs. When ena
This indicator finds pivot highs and lows with adjustable left and right bars and draws support and resistance zones as boxes on the price chart. Repeated touches of a level raise a strength rating shown as dots. High-volume bars, measured against a 20-bar ave
RVol Panel plots relative volume in a separate pane for intraday charts. It compares each bar’s volume with the same bar position across a configurable number of recent sessions and also tracks cumulative session volume against that baseline. Bars are colored
An overlay indicator that shows a colour-coded table of market conditions across six timeframes, 1, 5, 15, 30, 60 and 240 minutes by default, including opening range breakout status and distance from the daily high and low. It prints arrow signals when enough
This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and
This indicator looks for a five-candle shape on the price chart. In the high model the middle candle holds the highest high, with rising highs into it and falling lows after it; the low model is the mirror image. When a shape is found it draws grey connecting
ATR Volatility Trailing Stop plots an EMA trend moving average alongside dynamic ATR-based trailing stops on the price chart. The indicator determines trend direction from price relative to the EMA. Long trailing stop trails upward using ATR when uptrend, shor
A price chart overlay that plots rolling VWAP lines over 7, 30, 90 and 365 days, calculated from a selectable reference timeframe with optional smoothing and price labels. It also draws up to several anchored VWAPs that restart each day, week, month, quarter o
Normalises USD/TWD, TSMC, the 0050 ETF, the dollar index and the SOXX semiconductor ETF against their own moving averages and plots them together. It then measures rolling correlations of USD/TWD with the dollar index, SOXX and TSMC, and labels whichever has t
A generated indicator on the price chart that draws a fixed set of hard-coded lines and one label for TRXUSDT on the 30 minute chart. Aqua dashed lines mark pivot highs, yellow dashed lines mark pivot lows, and a lime label marks a change of character at a sta
A price-chart trend indicator that passes the chosen source through a multi-order Kalman filter, then places ATR-multiple upper and lower bands around the filtered price and smooths them exponentially. The trend turns bullish when price crosses above the upper
A Pine v5 strategy, with Arabic input labels, that counts bullish signals from several groups: Turtle-style breakouts, RSI and Bollinger Band mean reversion, EMA, MACD and ADX momentum, plus order blocks, fair value gaps and supply and demand zones. It enters
A price-chart overlay that marks regular pivot highs and lows using a configurable pivot length, plus missed pivots that occurred between them, joined by zigzag lines. It measures each move between consecutive pivots, showing price change in points and percent
A price-chart overlay that finds bullish and bearish order blocks from volume pivots. A pivot length sets how many bars confirm a volume swing, and the candle range there becomes a zone drawn as a box with a dashed or solid average line, extended to the right.
A price-chart indicator that marks the opening range of each session, either from a chosen opening time period or a custom session and timezone. It plots the range high and low, shades the range, and prints breakout signals when price closes beyond it. Targets
A long-only strategy that ports a Freqtrade bot to TradingView. It builds Heikin-Ashi values, a ladder of EMAs standing in for several timeframes, a fan magnitude ratio and an Ichimoku-style cloud from Donchian midpoints. Entries need price above the cloud, a
A strategy that trades the crossover of two moving averages, with a default 20-bar simple average and 50-bar exponential average. Each can be changed among eight types, including SMA, EMA, TEMA, HMA, KAMA, ALMA, FRAMA and VIDYA. Entries use percentage take pro
A Pine v5 overlay that combines several chart aids for stock trading. It plots selectable moving averages on all timeframes, optional daily moving averages pulled from the daily series, 50, 100 and 200 SMAs, and pivots. Further switches add average daily range
Finds candles with unusually high volume and draws a box from the candle high to low on the price chart. Volume counts as unusual when it exceeds a moving average of volume by a multiplier, default 2. Large-body candles are tagged as breakouts, and small-body
Bitcoin Cycles Indicator tracks cycle lows and highs on the price chart for daily, weekly, monthly and custom timeframes. It labels potential and final cycle points, flags failed cycles, and draws projection boxes based on an average cycle length. Minimum and
This indicator identifies dynamic support and resistance levels on the price chart using pivot high and low calculations. Based on a configurable swing length setting, it detects key market turnarounds and plots triangular markers above swing highs and below s
This file is mostly a text reference for Pine Script variables such as bar_index and the barstate family, kept with a parsing project. The runnable code is a minimal indicator that plots the bar index in a separate pane and plots the close only after bar 5000,
An indicator that builds a rolling volume profile over a configurable window of recent candles and plots the Value Area High, Value Area Low and Point of Control. Settings include the lookback length, the percentage of volume treated as the value area, a smoot
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.