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 strategy detects momentum shifts using the WaveTrend oscillator where wt1 crosses above wt2 for long entries and below for shorts. Fractal patterns confirm reversals with upFractal and downFractal signals based on high and low price swings over multiple b
This indicator calculates and plots the intraday percentage change of the current or a user-selected asset relative to its daily opening price in a separate pane. It color-codes positive and negative returns dynamically and draws vertical day separator dotted
The DEMA indicator computes the double exponential moving average of the input price source using a double exponential smoothing formula with a compensation factor for improved initial values. It plots the resulting DEMA line on the price chart for trend analy
XO_macd is an overlay strategy combining exponential moving average crossovers with MACD calculations. It tracks fast, slow, and consolidated bias EMAs to identify trend changes, coloring price bars and plotting Bull or Bear triangle shapes when conditions tri
This strategy combines RSI extreme condition filters with engulfing candlestick patterns to identify reversal entries. It opens positions on confirmed bars when an overbought or oversold RSI aligns with a bullish or bearish engulfing pattern. Stop losses are c
This indicator plots a multi-timeframe ZigZag pattern alongside Fibonacci retracement levels directly on the price chart. It identifies swing highs and swing lows across a user-defined timeframe and period, storing recent swing coordinates in an array. From th
This strategy identifies market direction by combining a TrendSignal breakout algorithm with a Zig Zag swing overlay. It calculates dynamic price bands over a period to determine trend flips, plotting triangle shapes directly on the price chart for buy and sel
A strategy that combines an AlphaTrend style volatility core with a MACD condition, higher-timeframe background, three consolidation layers with volume profile buckets, candlestick and macro pattern labels, and a forecast with Bayesian lookback. Cross-asset sy
The Previous Day Levels indicator plots yesterday's high and low as step lines on the price chart for any symbol and timeframe. It shades the daily trading range and draws triangular markers on breakout events when price crosses the high or low. Input settings
This strategy executes long-only dip setups on the price chart by linking to external Smart Money Concepts core signals. It enters positions based on selectable execution stages when quality score and regime criteria are met. Risk management uses an invalidati
The Dual Thrust Breakout strategy calculates upper and lower price threshold channels based on an open-anchored range formula over a configurable lookback period. It determines the maximum value between highest high minus lowest close and highest close minus l
P_err_import is a minimal Pine Script v6 indicator fixture designed to test script parsing and library imports. It demonstrates importing the official TradingView TA library version 8 alias and plots the close price series in a separate indicator pane. The scr
A merged strategy that combines two entry engines on one chart. The anchor trail engine uses a dynamic equilibrium level called P0, built from a rolling volume and delta profile, and scores acceptance and rejection against structural levels such as POC and val
DEPV2 DEBUG ALL evaluates multi-asset market dynamics across up to 20 cryptocurrency symbols using four distinct analytical dimensions: trend, momentum, volatility, and volume. It computes and displays diagnostic signal outputs in a separate pane, allowing tra
An overlay indicator meant for option charts. It finds pivot levels on the current call or put symbol, flags a breakout when two consecutive bars open and close beyond the level, and requests the matching opposite contract by swapping the call or put letter in
The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close
A separate-pane volume indicator that combines fast and slow EMAs of price, a volume average and a lower-timeframe volume read, normalized with an adjustable steepness value. A signal type setting chooses between a trailing style and other readings, and the ou
Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c
This indicator plots session-filtered bullish and bearish engulfing markers on the price chart. A long mark appears when the current candle engulfs the prior candle inside the New York window and volume exceeds 1.5 times its 20-bar average. A short mark uses a
A strategy version of a W and M pattern detector that looks for five-point double-bottom and double-top shapes in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Each source has strict matching, maximum width and offset
V12 Swing Sniper Pro is a swing trading indicator for Bursa Malaysia stocks. It layers macro and sector filters atop Minervini-style trend quality gates and RSI checks to validate bullish setups. The script fires buy signals when coiling, pullback proximity, b
SMA Rate of Change measures the rate of change of a simple moving average, using a fast (20) and an optional slow (200) average, and plots both in a separate pane. Values can be shown as a percent or scaled by price. Optional extras include a histogram, fills,
This strategy plots on the price chart and enters long when a 10-period exponential moving average crosses above a 30-period one, and short on the opposite cross. Stop distance is the 10-period simple moving average of the high-low range. Each entry places a s
A strategy version of a trendline breakout tool. It draws pivot-based trendlines on the price chart and trades breakouts, using an ATR-based stop loss by default and a take profit set as a multiple of the stop distance, 1.5 by default. Settings choose the pivo
This indicator requests the native footprint for each bar and prints the net delta, buy volume minus sell volume, as a small label below the candle on the price chart. Colours show positive, negative or zero delta. Settings control ticks per footprint row, val
Scalper Pro 3 Min Gold is a price-chart indicator that marks breakout setups around recent pivot highs and lows. It signals a long when a bullish candle closes above the last pivot high while holding a higher low, and a short when a bearish candle closes below
This indicator estimates prospective liquidation pockets and projects them as a color-coded heatmap overlay on the price chart. It calculates potential leverage clusters using swing high and low pivot points combined with volume, price range, and ATR bands. Us
This trend-following strategy generates buy and sell signals when the Parabolic SAR flips direction relative to price. Entries can be filtered using an Exponential Moving Average to trade in the direction of the dominant trend, as well as an Average Directiona
UnizonesAlgo identifies and plots higher-timeframe supply and demand zones on the main price chart using pivot highs and lows. It generates trade signals when price reaches a zone, demonstrates rejection, and receives confirmation from volume exceeding a movin
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from a
GhostDog Matrix V12 is an overlay signal indicator designed for intraday session trading. It calculates inner and outer standard deviation envelope bands around a simple moving average and evaluates Heikin-Ashi candle wicks to identify signal setups. The scrip
This indicator overlays a volume or market profile histogram on the price chart and also draws a MACD-style overlay. It builds rows from lower-timeframe bars over the visible range, an anchored start, or all history, then marks the point of control and optiona
An indicator on the price chart that builds an ATR trailing stop with a key value multiplier and a 10 period ATR. When price crosses the trailing stop, it prints a Buy or Sell label and colours bars green or red by side. An option calculates the signals from H
An experimental overlay indicator that simulates a daily DCA account and a long account within a date window, using a five-period Hull moving average coloured green when rising and red when falling. The long account buys when the average turns up or price is a
Plots cumulative volume delta as candles in a separate pane, resetting at the chosen anchor period, one day by default. Up and down volume is approximated from lower-timeframe data, selected automatically or set by the user; higher lower-timeframe choices give
A small indicator that subtracts the close of a second symbol from the close of the chart symbol and plots the result as a line in a separate pane. It is meant for comparing a perpetual contract with its spot market, and the comparison symbol defaults to a Bit
This indicator detects key candlestick patterns by importing functions from the Zen Library. It identifies bullish engulfing candles formed at 10-period lows and bearish engulfing candles at 10-period highs. Additionally, it highlights hammer, shooting star, a
This Pine Script v4 strategy generates crossover signals using two simple moving averages on the price chart. The fast SMA in red crosses above the slow SMA in blue for long entries and below for short entries. Signals activate only during a defined trading se
A Pine v4 oscillator in a separate pane. It adds a 14-bar and an 11-bar rate of change of the close, then smooths the sum with a Hull moving average, whose length defaults to 10. The resulting curve is plotted against a zero line. The three lengths are adjusta
The MTB_3 indicator computes a base line from a simple moving average of close prices over a user-defined period. It then plots six horizontal lines on the price chart representing bands at one, two, and three standard deviations above and below this base. The
A coding aid from PineCoders that demonstrates functions for building bull and bear color gradients, shown in a separate pane. It offers nine examples, such as advance and decline gradients on two moving averages or the MACD histogram, relative gradients on RS
The KSMBTC EMA Cross Strategy plots an exponential moving average of the closing price on the price chart. It signals long positions when the open price crosses above the EMA with a green candle and short positions with a red candle. The strategy enters long w
The Butterworth Filter indicator applies digital signal processing techniques to smooth price data directly on the main price chart. It calculates either a two-pole or three-pole filter based on a customizable length parameter and price source. When optional c
This indicator scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The
The EMA Moving Away Strategy calculates an Exponential Moving Average (EMA) to identify mean-reversion trade opportunities when price stretches significantly away from the line. A long entry triggers when the close drops below the EMA by a specified percentage
This indicator plots historical buy and sell transactions made by ARK Invest for Align Technology (ALGN) directly on the price chart. It uses labels positioned above or below specific bar timestamps to show institutional trade activity, including transaction d
This indicator calculates the arithmetic-geometric mean of two numerical values or an array of values using an iterative convergence algorithm. It provides custom functions to compute the mutual limit of arithmetic and geometric sequences given a specified tol
This strategy overlays Fibonacci standard deviation bands based on volume-weighted moving averages (VWMA) alongside 10-period open moving averages and pivot high/low levels directly on the price chart. It defines percentage-based stop-loss and take-profit targ
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.