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 a weighted histogram of constituent returns for major market indices (NDX, SPX, DJIA, and RUT) in a separate pane. Each histogram bin reflects the summed weights of members within that percentage return bracket. The script renders vertical
This indicator applies a k-nearest neighbours (kNN) classification algorithm using Aroon indicator lags and momentum as feature inputs to forecast market direction. It compares current values against historical feature sets to classify bars into buy, hold, or
This overlay strategy plots exponential moving averages of length 21, 55, 100, and 200 on the price chart. It is declared as a strategy that sizes orders as a percentage of equity and applies a percent commission and slippage, with pyramiding disabled. The mom
This indicator calculates a second-order Bessel lowpass filter on a chosen price source and plots the result on the price chart. It uses a recursive infinite-impulse-response formula with constant work per bar. Length sets the cutoff period linked to the minus
This indicator paints the price-chart background according to three fixed clock sessions. Bars from 04:00 to 09:30 use the pre-market color, 09:30 to 16:00 use the regular-session color, and 16:00 to 20:00 use the post-market color. Three color inputs change t
The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by
The Dynamic Momentum Index (DYMOI) calculates a volatility-adaptive Relative Strength Index based on price volatility ratios. It measures short-term versus long-term standard deviation to dynamically adjust the RSI lookback period. Higher volatility shortens t
This indicator projects statistical ranges, session open levels, and key manipulation or distribution levels on the price chart. It calculates levels using historical session data and weekday statistics within user-defined time windows. Traders can customize s
This indicator calculates and plots the combined Bull Bear Power oscillator in a separate pane. It computes Bull Power as the difference between the high and an exponential moving average, and Bear Power as the difference between the low and the EMA. The sum o
This indicator identifies whether the opening bar of a new trading day opens at its high (Open = High) or low (Open = Low) within a customizable tick tolerance. It marks matching sessions directly on the price chart using directional arrows, text labels, and t
This indicator highlights price candles based on unusual volume expansion and directional volume imbalance. It estimates buying and selling volume from the close position relative to the bar range. When total volume exceeds a multiple of its moving average, th
This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu
Diverlong A002 is an automated trading strategy designed for cryptocurrency pairs on intraday timeframes. It detects classic bullish and bearish divergences by comparing price changes against transitions in the Squeeze Momentum Indicator. Positions are exited
Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared
Identifies support and resistance liquidity zones from pivot highs and lows and detects liquidity sweep events on the price chart. A sweep is registered when price wicks beyond a tracked zone but closes back inside it. Optional filters include an exponential m
This indicator plots the actual open and close price values directly on the price chart when viewing Heikin Ashi charts. It retrieves standard bar prices using a security call to display dots representing the true market open and close levels. Users can toggle
The Volume Conviction Index measures volume conviction by evaluating volume intensity and relative changes against historical medians. It computes a robust median volume and median absolute deviation to derive volume Z-scores while winsorizing extreme outliers
The Machine Learning Momentum Index uses a k-Nearest Neighbors classification algorithm to evaluate momentum and trend direction directly on the price chart. It records historical parameter pairs derived from weighted moving averages and smoothed RSI values, t
This overlay strategy looks for wick rejections near support and resistance levels and scores them with smart-money confluence. It can plot fair value gaps, order blocks, change-of-character and break-of-structure labels, higher-timeframe structure lines, and
This diagnostic indicator reconstructs a native-style Fixed Range Volume Profile directly on the price chart using lower-timeframe bar data across a user-defined time range. It allocates bar volume across price rows, calculates the Value Area, and identifies v
This indicator plots a rolling simple moving average and a rolling median of a chosen source, plus upper and lower bands at one through five standard deviations from the mean. An optional log-space setting transforms the source with a logarithm before the calc
This indicator calculates and plots the exponential moving average on the chart, along with Keltner Channel bands. It applies optional filters based on Keltner Channel and Money Flow to identify breakout signals. Breakouts occur when price crosses the EMA with
This indicator marks bullish and bearish engulfing candles on the price chart. A bullish signal requires the current open to be at or below the prior close, below the prior open, and the current close above the prior open. A bearish signal uses the opposite op
This Ichimoku Cloud strategy plots the cloud and price action on the chart for trend analysis. It generates long signals when price is above the cloud with a Tenkan-Kijun bullish crossover and bullish cloud, optionally confirmed by Chikou span. Short signals f
This trend-following strategy generates long and short entries when a fast EMA crosses a slow EMA, overlaying directly on the price chart. To reduce false signals, it applies four configurable fakeout filters: volume moving average threshold, consecutive bar c
This script calculates real-time technical indicators and displays them in a customizable on-chart table dashboard. It measures the Relative Strength Index (RSI), Average True Range (ATR), Simple Moving Average (SMA), volume ratios, daily price changes, trend
The REG-TREND indicator plots linear regression trend lines calculated from the selected source over a user-defined length. It determines channel boundaries and deviation to detect trend breaks, marking them with dotted lines in the chosen color. Fibonacci ret
This overlay indicator plots five exponential moving averages with Fibonacci lengths of 3, 13, 34, 55 and 144 on the price chart. Fast lines are red and orange, slower lines blue and purple, and the 144-period line is a black filter. It marks reset events when
Plots an external symbol's closing price as a horizontal dotted line extended to the right of the latest bar. By default, it requests the price of the ETHUSDTPERP contract using a configurable exchange prefix. It can also display a label showing the chart's ro
ALGOX is a multi-indicator trend-following strategy plotted directly on the main chart. It generates trade entries based on configurable setups, moving average trends, and higher-timeframe inputs. Users can apply sideways market filters using customizable RSI
The TWAP VWAP EMA MACD indicator calculates two exponential moving averages: one based on the time-weighted average price (TWAP) and another on the volume-weighted average price (VWAP). It subtracts the VWAP EMA from the TWAP EMA to form the MACD line and appl
Volume Delta Table is an indicator that displays a customizable table with volume, buy, sell, delta, and cumulative volume delta (CVD) values. It uses request.footprint data to split volume by aggressor side. Options allow showing session start, bar count, ses
Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), custom VWAP tracking, and volume breakout analysis into a single separate-pane indicator. It calculates oscillator wave values along with moving average smoothing to highlight overbought
This Pine Script v6 library provides custom exported data types and initialization functions for tracking Smart Money Concepts and ICT market structure shifts. It defines structures to manage states for Break of Structure, Change of Character, Market Structure
An automated trading strategy designed for gold (XAUUSD) combining EMA trend filters with Stochastic, RSI, ATR, and Fibonacci zones. It generates entry signals based on overbought and oversold triggers, rejection wicks, and price distance from key moving avera
Alpy Spot is an oscillator and trend strategy that calculates a WaveTrend indicator alongside a multi-timeframe 60-minute Volume Weighted Moving Average (VWMA) with percentage band offsets. It plots WaveTrend lines, overbought and oversold threshold levels, an
Log-Normal Price Forecast calculates historical log returns and volatility to project theoretical future price movements on the main chart overlay. Using a normal distribution inverse function, it computes statistical drift and standard deviation to plot dynam
This strategy detects adaptive market regimes by combining ATR volatility with fast and slow EMA moving averages to determine trend direction. It applies multi-timeframe confirmation using RSI and MACD on a higher timeframe. Signals appear as buy and sell arro
This strategy applies a Supertrend calculation directly to Relative Strength Index values rather than raw price, plotting the result in a separate pane. Traders can enable optional RSI smoothing via a Hull Moving Average and overlay a secondary moving average
RSI Superstack plots the relative strength index from three user-selected timeframes in a separate pane. Each series uses the same RSI length and turns purple when it reaches the overbought or oversold threshold. A red background marks when all three readings
ZigZag reSampled draws one purple swing line on the price chart. It tracks the highest high and lowest low over a depth window, then flips between an upward and a downward leg when a bar a set number of backsteps ago makes a new extreme. Depth controls that lo
The Trendsignal Strategy identifies trend flips using dynamic channel boundaries derived from high and low price ranges over a set lookback period. It calculates upper and lower thresholds based on a customizable risk setting. When price closes above the upper
This multi-model strategy combines kinematic price modeling, Bayesian inference forecasts, volume profile consolidation zones, and automated pattern recognition directly on the price chart. It evaluates market trajectory using weighted kinematic regression, un
This strategy executes long trades when the closing price crosses above an Exponential Moving Average (EMA) and displays the EMA trend line directly on the price chart. Position sizing is calculated dynamically to risk a fixed percentage of current equity base
This Pine Script library provides reusable helper functions for composing and formatting Smart Money Concepts (SMC) debug text strings and observability data. It builds structured labels and diagnostic lines containing setup sources, zone quality metrics, touc
Calculates Elder Ray Bull Power and Bear Power by measuring differences between price extremes and an exponential moving average. It takes long entries during an uptrend when Bear Power is negative but rising, and short entries during a downtrend when Bull Pow
A minimal Pine Script v6 test fixture script used for validating parser error handling and indentation rules. It evaluates if the current bar close is higher than the open using a two-space indented code block, then plots the closing price in a separate pane.
A strategy that builds a structural delta volume profile with point of control, value area and high-delta liquidity zones, plus a rolling P0 equilibrium and an acceptance and rejection scoring dashboard. Entries come from the flip of an adaptive ATR band that
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.