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 strategy identifies long gap-and-go breakout opportunities on intraday US stock charts. It filters equities across three sequential stages: verifying fundamental criteria (minimum three-year average ROCE and market capitalization via financial data reques
This indicator plots historical price quantile curves for Bitcoin directly on the price chart, modeled after Benjamin Cowen's paper on asymmetric tail curvature. It calculates seven fixed-coefficient quantile bands from Q1% to Q99% based on days elapsed since
FxHD Strategy v2.0 is a Fibonacci multi-timeframe strategy drawn on the price chart. It reads a higher timeframe, defaulting to four hours, and sets bias with CRT kill zones, the last two candles, dynamic CRT, or market structure, plus a fallback method. It pl
MarketMerge generates an on-chart MarketSurge-style data panel featuring CANSLIM analysis, fundamental metrics, relative strength ratings, and key technical overlays. It calculates composite ratings based on multi-timeframe relative strength against a benchmar
This strategy evaluates higher-timeframe four-hour ADX momentum and RSI conditions to generate long trades on lower timeframes like 15 minutes. Entries trigger when 15-minute RSI drops relative to four-hour RSI under specific directional strength conditions. P
This strategy trades long breakouts of the highest high over a user-set period. It enters when the close is above that prior high and the position is flat, then sizes the order from account equity, a risk percentage, and ATR times a multiplier. It exits when t
Simple Strategy is an educational strategy script designed to demonstrate automated order messaging and webhook alerts. It executes on the main price chart, entering long when the current bar closes above the previous close and entering short when it closes be
This strategy calculates volume-weighted Relative Strength Index (RSI) values across multiple timeframes, specifically 15-minute and daily periods. It averages the resulting short- and long-term RSIs into an oscillator to identify extreme overbought and overso
This indicator combines multiple momentum and volume metrics into a single separate pane. It calculates a WaveTrend-style stochastic oscillator derived from Heikin Ashi values, a volume-weighted Money Flow Index (MFI) centered at zero, an exponential-smoothed
Mxwll Suite is a comprehensive price action and Smart Money Concepts (SMC) technical indicator that plots market structure, key price levels, and order flow zones directly on the main price chart. It detects internal and external market structures including Br
The Wiseplat Sideways indicator identifies dynamic consolidation periods and highlights ranging price action directly on the chart. It evaluates price variation across consecutive bars against a configured percentage threshold to detect sideways movement. When
This indicator identifies trend-following breakout opportunities by combining directional movement, trend channels, and multi-period price extremes. It calculates an ADX-colored weighted moving average, a linear regression trend filter based on a volatility ch
This indicator aggregates buy and sell signals from four technical tools: Exponential Moving Averages, Bollinger Bands, Fisher Transform, and MACD. It evaluates specific price conditions and crossovers to classify market states into Strong Buy, Weak Buy, Stron
The script VOIDRLM combines multiple technical analysis tools into a single overlay indicator on the price chart. It calculates multi-timeframe pivot points, volume-weighted average price (VWAP), customizable moving averages, moving average clouds, supply and
This indicator plots multiple types of moving averages on the price chart including SMA, EMA, ALMA, EPMA, and others. Users select the MA type and can apply the same parameters to all or each individually. Key inputs include offset, gamma, smooth, sigma, and w
Zeroline is a trend-following strategy designed around the No Nonsense Forex (NNFX) methodology. It combines a primary trigger and confirmation system (Didi index), a secondary confirmation (Kuskus), a volume filter, and a Kaufman Adaptive Moving Average (KAMA
This long-only momentum strategy combines the Relative Strength Index with the Moving Average Convergence Divergence indicator. It opens a long trade when the RSI has been in oversold territory within the last five bars and the MACD line crosses above its sign
This indicator calculates the relative strength of a chart symbol relative to a benchmark index and plots the resulting line directly over the price chart. It highlights new relative strength highs, new lows, and instances where relative strength reaches a new
This strategy overlays Ichimoku lines and a cloud on the price chart, plus a stochastic RSI and an upper band from a Hull moving average and standard deviation. It opens one long inside a date window when the cloud is green and price is above the cloud and con
This indicator combines the Stochastic oscillator, Relative Strength Index (RSI), and MACD to detect aligned momentum signals. A bullish state occurs when Stochastic rises above 20 and stays below 80, RSI is above 50, and the MACD line is above its signal line
This indicator plots average-range high and low levels on the price chart. It averages the previous bar range with a simple moving average and projects an upper and lower level for the current period from the bar's high, low, and close. Separate counts, lookba
This strategy calculates Bollinger Bands and monitors band width relative to a historical moving average to identify low-volatility squeeze regimes. It draws upper, lower, and basis bands directly on the price chart while shading squeeze periods in yellow. A l
Translates key reference levels between CME E-mini S&P 500 futures (ES) and cash equity equivalents (SPY or SPX), displaying them directly on the price chart. When applied to an ES chart, it projects cash session highs, lows, opens, prior period levels, and ga
The Xsodus Supertrend Strategy is a long-only Pine Script strategy that overlays the Supertrend indicator on the price chart to generate buy signals for long positions when the trend is up. It calculates the Supertrend line using a configurable length and mult
This strategy calculates a Moving Average Convergence Divergence (MACD) and signal line using 12 and 26-period simple moving averages requested from a fixed 5-minute timeframe. It enters a long position when the MACD line crosses above the signal line while th
Combines trend-following moving average entries with an astronomical cycle filter. Entries trigger on a rising EMA filter and are gated by Vedic astronomical events like eclipse windows and Vishti karana. The strategy offers two distinct exit styles: a trend m
Pivot Trendline Trading is an automated strategy that identifies pivot-constrained trendlines and calculates quality scores for potential setups. It uses an Efficiency Ratio and EMA cross count to determine trending regimes before entering on trendline breakou
This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co
This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for
This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode
This indicator screens many symbols for close-to-close inside bars, a stricter inside bar that also requires the close to continue in the prior candle's direction. It scans either a pasted symbol list or one page of a preset Nifty index list, with a hard limit
Breakout AVAAI BITGET is a cryptocurrency breakout strategy that identifies entry points using price channels alongside ATR, MACD, ADX, and volume trend filters. Long and short entries trigger when price breaches Donchian-style highest highs or lowest lows und
This overlay marks order blocks on the price chart at the origin of an impulsive move when that candle anchors a Fair Value Gap. Several recent swings are tracked so clustered highs and lows each keep a block. Detection uses the first gap off a swing or a stru
SuperThree is an enhanced Supertrend indicator designed to identify uptrends, downtrends, sideways consolidation, and counter-trend momentum. It calculates upper and lower bands based on Average True Range (ATR) and a multiplier factor. Visual fills on the pri
This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti
This indicator calculates the opening range high and low for the first N minutes of a user-defined session. It plots the ORB levels on the price chart and emits long breakout signals when price closes above the ORB high and short breakout signals when price cl
This script is a simple exponential moving average crossover strategy designed as an example test script. It calculates a 14-period fast EMA and a 28-period slow EMA, plotting both lines directly on the price chart. The strategy triggers a long position entry
I2.0 SM Radar plots Smart Money Concepts zones on the price chart for crypto. It marks bullish and bearish Order Blocks, Fair Value Gaps with age-based fading, liquidity zones at equal highs and lows, and previous day week month highs and lows. It also detects
This indicator calculates a custom CSI value using price body ratio, volume score, and range z-score normalized by ATR. It generates bull and bear sentiment signals when CSI, RSI below 60, and Bollinger Band conditions align simultaneously. Bull signals trigge
The Adaptive Window Size indicator computes a quadratic signal from the chosen source series using absolute differences normalized by total variation. This signal feeds into an exponential formula to produce an adaptive window size value. The script plots both
This indicator calculates the Chande Momentum Oscillator by comparing the sum of price gains to the sum of price losses over a defined lookback period. It plots the resulting oscillator line in a separate pane alongside configurable upper, lower, and zero refe
This indicator implements Tom DeMark's TD Sequential methodology on the price chart to detect trend exhaustion and reversal zones. It counts the Setup phase of nine consecutive bars comparing closes to four bars prior, tracks setup perfection, and advances int
This strategy automates dollar-cost averaging entries based on multi-timeframe Bollinger Bands and mean reversion logic. It calculates an exponential moving average and standard deviation bands using a user-defined timeframe. When the price crosses under the l
This indicator identifies Smart Money Concepts market structure across higher and lower timeframes directly on the main price chart. It detects Break of Structure, Market Structure Shifts, Order Blocks, and regular or inverse Fair Value Gaps. Entry signals are
This overlay indicator marks market structure on the price chart. It detects swing highs and lows with a configurable lookback, then labels Break of Structure only after a two-candle retracement check. It also marks Change of Character and a dual Change of Cha
This indicator detects classic price structure on the chart by finding swing pivot highs and lows over a user-defined period. It draws connecting lines and labels for lower lows, lower lows with lower highs, higher highs, and higher highs with higher lows, plu
This indicator overlays external Bitcoin signal markers on the price chart. At a user-set minute poll interval it is meant to draw up or down triangles for buy and sell decisions and a label with the decision, strength and confidence. In the published code tho
This indicator calculates directional cumulative volume delta across price swings identified by an imported ZigZag library. It tracks bar-by-bar volume signs based on price direction and evaluates net volume across individual price legs directly on the price c
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.