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.
Calculates exponential moving averages for fast, pivot, and slow lengths along with optional 50, 100, and 200 simple moving average context lines. It visualizes bullish and bearish ribbon fills on the main price chart alongside MACD calculations to generate ea
Fractals v2 identifies custom swing highs and swing lows across configurable left and right bar periods and visualizes them on the price chart. It plots extended swing lines, labels, boxes, and optional volume or open interest delta data for crypto futures. Tr
This indicator combines Chaikin Money Flow (CMF), a SuperTrend baseline, and an Average True Range (ATR) calculation inside a separate sub-pane. It calculates a standard 20-period CMF plotted as a line and colored histogram columns around a zero baseline, trac
This indicator overlays fair value gaps, market-structure breaks, and two Fibonacci levels on the price chart. It draws bullish, bearish, and mitigated gap zones and can shrink mitigated gaps. It marks break of structure and change of character lines, with an
This indicator plots a Bessel-weighted moving average on the price chart. It applies a finite impulse response window whose weights follow a Bessel-style function of a selected order, then normalizes those weights and averages the chosen source over the lookba
This indicator draws higher-timeframe candles on the price chart so traders can compare a larger timeframe with the current bars. It can show regular candles or Heikin Ashi, with optional automatic timeframe selection and a second level. A stats table and a ti
This indicator calculates standardized trend strength and historical volatility to estimate position sizes. It computes the differences between three user-defined EMAs standardized by price using MACD logic, while historical volatility is derived from the stan
This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-
Path of the Planets is an overlay indicator that calculates and plots planetary longitudes and declinations directly on the price chart using VSOP87, ELP2000-82, and Meeus astronomical algorithms. It supports both geocentric and heliocentric tracking for indiv
This indicator tracks intermediate market cycles inspired by Linda Raschke's approach using daily NYSE TICK statistics. It fetches daily high, low, and close values for the TICK index via security requests and computes moving averages of the highs and lows. It
This indicator calculates and plots the standard Aroon Up and Aroon Down lines in a separate pane. It tracks the number of bars since the highest high and lowest low occurred over a specified lookback period, expressing the values as percentage levels between
RSI Divergence combines the Relative Strength Index (RSI) and Money Flow Index (MFI) into a single indicator plotted in a separate pane. It calculates standard RSI from price inputs, highlighting overbought zones in red and oversold zones in green. Simultaneou
Zen EMA Pullback Patterns identifies pullback formations relative to an Exponential Moving Average on the price chart. It detects 3-bar pullbacks consisting of three consecutive bearish bars above the EMA or bullish bars below it, as well as 4-bar micro channe
This library exports one function, custom_ma, which returns a 14-period exponential moving average of a supplied source series. It declares no inputs, so the length stays fixed at 14 and the caller chooses the series. It plots nothing and does not generate ent
This feature test indicator calculates and plots a 5-period simple moving average (SMA) using a user-selected price source. It draws the resulting moving average line in a separate window below the main price chart. The primary input setting allows traders to
This indicator plots the Money Flow Index in a separate pane and marks regular and hidden bullish and bearish divergences between price pivots and the oscillator. It builds the index from positive and negative money flow, then finds pivot highs and lows using
Burgle Bounce is a price-chart strategy that treats a move toward one of up to four simple or exponential moving averages as a test when price comes within a user-set percentage of ATR, then exits toward a target average under a separate error margin. Longs an
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses
This indicator applies John Ehlers' roofing filter to a chosen price source in a separate pane. A high-pass stage removes cycles longer than the high-pass period, then a fixed super smoother smooths the result and a second high-pass produces a comparison serie
The Shooting Star Finder indicator detects shooting star Japanese candlestick patterns directly on the main price chart. It evaluates individual candles using relative mathematical ratios of Open, High, Low, and Close values. The script tests whether the candl
Greeffer RSI Strategy is a trading strategy that generates buy and sell entries based on Bollinger Bands and RSI levels. It places stop orders at upper and lower Bollinger Bands on band crossovers, and adds positions when RSI reaches extreme levels. Users can
This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co
Smart Money Concepts [LuxAlgo] X CDC overlay indicator visualizes market structure and smart money concepts directly on the price chart. It detects real-time internal and swing market structure events including Change of Character (CHoCH) and Break of Structur
This overlay indicator marks CALLS and PUTS labels on the price chart when a strict boolean gate of price structure, momentum, volatility, breadth, and candle confirmation all pass. It plots an EMA ribbon with cloud fill, session-anchored VWAP and standard-dev
This strategy executes trades based on candlestick engulfing patterns aligned with a 200-period exponential moving average trend filter. It enters long positions when a bullish engulfing candle follows three consecutive bearish candles while price trades above
This indicator determines daily and weekly bias using higher-timeframe structural levels and liquidity targets based on TTrades concepts. It plots period separators, tracks previous highs and lows, and changes level colors when liquidity is raided. An on-scree
This is a Pine Script strategy that executes a fixed historical backtest on BTC-USD. It places multiple manual trades using strategy.order at specific timestamps and prices, with corresponding close conditions based on time. Some trades are long and some are s
Simple Long Term Strategy plots five exponential moving averages on the price chart and trades crossovers between selected averages. It enters long when the first selected average crosses above the fifth and enters short on the opposite cross, only inside the
This indicator builds an external signal series for the PineCoders backtesting and trading engine and plots it in a separate pane. Comments state that a built-in MACD setup is the template. It encodes filter state, long and short entries, exits, and optional s
This indicator overlays background and color signals on the price chart based on Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) conditions. It calculates RSI alongside a high-based MACD line and defines timeframe-specific overbo
TPCharts Alert EMAs Standard calculates three multi-timeframe Exponential Moving Averages using a user-selected resolution, defaulting to daily data. It computes a shortest, shorter, and longer EMA configured through custom length inputs. The script plots thes
Calculates a composite Trend Factor ranging from -100 to +100 alongside a confidence score from five weighted evidence blocks: linear regression slope, trend strength metrics (ADX, Efficiency Ratio, R-squared), swing market structure, volatility quality, and e
Nexural Transform is an oscillator indicator calculated in a separate pane that combines Fisher Transform mechanics with Cumulative Volume Delta momentum. It integrates volume-weighted price transforms, CVD acceleration, and order flow features like absorption
The Institutional Order Flow Strength Classifier identifies bullish and bearish order blocks triggered by market structure breaks confirmed through pivot highs and lows. It calculates a strength score for each order block based on price displacement and relati
This strategy plots a Keltner channel from an EMA basis and ATR bands on the price chart. It enters long when price crosses back above the lower band while trading above a slower trend EMA, and short when price crosses back below the upper band while below tha
This indicator calculates and plots the Relative Strength Index (RSI) alongside an Exponential Moving Average (EMA) of the RSI in a separate pane. It features a reverse RSI calculator that determines the price required to reach specific RSI targets, such as ov
This strategy marks an n-bar pivot low and treats it as confirmed when the close crosses above that bar's high. On confirmation it stores a sell-to-close level at the pivot low, a standard-deviation trailing stop, a retrace level for adding size, and a rounded
LunarTick Levels plots key daily reference levels and multi-timeframe simple moving averages directly on the price chart. It highlights key price points including the Opening Print, Previous Day High and Low, and Overnight High and Low. Additionally, it projec
This indicator calculates Multi-Timeframe Moving Average Convergence Divergence (MACD) and Chaikin Money Flow (CMF) combined in a separate pane. It plots the MACD, signal line, histogram, and an auto-scaled CMF line. Buy markers trigger when a bullish MACD cro
This strategy draws optimal trade entry zones on the price chart from confirmed swing pivots. A later swing high after a swing low defines an up impulse, and the reverse defines a down impulse. It then marks the 0.62 to 0.79 Fibonacci retracement of that swing
This indicator plots raw volume or dollar volume on a logarithmic or linear scale in a separate pane below the main chart. It calculates Bollinger Bands around the chosen volume series using standard deviation and selectable moving average smoothing types, inc
This indicator calculates a customizable weighted blend of the Relative Strength Index and the Money Flow Index in a separate pane. It calculates a smoothed moving average of the hybrid line to show momentum direction, changing the hybrid line brightness when
This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav
This strategy trades crossovers between a weekly-anchored Volume Weighted Average Price (VWAP) and a 4-hour 90-period exponential moving average. It plots both indicators directly on the price chart. A long position is opened when weekly VWAP crosses above the
This indicator draws up to three named market-session boxes on the price chart, defaulting to London, New York, and Tokyo. Each session has its own time window, label, color, optional extension of the box and end line, experimental Fibonacci lines, and an open
This indicator calculates standard Relative Strength Index values along with a simple moving average filter. It plots the momentum line in a separate pane alongside customizable dotted horizontal reference lines for overbought and oversold thresholds. Users ca
Capital41 Duo overlays RSI and Williams %R on the price chart and flags agreement between them. It paints a dark green background when both are oversold and a red background when both are overbought, otherwise gray. With turn confirmation enabled, those states
This indicator creates a scanner dashboard on the price chart for 16 symbols including EURUSD, GBPUSD, XAUUSD, BTCUSD and others. It displays institutional bias using colored icons for bullish, bearish, neutral and wait signals. The dashboard supports three co
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.