8,340 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 tracks multi-timeframe liquidity levels from daily, 1-hour, 15-minute, and 5-minute charts on a 1-minute timeframe. It identifies liquidity sweeps where a 1-minute candle wicks through a higher-timeframe level and closes back inside, followed by
ATR% Multiple from MA measures price extension relative to a moving average, expressed in multiples of Average True Range percentage. It calculates ATR as a percentage of close, evaluates the percentage distance between the price and its moving average, and no
MahadevLevels35 PRO is a Pine Script v6 indicator that draws Mahadev price levels with endings like 03, 11, 29, 35, 65 and 71 across a user-defined range directly on the price chart. It overlays a stack of seven EMAs with customizable colors and source, plus V
This indicator identifies and classifies market structure pivot points directly on the price chart. It detects swing highs and swing lows over a user-defined lookback period, classifying them into higher highs, higher lows, lower highs, and lower lows. Each co
This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart. It measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plot
The RedK EVEREX v2.0 indicator examines effort versus results by plotting normalized bands comparing price change to volume. It computes rate of flow using selectable moving averages with smoothing options, and applies lookback averaging to highlight anomalies
ATR Helper is a trade planning indicator that calculates dynamic stop-loss levels and multi-stage profit targets. It uses an Average True Range multiple with selectable smoothing to determine the stop distance from either the current close or a manual entry pr
This indicator implements a streaming bar-by-bar port of the Chanlun theory decomposition pipeline directly on the price chart. It processes raw price action through Algorithm N containment normalization, identifies top and bottom fractals, connects them into
This indicator tracks broad market regime conditions by requesting moving average data from an external index or benchmark, defaulting to NASDAQ:NDX on the daily timeframe. It calculates fast, medium, and slow moving averages (EMA or SMA) to classify market st
This overlay approximates order-book liquidity from intrabar OHLCV buckets because true depth-of-market data is unavailable. It paints a decaying volume heatmap around price and labels absorption, exhaustion, rejection, and momentum when wick, body, delta, and
The XAUUSD Breakout Grid strategy executes market orders when price crosses defined dollar-denominated grid levels on the price chart. It tracks entries using array structures and dynamically adjusts position sizing to balance net exposure between long and sho
This indicator evaluates gold market conditions using a multi-factor confluence model on the price chart. It combines Stochastic, RSI, triple EMAs, Fibonacci retracements, automated support and resistance levels, wick reclaims, and volume spikes into an aggreg
SMC Pro is an overlay indicator that maps smart money concepts on the price chart. It draws bullish and bearish order blocks with a mitigation threshold, fair value gaps, break of structure and change of character lines, and liquidity sweeps of equal highs and
This indicator analyzes volume character and market structure in a separate chart pane. It color-codes volume bars to identify institutional accumulation, distribution, climax volume, and volume dry-up conditions during volatility contraction patterns. The scr
QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta
This strategy executes long trades based on a 50 and 200 SMA golden cross and manages exits using a dynamic trailing stop. Upon entry, it places an initial stop loss at the lowest low of the previous lookback bars. Whenever price prints a new high over the spe
Session Extreme Revisit - Lines identifies high and low candles during defined trading sessions, such as London and New York, and projects them on the chart as supply and demand reaction zones. The indicator tracks intraday extreme price ranges and extends rea
This overlay indicator draws Elliott Wave structure on the price chart. It builds up to three independent ZigZag swings from user-selected high and low sources, then connects impulse legs labeled one through five and corrective legs labeled A through C. Four a
This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects swing and internal market structure, strong and weak highs and lows, equal highs and lows, fair value gaps (FVGs), and order blocks (OBs). It also plots premium and discou
This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts. Signals are filtered using moving average volume expansion, ATR momentum growth, and ex
Trend Duration Forecast plots Hull Moving Average on the price chart and detects trend changes using consecutive rising or falling slopes. It counts trend bar durations, stores bullish and bearish counts in arrays, and calculates average probable extension len
This overlay indicator approximates a Bookmap-style liquidity view from price and volume. It draws heatmap boxes where volume exceeds a rolling average, volume dots above a relative-volume filter, and a smoothed cumulative-delta proxy. Optional signals use abs
The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4
Strong Wealth Magnet is an overlay indicator that scores price action and draws selected narrative layers on the price chart. Up to three modes can run together, including a Pro layout and a Six Eyes view that reviews past signals over a chosen window and labe
This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl
ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc
This quantitative strategy calculates custom Bollinger Bands using a standard moving average and standard deviation multiplier. It generates long entry signals when the bar close breaks above the upper band, and short entry signals when the close breaks below
This indicator detects institutional candles where the body exceeds a multiple of the rolling average body size. It creates and draws supply and demand zone boxes directly on the price chart, validating them over subsequent bars to discard invalidated zones. W
This indicator analyzes price action on XAUUSD Gold using Smart Money Concepts and macro trend filters. It evaluates daily macro bias using a 200-period Exponential Moving Average and 20-day high and low breakout levels. Higher timeframe inputs detect hourly F
The MTF Signal Strategy is designed for 1-minute charts to identify trade entries using multi-timeframe EMA trends, Opening Range Breakout (ORB) levels, key daily high/low levels, and custom pivot zones. It generates trade signals on bar closes when price alig
The LSD-15 indicator detects liquidity sweeps on 15-minute crypto charts by identifying price movements that exceed a threshold from swing highs and lows. It plots swing high and low lines on the price chart and highlights sweep candles in color. Multiple conf
This indicator applies Omori's law from seismology to post-crash volatility. It flags a mainshock when price falls a set percentage from a recent high, then plots a power-law decay envelope from elapsed bars, productivity, time offset, and decay exponent. Afte
The ARCStage indicator calculates and color-codes Stan Weinstein's four market stages using the slope of the 30-week SMA and the price position relative to it. Stage 1 appears in light gray during basing consolidation, Stage 2 in light green during advancing,
This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi
This indicator overlays technical analysis tools designed for gold scalping onto the main price chart. It plots configurable fast, medium, and slow simple moving averages alongside fast and slow exponential moving averages. Market session backgrounds identify
This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter. Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters
The script provides a combined technical and fundamental stock analysis tool on the price chart. It plots price forecast lines for bear, base, and bull scenarios derived from free cash flow data. It generates breakout signals when price exceeds recent highs, v
Normalized Market Monitor scales the price action of two distinct symbols into a normalized oscillator ranging from -100 to +100 over a chosen lookback period. Plotted in a separate pane, the indicator enables traders to observe and compare the relative positi
This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight
This strategy implements a self-calibrating WaveTrend oscillator with rolling percentile-based dynamic entry zones rather than fixed levels. It enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zone
This indicator measures market deleveraging and liquidation stress on a 0 to 100 scale, plotted in a separate pane. It evaluates extreme downside price velocity via standardized log returns, volatility expansion using an ATR Z-score, a rolling stress bar casca
This Pine Script v5 strategy calculates two simple moving averages with customizable fast and slow lengths and plots them on the price chart. It generates long signals on fast MA crossover above the slow MA and short signals on the reverse crossover. The strat
This indicator plots the previous trading day's high and low on the price chart, together with the developing high and low of the current session. It reads the last closed daily high and low and locks those values at the start of each session. A session window
This indicator plots a two-part B-Xtrender oscillator in a separate pane. The short-term line is the RSI of the difference between a fast and a slow EMA, shifted by 50, then smoothed with a T3 average. The long-term line is the RSI of a trend EMA, also shifted
This indicator measures how far price sits from a simple moving average, expressed as a percentage, then smooths that difference and plots it as an area in a separate pane. Green marks a positive deviation and red a negative one, so the series acts as a direct
The Asset Rotation System evaluates relative trend strength and rotational performance across up to six selectable assets. It calculates trend classification based on user-selected technical indicators including RSI, CCI, SuperTrend, DMI, and Parabolic SAR. Th
Apex Signal Matrix Pro is an overlay indicator that scores long and short bias from trend, momentum, structure, participation, and risk-reward. It plots entry and strong-entry signals when a smoothed score clears thresholds and the directional spread exceeds a
This multi-timeframe indicator detects order blocks on the HTF M30 timeframe and generates precise entries on the LTF M1 timeframe using break of structure, displacement, and fair value gap concepts. It requires liquidity sweeps for confirmation and signals en
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.