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.
An intraday strategy for MNQ futures built around volume delta and cumulative volume delta. Delta comes from either simple bar polarity or lower-timeframe volume. It adds delta z-scores, relative volume, close location, EMA and VWAP alignment filters, plus div
This indicator watches up to twenty user-chosen symbols, defaulting to Binance crypto perpetuals, and combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require several classes to agree, require a chosen seque
A separate-pane WaveTrend oscillator built from a channel length and an average length, with overbought and oversold lines, a difference area and circle markers where the two lines cross. It counts bullish and bearish crosses and sends a JSON alert at bar clos
Calculates a volume profile across a user-selected historical time range and projects it forward from a designated mirror timestamp directly onto the price chart. The script collects price and volume data between start and end timestamps, splits the range into
A separate-pane oscillator derived from a selectable volume-adjusted moving average, with adaptive bands set by a band length, a smoothing value and separate positive and negative multipliers. A signal type setting picks the reading. Optional oversold and over
An earlier version of a combined detection indicator that unifies pocket pivot, displacement, VWMA with ATR Supertrend, relative volume, fair value gap and TNT zone engines into numbered signals drawn on the price chart. This release fixes the charge ladder so
This price-chart strategy runs a confirmed-bar state machine that watches MACD line crosses filtered by a 200-period EMA. A lookback audit scores recent candle direction and RSI alignment against the MACD lines, and it enters long or short only when that densi
A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a short EMA and the 200 average, and three line strike candle markers for bullish and bearish cases. It also shades a time-zone trading session and holds i
This strategy calculates 12-period and 26-period Exponential Moving Averages (EMA) to identify trend reversals. A custom user-defined function converts the EMA relationship into a numeric signal, outputting positive or negative values based on line positioning
A Pine Script v5 indicator in a separate pane that uses Hurst-style bandpass filters on a selectable price source, defaulting to the low, to mark cycle pivots from the 80 day range up to 18 years. Every cycle has its own bandwidth and period setting, plus a ba
Calculates a reversal confidence score combining Bollinger Band overextension, RSI exhaustion, and price distance from a exponential moving average. The strategy overlays VWAP, EMA, and Bollinger Bands directly on the price chart. Long signals trigger when pri
This overlay indicator builds support and resistance channels from confirmed pivot highs and lows. It groups nearby pivots into channels whose width is limited by a percentage of the recent high-low range, then draws up to a set number of channels on the price
Minimal teaching script for requesting lower-timeframe data. It asks for the 60-minute closes inside each chart bar and, on the second-to-last bar, writes the resulting array into a label on the price chart. On a 120-minute chart each bar therefore lists two h
An indicator that draws three moving averages on the price chart: a base, a slow and a fast line, each selectable as EMA, SMA or Hull type with its own length. The slow line changes colour depending on whether price is above or below it. Labels mark when price
The triple exponentially average indicator computes a triple exponential moving average of the closing price to generate the Trix oscillator. It calculates the successive EMAs and derives the trix as the percentage change of ema3. The script plots the trix val
A Pine v4 strategy that plots VWAP in blue and green and red lines for the previous highest high and lowest low over a fast and a slow lookback. It checks for new single or double highs and lows alongside MACD and RSI bottoming patterns. Inputs set the two loo
This indicator builds a histogram of percentage gap sizes in a separate pane. It measures each gap as a percentage change, then counts how often those sizes fall into positive and negative bins. Columns show the count in each bin, and optional labels mark the
This indicator scans multiple tickers simultaneously to detect regular bullish and bearish MACD divergences filtered by long-term trend direction (150 EMA versus 600 EMA). It evaluates pivot highs and lows in the MACD line against price action across configura
AONE-tracker visualizes historical ARK Invest purchase and sale transactions directly on the price chart for the stock. It plots color-coded labels on specific historical trade dates, indicating whether ARK funds bought or sold shares along with the count of p
This library exports a linreg method that fits a straight line through paired sample arrays. It returns fitted Y values plus the largest positive deviation, the largest negative deviation, and the average absolute deviation. Callers pass matching X and Y array
Plots three weighted moving averages (periods 13, 48, and 200) directly on the price chart to classify trend transitions and strength. The indicator detects early trend beginnings when the close crosses any of the moving averages, then tracks subsequent moving
This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m
This indicator plots two weighted moving averages in a separate pane to track price trends with volatility-based adaptation. One moving average uses a fixed user-defined lookback period, while the second adjusts its length dynamically by comparing a 10-period
This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.
This indicator plots the Bull-Bear Power Ratio as two oscillator lines in a separate pane. BR compares the range above the previous close with the range below it, and AR compares the range above the open with the range below it. Both ratios are summed over a r
Calculates and plots five Simple Moving Averages (SMAs) with lengths of 10, 30, 50, 70, and 90 on the main price chart. The script serves as an educational example demonstrating various syntax methods for defining color transparency in Pine Script v5, includin
This indicator automatically identifies swing highs and lows over a 100-bar lookback window on the most recent bar to draw Fibonacci technical overlays. It plots a primary trendline between the detected swing points, alongside extended speed fan lines at stand
Calculates the Fisher Transform oscillator and its signal line to convert price action into a Gaussian probability distribution. It normalizes input prices within a specified lookback window, applies exponential smoothing, and scales the bounded value logarith
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
This indicator plots the Coppock Curve in a separate pane. It adds the rate of change of close over a long lookback to the rate of change over a shorter lookback, then smooths that sum with a weighted moving average. The WMA length and the long and short rate-
This trend-following strategy executes Donchian channel breakout entries combined with Ed Seykota-inspired risk management. It opens long or short positions when price breaks 55-bar highs or lows, provided optional volume and market regime filters align. Posit
FairValueGap C003 is an overlay strategy that identifies Fair Value Gaps (FVG) and opens trades expecting price to return and fill the gap. It calculates the distance between current price levels and recent gap boundaries to aim for partial or full gap fills.
This indicator maps Stephen Klinger's volume force in a separate pane. It builds a Klinger volume oscillator from fast and slow exponential averages of a volume-force series, then subtracts a signal average to form a histogram. Display normalization keeps zero
Arbitrage Detector [LuxAlgo] compares price and volume data across multiple crypto exchanges or forex brokers against the charted asset. It calculates cross-venue spreads and measures their percentile ranks to highlight market anomalies, plotting a smoothed gr
Stochastic 3 plots three separate Stochastic oscillators stacked vertically in a single indicator pane using vertical offsets. It calculates fast, medium, and slow momentum layers (configured by default to 5-3-3, 10-6-6, and 20-12-12 settings) with customizabl
714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl
This indicator overlays higher-timeframe candles on the price chart as body and wick boxes. It requests open, high, low, close, and bar times from a chosen higher timeframe, then compares stored wick boxes to mark imbalances above or below price. Settings choo
This strategy combines MACD momentum signals with support and resistance levels from pivot points and an EMA100 trend filter for long positions. It plots the 100-period EMA on the price chart and signals when price breaks above the EMA or forms bullish pivot p
This overlay strategy combines a higher-timeframe trend filter with chart-timeframe entries. The trend timeframe, default five minutes, uses a fast and slow EMA together with Supertrend. On the chart, recommended at one minute, it looks for an entry EMA cross,
CSW Sequence Candles Pro calculates 5-period EMA-smoothed Open, High, Low, and Close values to render custom sequence candlesticks directly on the main price chart. It determines trend direction by comparing the smoothed close to a 20-period EMA, dynamically c
Premium Lux Algo is a multi-indicator overlay designed for price charts. It combines components including Supertrend, Parabolic SAR, pivot-based support and resistance levels, moving average bands, and range filters into a single tool. Traders can toggle speci
Market Cipher A plots an exponential moving average ribbon on the price chart alongside visual trend signals. It computes eight EMAs of varying lengths to construct the ribbon, tracks daily pivot high and low levels, and calculates momentum using internal wave
This indicator draws Balanced Price Range zones on the price chart. It looks for a bullish fair value gap and a bearish fair value gap that form within a set number of bars, then boxes their overlapping range when that range is at least the threshold. Boxes ca
CM DI Plus Minus V1 calculates the positive (+DI) and negative (-DI) directional indicators to assist in identifying trend direction and strength. It plots both +DI and -DI lines in a separate pane and offers optional background highlighting based on direction
Calculates Murrey Math Lines support and resistance levels anchored to the largest price impulse found within a rolling lookback window via Kadane's algorithm. It projects fractional Murrey grid lines alongside base and inverse lines with text labels directly
This indicator calculates and plots Close-to-Close Historical Volatility in a separate chart pane. It measures statistical market volatility by computing the standard deviation of logarithmic price returns over a customizable lookback period. The script utiliz
This multi-indicator strategy generates trade signals by combining a T3 moving average, Parabolic SAR, ADX trend filter, RSI, and MACD. It executes long or short entries overlaying the price chart based on trend and momentum alignment. Exit logic features a mu
Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea
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.