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 calculates the difference between two Relative Strength Index oscillators with fast and slow periods. It plots this spread as a two-color line alongside a zero line in a separate pane. The plot turns lime when positive and red when negative. Sig
This indicator identifies ABC wave patterns using a recursive Zigzag algorithm on the price chart. It projects entry, target, and stop loss levels based on customizable Fibonacci ratios and Zigzag depth settings. Users can adjust trade conditions, calculation
The HMACCI indicator calculates multiple Hull Moving Averages with variants including Hma, Thma, Ehma and Rmahma. It plots colored line signals on the price chart based on source close, lengths, multipliers, offsets and history bars. Users adjust MA types, len
Gucci 1.0 is a Pine Script strategy that identifies trend reversals using 55 EMA and 200 EMA crossovers combined with custom high and low levels from recent closes. It plots open, close, high/low period values, and both EMAs on the price chart. Long signals fi
This indicator is a tutorial script that declares Pine Script values of several built-in types and plots a few of them. It assigns an integer, decimal and scientific-notation floats, a boolean, built-in, hex and RGB colors, and strings that include escapes and
An indicator that converts RSI, MACD histogram, Bollinger position, ATR, Stochastic, OBV change, ADX and VWAP deviation into z-scores, combines them with adjustable weights into one composite score, and smooths it with a Kalman filter. Buy and sell labels appe
The Volatility Breakout (Larry Williams) strategy generates signals based on price movements relative to yesterday's range. Long entries occur when price surpasses the close by a user-defined multiple of the range, while short entries use a lower multiple. A t
This indicator detects long-only trading setups centered on volume-weighted average price (VWAP) reclaim sequences. It calculates VWAP with standard deviation bands, tracking slope and price bias through an exponential moving average. Signals trigger on either
A strategy based on MACD with adjustable fast, slow and signal lengths and a selectable source. Despite its name, entries come from the MACD line crossing the signal line: long on a cross up, short on a cross down, reversing the position. The histogram, MACD l
This test indicator is designed to verify parser error handling for undeclared identifiers in Pine Script v6. It attempts to plot an uninitialized variable name on a separate chart pane, serving as a syntax validation fixture for Pine Script backtesting engine
A strategy that trades continuation after a second directional flip, intended for a 15-minute chart. Bias must agree between confirmed one-hour and four-hour structure. Lower-timeframe states are rebuilt relative to the bar open, the setup is frozen once the s
This Pine Script indicator scans multiple Binance cryptocurrency symbols including BTCUSDT, ETHUSDT, and others. It computes signals across four method classes: trend, momentum, volatility, and volume. Different signal modes include single-method, simultaneous
This indicator divides price ranges over a customizable lookback window into horizontal power zones directly on the main chart. It evaluates buying and selling volume distribution across each partitioned zone, highlighting strong and weak pressure zones using
A momentum consensus indicator drawn on the price chart. It scores RSI, rate of change, MACD, Bollinger position, MFI and smoothed OBV against a percentile lookback and issues buy and sell signals when the consensus passes a threshold, 0.618 by default. Option
Tick-chart-safe variant of a large overlay indicator that merges many detections into numbered signals. It includes pocket pivot volume tests, standard deviation displacement, a VWMA with ATR Supertrend and PBJ filter, relative volume, and opening-drive zone l
A dollar-cost-averaging grid strategy. It opens a base order sized as a percent of equity and adds up to a set number of safety orders at widening price deviations, each scaled larger. A second mode uses Bollinger Band width from a higher timeframe, 4 hours by
A Pine v4 indicator that combines several tools on the price chart: smoothed moving averages of 21, 50, 100 and 200 bars, a trend fill between a fast EMA and the 200 line, a three-line strike candle pattern and engulfing candle markers. A configurable trading
A Pine Script v5 indicator in a separate pane, the third revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle peaks form. Per-cycle bandwidth and period i
The RSI Divergence Detector identifies regular and hidden divergences between price movement and the Relative Strength Index (RSI). It calculates price and RSI pivot highs and lows over a customizable lookback window to detect bullish and bearish setups. Upon
This indicator merges multiple momentum oscillators including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW MACD, Chaikin Money Flow and Money Flow Index into one chart. It scans for regular and hidden divergences between the chosen indicators to signal potent
Plots a simple moving average on the price chart with adjustable length, source and offset. An optional second smoothing line can be added to the result using SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands whose width follows a multiplier. The defaul
An overlay indicator that is one component of a weighted scoring system. It draws a 200-bar trend EMA and four shorter EMAs of 9, 21, 55 and 100 bars, with fills between price and each average coloured by slope. It also converts the trend into weighted scores:
Williams Inducator calculates a basic Williams %R style momentum oscillator over a configurable lookback period. It determines the highest high and lowest low across the specified bars, measures the position of the closing price within that range, and scales t
A Pine v4 strategy that draws VWAP and green and red lines for rolling highs and lows over two and five bars. It watches for price breaking those extremes together with MACD and RSI bottoming patterns, and keeps counters of highs and lows. Inputs set the lookb
The Heikin-Ashi Chart Identifier is an indicator that checks if the current chart uses Heikin-Ashi candles. It tracks matched candles where open equals the average of previous open and close, and verifies no gaps between bars. When conditions match, it display
Range Filter [Alorse] is a technical indicator overlay for TradingView designed to filter market volatility and identify price trends. It calculates a smoothed range based on historical volatility using a configurable sampling period and multiplier applied to
Visualizes historical ARK Invest transactions for AquaBounty Technologies (AQB) directly on the price chart. The indicator creates green buy labels below bars and red sell labels above bars at hardcoded timestamps corresponding to reported ARK trading activity
This library exports a generalized perceptron node for neural networks. The function takes float arrays of inputs and weights, adds a bias, and applies a named activation function to the weighted sum. Bias defaults to 1.0 and the activation defaults to sigmoid
Snag - No Repaint ES 1m Strategy Candle Bar is an overlay strategy designed for short-term futures trading. It calculates custom price aggregations, pivot levels, and averages across multiple higher timeframes including 3-minute, 5-minute, 8-minute, and 10-min
This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add
Calculates classic pivot points, support, and resistance levels based on previous bar high, low, and close values. It generates long entry signals when the close price crosses above the central pivot point and short entry signals when it drops below. Position
This strategy plots an AlphaTrend line on the price chart and trades crossovers against the same line two bars earlier. It builds the line from a smoothed true-range band and either Money Flow Index or RSI, depending on the no-volume setting. A crossover opens
The Chande Kroll Stop calculates volatility-based adaptive trailing stops for long and short positions. It determines an initial volatility envelope by subtracting or adding a scaled Average True Range from the highest high or lowest low over a set lookback pe
This indicator plots a 20-period RSI in a separate pane and watches whether it crosses the 50 level. A long condition is true when RSI crosses above 50 and Detect Longs is enabled; a short condition is true when RSI crosses below 50 and Detect Shorts is enable
This indicator plots a Hamming-window finite impulse response moving average of a chosen price source on the price chart. It weights recent bars with the Hamming cosine window, renormalizes by the sum of weights, and uses only bars available during warm-up so
This indicator calculates and plots the Initial Balance (IB) high, low, and intermediate Fibonacci levels based on a user-defined trading session. It overlays standard deviation channels and mean or median extension levels directly on the price chart. Users ca
This indicator calculates the Detrended Price Oscillator to identify short-term cycles by removing long-term trends from price. It compares price data against a simple moving average defined by the user-selected length. Traders can toggle a centered mode that
This strategy trades Donchian breakouts on the price chart and tries to avoid choppy conditions. It can enter long or short when price breaks the entry channel and optional ADX, efficiency-ratio, and trend-strength filters pass. It exits on the shorter Donchia
The FairValueGap F004 strategy trades fair value gap fills with automated risk management and Zignaly webhook integration. It calculates the distance between the current price and the opposite end of a recently created gap, entering positions with the expectat
Market Exhaustion combines the Money Flow Index (MFI) and Stochastic RSI to pinpoint overbought and oversold conditions. It offers customizable oscillator modes including MFI, Commodity Channel Index (CCI), or a composite blend. The indicator calculates standa
This indicator treats price action, RSI, or moving average relationships as binary Bernoulli trials to estimate trend probability and Shannon entropy over a rolling sample window. It calculates the proportion of bullish outcomes and measures market uncertainty
Advanced ORB + ICT System plots Opening Range Breakout (ORB) levels alongside Inner Circle Trader (ICT) concepts directly on the price chart. It highlights ORB boxes, Fair Value Gaps (FVGs), Order Blocks, liquidity grabs, and key support and resistance levels
MTF EMA + MACD Long Strategy is a trend-following long-only strategy that combines higher-timeframe Exponential Moving Averages with MACD crossovers. It calculates two multi-timeframe EMAs to establish overall trend direction and uses MACD crossovers to genera
This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol
This indicator calculates and plots the NYSE Cumulative Tick Index as colored candles in a separate pane, with green indicating upward tick trends and red downward trends. Overbought and oversold zones are marked using smoothed averages of high and low tick va
Pro V3 [SMRT Algo] is a multi-functional technical analysis overlay that generates buy and sell trading signals based on ATR supertrend logic and linear regression analysis. It offers optional moving average filtering alongside a suite of visual technical over
Sniper Algo is a multi-indicator technical analysis suite that plots directly on the main price chart. It integrates Ichimoku Kinko Hyo components, automated support and resistance zones, dual exponential moving averages, and optional buy and sell signals. Use
This Pine Script library detects and plots Smart Money Concept Fair Value Gaps (FVGs) for both demand and supply zones directly on the price chart. It exports a detection function that accepts configurable filter thresholds ranging from standard three-bar imba
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.