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.
The SuperTrend indicator computes upper and lower bands from ATR values using a multiplier on a selected source such as HL2. It maintains adaptive trend lines that shift color from green to red based on price position relative to the bands. The green line func
Capital41 Fusion Scalp is an overlay indicator that identifies high-confluence setups by combining four core conditions: EMA trend direction, RSI momentum, Williams %R levels, and ATR with volume expansion. Bullish and bearish signals are plotted on the chart
This indicator identifies institutional Candle Range Theory (CRT) patterns directly on the main price chart. It detects two-candle rejection patterns, three-candle classic setups, inside bars, and outside bars. Users can enable time-anchored 4-hour CRT schedul
TheStrat Suite is a multi-timeframe price-action indicator for TradingView that implements Rob Smith's TheStrat methodology using Pine Script v6. It detects patterns including inside bars, hammers, shooters, failed 2s and outside bars across six configurable t
Stochastic Ensembling of Outputs estimates an autoregressive coefficient and a residual scale from first differences of a chosen source. It then builds sixteen colored Gaussian noise paths from those parameters and adds each path to a target series. The indica
Stochastic W%R is a momentum oscillator that combines Stochastic smoothing techniques with Williams %R concepts. It calculates a smoothed K line alongside a D signal line derived from a simple moving average of K. The indicator plots in a separate pane with bo
CB LinReg calculates linear regression channels across primary and multi-timeframe periods. It computes linear regression lines along with standard deviation channel bands to analyze price trends and potential reversal zones. Settings allow users to adjust pri
This indicator plots a short-term 50-period exponential moving average (EMA) and a long-term 200-period EMA directly on the main price chart. It generates long and short signals when price crosses the 50 EMA in alignment with the broader trend defined by the r
This strategy draws on the price chart and combines a triple EMA stack, a volume spike with a minimum price move, and a MACD line-signal crossover. It enters long or short only when at least the chosen number of those three signals agree, with an optional RSI
polyglot_lib is a Pine Script utility library providing shared technical analysis functions and calculations. It includes flexible moving average algorithms for SMA, WMA, and EMA, custom rolling moving average helpers, a Relative Liquidity Index derived from R
This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by
This indicator evaluates and displays market trend direction across four user-defined timeframes simultaneously. For each timeframe, it calculates a moving average and compares the timeframe close price against it to determine a bullish, bearish, or neutral bi
This indicator maps smart money structure on the price chart. It labels internal and swing breaks of structure and changes of character, and it can color candles by the detected trend. It draws internal and swing order blocks filtered by ATR or cumulative mean
The Nazilli SuperTrend indicator combines an ALMA moving average with multiple SuperTrend configurations to identify trend changes on the price chart. It plots the ALMA line in blue and red colors for up and down trends, along with SuperTrend lines for four di
This strategy plots three swing lines on the price chart. A small swing marks the current high after one higher high, or the current low after one lower low. A medium swing requires two consecutive rising highs or falling lows, and a large swing requires three
This indicator calculates multi-timeframe metrics and presents them in an on-chart table panel. It inspects daily (1D) and weekly (1W) higher-timeframe data to analyze swings, support and resistance levels, RSI momentum, and relative volume conditions. The pan
This indicator plots six exponential moving averages on the price chart and places buy and sell labels when the first EMA crosses the third. It calculates MACD from fast and slow averages, with selectable SMA or EMA smoothing, and classifies the histogram as r
This indicator plots multiple EMA lines and MACD on the price chart. It generates buy signals on golden cross entry when EMA 3 and 13 crossover coincides with MACD golden cross within three bars. It generates sell signals on death cross entry under the same th
This strategy overlays the price chart to generate trading signals by combining Quantitative Qualitative Estimation (QQE), a custom SuperTrend, and a CCI ATR trend metric. It colors candles green or red according to combined trend alignment and enters long or
This strategy combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5
Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h
Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing
This indicator detects Beat the Market Maker (BTMM) second leg confirmation patterns directly on the price chart. It evaluates first leg size in pips, sets maximum pullback thresholds, and requires multi-bar confirmation for continuation setups. Trend bias is
This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti
This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr
Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r
Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained
The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di
The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o
This indicator fits a straight least-squares regression over a user-set lookback and wraps it in inner and outer channels built from residual standard deviation rather than raw price deviation. It reports the live z-score of price versus the fitted fair value
MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM
This strategy calculates and plots three double exponential moving averages (DEMA) on the price chart using lengths of 8, 24, and 0. It generates long signals on DEMA crossovers and short signals on crossunders. Positions are entered based on these signals and
This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o
This strategy combines Stochastic, RSI, exponential moving averages, Average True Range, and Fibonacci levels to generate trend confirmation and scalping signals, specifically designed for XAUUSD (Gold). It evaluates oversold and overbought conditions alongsid
This indicator detects and plots dynamic supply and demand zones directly on the price chart by combining Volume Profile peaks, daily equal highs and lows, and fair value gap levels. Nearby levels are merged according to a user-defined dollar threshold. The sc
Alper is a multi-indicator trading strategy combining a WaveTrend oscillator, RSI, and Squeeze Momentum logic based on Bollinger Bands and Keltner Channels. Operating within a user-defined backtest time window, it plots WaveTrend lines, overbought and oversold
Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use
This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions
The ATRN indicator calculates a normalized version of the Average True Range using a custom RMA-based true range computation for efficiency. It normalizes the ATR value between the minimum and maximum over a lookback window of 10 times the length parameter. Th
This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable
This indicator marks inside bars, candles whose high and low sit entirely inside an earlier parent bar’s range, including nested sequences of inside bars. It stores the parent bar’s high and low when a new inside-bar sequence starts and draws those levels on t
Interpolation is a Pine Script utility library providing mathematical interpolation and easing functions, including linear and quadratic transitions. Designed for signal processing, custom smoothing algorithms, and sigmoid transformations, each exported functi
This indicator colors chart bars based on a Triple Exponential Moving Average (TEMA) applied to candle body volume (candle body multiplied by volume). It categorizes market flow into trending bullish, trending bearish, or non-trending messy conditions based on
This Pine Script indicator plots a higher-timeframe exponential moving average on the price chart. The script calculates the EMA using a configurable length and timeframe, then applies request.security to retrieve the value without repainting. It draws the lin
HTF Candles & Pivots is an indicator that overlays high time frame candles and pivot points on the price chart. It plots customizable candles with options for thickness, wicks, fill, history shift, and labels including day, average, and TD sequence. The script
This script is an indicator that plots a volume profile anchored to pivot points on the trading chart. It calculates the point of control (PoC), value area high (VAH), value area low (VAL), and displays them as horizontal lines and backgrounds. The volume prof
This strategy calculates higher-timeframe price levels and multi-timeframe Bollinger Bands to identify price zone interactions directly on the main chart. It uses daily source prices and 240-minute Bollinger Bands, styling them with dynamic gradient coloring b
This indicator combines a Nadaraya-Watson kernel regression estimator with moving average trend overlays. It recalculates kernel-weighted lines across historical bars on the latest candle, plotting reversal arrows when the curve direction shifts. Additionally,
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.