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 plots delta volume columns or a volume balance line in a separate pane. It calculates volume delta from buy and sell volumes and renders it as colored columns or a balance line. Users select calculation methods for balance such as on bar, averag
The Zero-Lag Triple EMA (ZLTEMA) indicator calculates a smoothed trend line using triple exponential smoothing with lag compensation for reduced delay. It plots the resulting line on the price chart in yellow. The period input adjusts smoothing sensitivity by
This strategy executes trades based on fast and slow exponential moving average crossovers constrained by a configurable intraday session window. Long positions open on bullish EMA crosses and short positions open on bearish EMA crosses when no existing positi
This indicator projects geometric cycles and Fibonacci-scaled waves anchored between two user-defined chart points. It calculates the slope, midpoint, and span between the selected points to generate an expanding sine wave modulated by powers of the golden rat
An overlay always-in flip indicator where a buy closes a short and a sell closes a long. It uses a zero-lag EMA trail with an ADX-adaptive ATR multiplier and a cap on how fast the trail can move per bar. Flips pass ADX, choppiness and RSI/DMI momentum gates, a
Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement, and colours are reserved for
This strategy identifies trend momentum shifts using a Twin Range Filter (TRF) oscillator and volatility regime gates. It calculates the ratio of fast and slow price ranges, smooths it through a double exponential moving average, and signals entries when the s
Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated and a tolerance margin allows small breaches. Algorithm modes range from looser to strict engulfing, with a threshold for big
An indicator on the price chart that finds price gaps between bars and draws a box over each one, green for up gaps and red for down gaps. A gap must exceed a minimum size set as a percentage of the recent average bar range. Each box extends to the right until
ESLT-tracker plots historical ARK Invest purchase and sale labels on the ESLT price chart. Green labels mark buys below bars and red labels mark sells above bars at fixed calendar timestamps. The ETF input switches between all recorded activity and the ARKQ or
Function: Event Statistics tracks and analyzes price behavior following specific market events. By default, it detects when price crosses above a ten-period simple moving average and records price changes, peak high, and minimum low values over a user-defined
This indicator modifies LazyBear's Squeeze Momentum indicator by scaling momentum values between 0 and 1. It identifies market compression when Bollinger Bands contract inside Keltner Channels, plotting colored dots at the 0.5 baseline to show whether a squeez
This strategy calculates the Relative Strength Index (RSI) to generate mean-reversion signals based on multi-tier overbought and oversold thresholds. When the RSI falls below the oversold levels without an active trade, it enters a long position; conversely, w
The Ehlers SSF Detrended Synthetic Price indicator calculates a detrended price series using dual Super Smooth Filters based on a dominant cycle period. It subtracts a half-cycle super smooth filter from a quarter-cycle super smooth filter to isolate cyclical
This simple documentation indicator calculates and plots the cumulative number of green candlestick bars across the chart. It identifies bars where the closing price is greater than or equal to the opening price, then increments a persistent variable on every
Ultrasmooth Filter (USF) calculates a noise-reduced trend curve using a two-pole infinite impulse response (IIR) filter structure with momentum enhancement. Designed to minimize lag while suppressing price fluctuations, it computes efficiently with constant O(
This indicator identifies the bearish On Neck candlestick pattern on the price chart. The pattern is a two-bar continuation setup occurring during a downtrend, where a long black (bearish) candle is followed by a small white (bullish) candle that opens below t
This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading
This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish
This strategy goes long when RSI is below the oversold level and short when RSI is above the overbought level, and it can require price to agree with a 200-period EMA. It opens only when flat and, on the entry bar, sets a fixed take profit and stop loss from t
This indicator plots Candle Range Theory setups on the price chart. It marks session-based CRT ranges for one-hour or four-hour models and labels buy and sell signals after a liquidity sweep. Entry logic either waits for a market structure shift plus a fair va
This intraday strategy is designed for short-term scalping on equity and index markets like SPY. It evaluates price movement using configurable exponential and Hull moving averages combined with an ATR-based Supertrend calculation. The script plots signal arro
The Detrended Rhythm Oscillator combines a Detrended Price Oscillator with ZigZag pivot logic to measure market cycle lengths and dominant swing rhythms. It plots detrended oscillations in a separate pane along with dynamic distance labels between swing highs
This Pine Script v5 library supplies utility functions and types for indicators on TradingView. The core feature is the valueColorSpectrum object, which maps oscillator values to colors using configurable level thresholds for custom visual themes. It supports
PF Probe 50 - Stop Limit Trail is a synthetic validation strategy designed to test simultaneous exit conditions. It opens long positions at 08:15 and short positions at 16:15 when flat. Position exits utilize a single bracket exit command incorporating an ATR-
This indicator calculates a Fibonacci-scaled sinusoidal wave cycle derived from two user-selected chart reference points. Plotted directly on the main price chart, it projects an extended trendline alongside moving averages adjusted by normal and inverse slope
A price-chart indicator that builds an adaptive core line by blending a Kaufman-style adaptive average with a zero-lag EMA, then surrounds it with ratcheting ATR trail rails. A buy label means the active side flips long and a sell label flips short, committed
Bearish-only overlay indicator with forty-four combination markers built on Keltner Channel logic, drawn on the price chart. Letter codes on markers show which members fired, such as PB, PBJ, RC, RS, pocket pivot and displacement. This version removes the per-
A Keltner channel breakout strategy. It goes long when the close crosses above the upper band and short when it crosses below the lower band, only if ADX is above a threshold and price is on the matching side of a 200 EMA. Each trade exits at the channel midli
Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. A lookback setting decides when a zone is invalidated and a tolerance margin allows small breaches. Algorithm modes range from loose
Experimental overlay that tracks the high, low and open of different periods, such as session, day and week, using varip variables and chart points, and draws dotted lines and labels at the periods' extremes. Colour, text size, line width and line style are ad
EVGN-tracker places dated labels on the EVGN price chart to mark ARK Invest buy and sell activity. Green labels sit below bars for buys and red labels sit above bars for sells. Each label shows Buy or Sell and an X count of how many ARK ETFs traded that day. A
This indicator computes a single flattened index from multi-dimensional array coordinates. The function walks matching index and limit arrays and applies a nested offset formula so higher dimensions wrap into one integer. Inputs set the x, y, and z coordinates
This indicator plots a zigzag-like moving average and a stepline on the price chart. It fetches previous bar prices from two input timeframes using the security function with gaps off and lookahead on. The zzoid function creates a smoothed curve via cumulative
This strategy enters a long position on Monday when the bar falls inside the 14:00 to 16:01 session window. It closes that long on Tuesday during the same window, or earlier if price hits a percentage stop loss or take profit measured from the average entry pr
This indicator plots John Ehlers Super Passband Filter in a separate pane. It builds a wide-band passband oscillator by differencing two z-transformed exponential moving averages that use a smoothing factor of five divided by the period. It also plots the root
This script checks whether the current bar closes higher than it opens, representing a bullish green candle. When a green candle occurs, the indicator assigns and plots the closing price in a separate pane; otherwise, it outputs a null value. Designed as a bas
This indicator calculates the statistical variance of a price series over a user-defined lookback window and plots it in a separate pane. Using a ring buffer alongside running sums and squared sums, it computes sample dispersion efficiently without recalculati
Open Interest requests the chart symbol's open-interest series, or an overridden symbol, and plots it in a separate pane. It builds a ticker ending in _OI and loads open, high, low, and close. On intraday futures charts the request uses the daily timeframe. Wh
Ruckard Voladder B002 is a price-chart strategy that opens long trades after three or more consecutive candles of falling volume, followed by a higher-volume candle, while price is lower across that span. The comments leave the long exit logic uncertain. By de
Vein Execution 15m is an execution and timing overlay designed to complement higher-timeframe context. It monitors lower-timeframe micro structure shifts, liquidity sweeps, rejection candles, engulfing patterns, and follow-through momentum. The script calculat
The Hidden Relative Strength indicator normalizes price changes of a symbol by dividing them by ATR volatility, then subtracts the normalized move of a benchmark symbol such as QQQ to derive raw relative strength. This value is accumulated over time, scaled by
Institutional CRT Engine v5.0 identifies institutional trading setups using Candle Range Theory (CRT) across user-selected session anchor bars in Asia, London, and New York. It plots session range boxes directly on the price chart and monitors for liquidity sw
Indicatorv5SMC / ICT / price actionSessions & time
J8 Refactor is a multi-indicator trading strategy that combines a custom Supertrend, multiple moving average filters, RSI levels, and MACD logic with Bollinger Bands. It executes entries based on multi-condition alignment and offers customizable exits, includi
This indicator tracks fundamental earnings data directly on the price chart. It retrieves consensus earnings-per-share estimates and reported diluted EPS using financial data requests. When a new earnings report is detected, it calculates the percentage surpri
The Volatility of Volatility (VOV) indicator measures the rate of variation in price volatility over time. It first computes a rolling standard deviation of the chosen price source over a specified initial lookback period. It then calculates a second standard
This validation strategy tests TradingView trailing stop execution semantics using trail points and trail offset parameters without accompanying fixed stop or take-profit orders. It opens a long position at 09:15 and a short position at 15:15 when flat, tracki
This indicator draws a four-dimensional hypercube (tesseract) geometric projection directly on the price chart. The user selects two anchor points via interactive chart inputs to define the time and price boundaries. The script calculates a center coordinate,
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.