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 indicator in a separate pane that measures how far the average of open and close has moved from the day's opening price. The difference is plotted as an area, green above the open and red below, and the day open is drawn on the price chart. Percentile lines
An indicator that measures historical volatility from the standard deviation of log returns, annualised, then compares it with its own EMA. The result is normalised by a Bollinger-style deviation multiplier and plotted in a separate pane against dashed hot-mar
The Vortex Indicator calculates positive (VI+) and negative (VI-) directional movement lines to help identify trend direction and momentum. It measures the sum of upward and downward price movements relative to the true range over a specified lookback period.
A Pine v4 overlay that plots three simple moving averages of 50, 100 and 200 periods on a chosen source. The 50 and 100 lines turn green when rising and red when falling, while the 200 line changes colour depending on whether the close is above it. An optional
This indicator plots momentum bias metrics using three exponential moving averages (EMAs) of periods 20, 60, and 180. It calculates short_bias as the difference between the fast and mid EMAs, and mid_bias as the difference between the mid and long EMAs. These
A separate-pane RSI divergence tool written in Pine v4. It plots a 14-period RSI in yellow with a 50-period smoothed average and a 50 midline, then detects pivot lows and highs of the RSI within a lookback range of 5 to 60 bars. Labels mark regular bullish, hi
A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This indicator calculates the distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist
This indicator scans a pasted list of symbols and shows matching long and short setups in a table in a separate pane. It uses a Supertrend crossover, then applies an ATR or fixed-point volatility range so quiet, sideways conditions can be skipped. Optional fil
Improvising [Alorse] is a price-chart strategy that looks for a one-bar candle reversal filtered by a 10-period EMA, a 14-period RSI, and a rising or falling MACD. Longs require a bearish bar followed by a bullish close above the EMA, RSI below 65, and a risin
ALLT Tracker is an overlay indicator that plots historical buying and selling transactions from ARK Invest directly onto the price chart. It uses color-coded labels placed relative to price bars to display trade actions and the count of participating ETFs on s
This script provides a collection of utility functions to handle complex numbers and compute a Discrete Fourier Transform (DFT) in Pine Script. It implements array-based mathematical structures to perform operations on real and imaginary components, facilitati
This is a futures trading strategy for instruments like ES. It plots an Ichimoku Cloud using Tenkan, Kijun, Senkou A, Senkou B and Chikou lines along with pivot highs and lows to mark resistance and support levels directly on the price chart. Inputs let users
The Liquidity Zones - ICT indicator identifies and highlights potential buyside and sellside liquidity areas directly on the price chart. It tracks recurring price levels within a specified lookback period, grouping price touches that fall within a configurabl
This indicator applies a logistic regression binary classification model trained via gradient descent directly on chart data. On every bar, the model updates weights over a configurable number of training iterations and passes them through a sigmoid function t
This strategy plots an Optimized Trend Tracker and a selectable moving-average support line on the price chart. It builds the average as SMA, EMA, WMA, TMA, VAR, WWMA, ZLEMA, or TSF, then offsets long and short stops by a percent of that average. Optional mark
This indicator calculates a rolling financial beta that compares percentage returns of a selected source with percentage returns of a second symbol, defaulting to SPY. It keeps a circular buffer of returns over a user-set period and plots the result as a yello
This indicator draws smoothed candlesticks on the price chart. It applies a simple moving average of a user-set length, defaulting to nine, separately to open, high, low, and close, then plots those four values with plotcandle. Wick color is green when the raw
Calculates dynamic trendlines and horizontal support and resistance levels using pivot highs and pivot lows with a fixed length of 10 bars. When a new pivot high or low is confirmed, the script updates extended trendlines connecting the two most recent pivots,
This indicator calculates John Ehlers' Autocorrelation Periodogram to estimate the dominant cycle length of a market. It pre-filters price data using high-pass and smoothing filters, then computes Pearson correlation coefficients across a spectrum of lag perio
This indicator maps session ranges, opening prices, and derived projections directly onto the price chart. It calculates high and low boundaries during a defined reference session, such as pre-market hours, and overlays session open lines, range boxes, standar
This script is a momentum indicator that calculates the Chaikin Oscillator. It measures the difference between the short and long period exponential moving averages of the Accumulation Distribution Oscillator. The indicator plots the oscillator values in a sep
This indicator implements swing chart construction rules based on Perry Kaufman's Trading Systems and Methods. It runs up to three swing models simultaneously across two, three, and four-bar reversal thresholds, plotting swing lines directly on the price chart
This strategy enters long or short when a fast exponential moving average crosses a slow one, then sizes each unit from a percentage of equity and an ATR-based initial stop. It can add positions as price moves by a multiple of ATR, up to a set unit limit, and
Diverlong C002 is a trading strategy designed to identify entries using Squeeze Momentum Indicator divergences and execute exits based on Curie Closing Lines. Long and short signals trigger when price movements contradict Squeeze Momentum values across indicat
Elliott Wave Radar identifies and validates Elliott Wave impulse (1-5) and corrective (A-B-C) patterns using a dual-degree ZigZag pivot engine with an ATR noise filter. It checks structural rules and Fibonacci guidelines, scoring counts and projecting price ta
VSA Pro: Trend and Rejection is an overlay strategy combining SuperTrend trend filtering with Volume Spread Analysis principles. It calculates SuperTrend direction to enter long positions when a new bullish trend starts and exits all positions when the trend t
Combines moving averages, MACD, Stochastic oscillator, and RSI into a single separate indicator pane using vertical offsets. The tool visualizes momentum, trend direction, and overbought or oversold conditions concurrently. Settings allow customization of indi
Calculates and overlays up to ten moving averages from custom timeframes directly onto the main price chart. Each moving average line allows individual configuration of its timeframe, period length, and average type, supporting Simple Moving Average (SMA), Exp
The WR-SR + SMC Strategy v4.0 combines wick rejection for support and resistance level detection with Smart Money Concepts including CHoCH and BOS structure changes, fair value gap zones and order blocks. It signals trading entries and exits on the price chart
This overlay indicator is a headless export aid for a frozen Volume Profile source bundle. It performs no profile calculation and draws no chart objects. It checks that the chart is a standard ES or MES futures contract matching a typed ticker and a 0.25 minti
Rolling summary calculates a rolling statistical box over a chosen source and plots it on the price chart. It shows the simple moving average, median, first and third quartiles, interquartile range whiskers, and four extra percentiles. A log-space option trans
Kenny's Strategy combines multiple exponential moving averages to identify trend changes and generate entry signals. It calculates short, medium, and long EMAs from a user-selected source and checks for alignment within specific zones. A long-term EMA filter r
This strategy identifies bearish engulfing candlestick formations to execute short positions. A short entry triggers when the current bar opens at or above the previous bar's open and close, then closes below the previous open. Position exits are managed eithe
This strategy draws on the price chart and trades a two-period RSI. It enters long when RSI crosses above the oversold level and short when RSI crosses below the overbought level. An optional SMA trend filter, volume confirmation, and cooldown can block entrie
This strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc
This indicator calculates an approximate volume profile over a specified lookback period or current intraday session. It divides the high-low range into a configured number of price bins, assigns each bar's volume to the corresponding bin based on its closing
Jash_test is a price-chart overlay that plots five exponential moving averages using Fibonacci lengths: 3 and 13 as the fast pair, 34 and 55 as the slow pair, and 144 as a longer filter. It colors them red, orange, blue, purple, and black. On the current bar a
CSW Breakout Signals plots breakout buy and sell labels on the price chart when price breaks support or resistance after a trend change. Each signal can show a numbered confirmation score built from a moving-average cross, momentum, opening-range alignment, re
This overlay indicator generates trading signals by combining a selected leading indicator with multiple customizable confirmation filters. Traders can toggle trend filters such as single, double, or triple moving averages, Range Filter, SuperTrend, Half Trend
Version Kappa: Composite Momo + Volume + Price Strategy evaluates trend, momentum, and volume dynamics to generate trading signals on the price chart. It calculates a composite RSI wrapped in Starc Bands, tracking momentum across both current and higher timefr
The SSL Oscillator is a separate pane indicator that combines momentum channel calculations with Quantitative Qualitative Estimation (QQE) logic. It evaluates moving average differences, standard deviation channels, and smoothed RSI values across multiple conf
MirPapa Library ICT is a Pine Script utility library designed to support Inner Circle Trader (ICT) analysis across trading scripts. It exports custom data structures, including BoxData and HTFCache, to manage higher-timeframe historical price data and track zo
Calculates a multi-factor technical scoring system designed for gold trading directly on the price chart. It evaluates Stochastic, RSI, triple exponential moving averages, automatic support and resistance levels, Fibonacci retracements, and volume spikes. The
This strategy plots a Williams Vix Fix histogram in a separate pane and compares price with a volume-weighted moving average of HLC3. It buys when the histogram turns from lime to gray, price is below the VWMA by the long offset, and the close ticks down. It s
This indicator projects a three-dimensional surface map and wireframe landscape representing cryptocurrency market capitalization directly onto the price chart. It renders a customizable grid with gradient surface strips, wireframe lines, markers, peak volume
This indicator calculates and plots the Ease of Movement (EOM) oscillator in a separate chart pane. It evaluates the relationship between price midpoint changes and trading volume relative to the bar's high-low range to quantify how easily price moves. The raw
This strategy executes a recovery zone hedging system directly on the price chart. It initiates an initial position at periodic bar intervals when flat, setting a target take profit and an adverse recovery boundary. If the market moves against the position int
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.