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.
Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad
This strategy plots Fibonacci retracement levels from a rolling high-low range and trades long only on the price chart. It enters when price is above the first Fibonacci level, volume exceeds its moving average, and price is above a simple moving average. It c
This price-chart indicator plots a sine weighted moving average and a Laguerre filter, each colored by bullish or bearish state. It can mark strong signals when both are aligned and weaker signals based on the SWMA alone, and it can recolor candles as strong b
This strategy plots a 200-period simple moving average on the price chart and opens a long position when the previous bar’s close crosses above that average. Each entry uses one percent of account equity. It closes the position when price reaches 2.5 times the
EMA Lib is a Pine Script v5 library that provides a custom exponential moving average calculation function. The library exports a single function that takes a period length parameter and computes an exponential moving average on close prices. To initialize the
This strategy combines five selectable mean-reversion and swing trading sub-strategies into a unified system. It generates entry signals based on conditions like Internal Bar Strength drops, consecutive lower closes into Tuesday, multi-day channel breakdowns,
This indicator estimates how many bars typically pass before a custom skew measure falls back below its exponential moving average. It builds the skew from smoothed upside and downside true-range deviations, then applies five fixed EMA lengths from 2 to 110. O
Calculates an Investor's Business Daily (IBD) style Relative Strength (RS) rating and plots an RS line directly on the price chart. It evaluates price performance against a comparative benchmark index (defaulting to NSE:NIFTY). Optional visual markers highligh
This indicator calculates the Relative Strength Index and Money Flow Index to identify potential market reversals. It plots the RSI oscillator in orange and the MFI line in blue on a separate pane. Horizontal lines mark overbought at 70 and oversold at 30 for
This strategy plots four EMAs (5, 21, 50 and 200), a Bollinger Band ratio, Awesome Oscillator and ADX on the price chart. It generates long entries when EMA alignment, BB expansion, AO strength and ADX trend strength align, then exits using a percentage-based
This overlay strategy marks market-structure swings and breaker blocks on the price chart. It can limit a breaker to the candle body, use one or two candles in the same direction, and stop the block at the first break of its center line. Entries can be restric
This indicator plots Bitcoin mining difficulty from the Quandl BCHAIN/DIFF dataset. The script calculates the difficulty metric using the quandl function and displays it as a line plot in a separate pane. It provides historical data on mining difficulty levels
Crypto Market Correlation plots rolling correlations between the chart's closing price and copper, the S&P 500, the DAX 30, EUR/JPY, WTI crude, and gold. It draws six colored lines in a separate pane and places a short name label at the latest value of each se
The Stochastic RSI Screener calculates the Relative Strength Index and Stochastic RSI values (K and D lines) for up to five user-defined symbols. It retrieves the current price, RSI, K-value, and D-value for each selected asset using security calls and display
Fedra Algotrading Strategy Premium is an intraday trend-following strategy designed for sub-30-minute charts. It combines dual moving averages with optional Supertrend, MACD, and market breadth ratio filters to trigger long and short positions. The script incl
This strategy looks for long entries when the MACD line exceeds its signal line by a set amount and volume rises by a chosen percentage. It places one buy limit either a set number of pips or a percentage below the previous close. Exits start with a percentage
This indicator plots horizontal liquidity lines on the price chart at swing pivot highs and lows. It detects pivots by checking local maxima and minima in the high and low arrays. Lines are drawn at the pivot levels with customizable colors, styles, and a maxi
Calculates and plots relative strength metrics for major currencies in a separate pane. It evaluates cross-pair price action or technical indicators like RSI, CCI, and Stochastics across data feeds from chosen forex brokers. Inputs allow users to select displa
This strategy overlays Donchian Channels and higher-timeframe exponential moving averages on the price chart to generate trading signals. It calculates an upper, lower, and median Donchian band alongside 240-minute EMAs fetched specifically for BTCUSDT. When p
This strategy detects pivot highs and pivot lows with a left-bar and right-bar window, then filters those swings into higher highs and lower lows. It also derives support and resistance from higher-high, higher-low, lower-low and lower-high points and draws on
This indicator combines Bollinger Band Indicator, High Price Indicator and Relative Strength Index on the price chart. It calculates BBI using length, standard deviation and pivot settings, detects HPI based on recent bars when current bar is red, and includes
This indicator plots the relative strength index in a separate pane. It calculates RSI from the selected source and length with Wilder-style RMA smoothing, then draws the line against horizontal bands at 70, 50 and 30, with gradient fills in the overbought and
This indicator detects shorting opportunities on cryptocurrency pairs during broader market downturns. It uses Binance BTCUSDT data across a rolling window to establish a bearish market regime, checking BTC moving average, ADX, and RSI filters. When the regime
Plots historical trade records as visual buy and sell labels directly on the price chart. It matches recorded trade dates and symbols against the active instrument, calculating cumulative volume-weighted average buy and sell prices with horizontal reference li
This indicator estimates volume delta using lower timeframe data and maps buying and selling pressure across horizontal price stripes directly on the price chart. It divides recent price action into discrete rows, accumulating positive and negative delta over
Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes. It filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit
This indicator plots two customizable moving averages directly on the price chart. Users can select independent lengths, colors, and calculation types, including SMA, EMA, WMA, VWMA, and RMA. When the faster moving average crosses the slower moving average, th
The 52-Week High indicator plots the highest price over an adaptive lookback period of up to 252 trading bars on the price chart. It calculates the 52-week high using the highest high value and displays it as a line with optional label showing distance from th
This multi-timeframe indicator combines higher-timeframe trend analysis, MACD divergence detection, and short-term oscillator timing to identify trading opportunities on GBPJPY. It evaluates trend direction using a 4-hour EMA, locates MACD divergences with Zig
This indicator implements a trailing stop and breakout logic based on average true range calculations, similar to established UT Bot methods converted to Pine Script version six. It plots directional buy and sell labels directly on the price chart alongside a
This strategy plots Kaufman's Adaptive Moving Average on the price chart and trades when that average rises or falls for a set number of bars. Longs require the close above an optional long-term simple moving average; shorts require the close below it. Directi
This indicator plots six exponential moving averages, three simple moving averages, and a session volume-weighted average price directly on the price chart. It signals through chart labels triggered by moving average crossovers, including fast and slow exponen
This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least
Swing Trade Analyzer - S&R Levels identifies key support and resistance levels directly on the price chart using pivot high and low points. It filters duplicate price levels and offers optional multi-timeframe confluence analysis against higher timeframes like
Algo is an indicator that identifies and plots dynamic support and resistance zones directly on the price chart using pivot highs and lows. It calculates zone thickness using an Average True Range (ATR) multiplier and supports pivot detection from standard pri
This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari
This indicator combines a 200-period simple moving average, relative strength index, and Ichimoku cloud components to evaluate market conditions and generate bullish and bearish signals. It plots fixed trade levels including entry, stop loss, and multiple targ
GEO P Momentum Buy/Sell Signals is an indicator that identifies trade setups by combining Bollinger Band challenge logic with trendline or range breakouts. It evaluates price structure using multi-timeframe Tide and Wave hierarchy alongside RSI, DMI, ADX, EMA
This strategy buys near a recent range low when a pin-like candle and a combined amplitude and volume score pass a threshold. Short moving averages with an ATR buffer detect a bearish stack, which raises the required score and tints the chart background. It op
Anchored Volume Profile indicator builds a volume-by-price histogram over a lookback window by proportionally distributing each bar's volume across its high-low range. It plots horizontal boxes for volume, highlights the POC, and draws Value Area (VAH/VAL) rai
Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi
This strategy overlays externally supplied boolean flags on the price chart rather than calculating them from price. It plots large triangles for QC buy and sell, circles for dark pool, diamonds for order flow, and squares for stop hunt, each with optional num
This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v
This indicator draws higher time frame sweeps on the price chart. It displays sweeps from multiple timeframes such as 15, 60, 240 minutes, 1 day, 1 week and 1 month. Users can enable or disable each timeframe, specify the number of sweeps to show, and map them
This strategy calculates up to three Double Exponential Moving Averages (DEMA) and plots them on the main price chart. It executes long entries when the fast DEMA crosses above the medium DEMA while confirming the direction of an optional third DEMA, and enter
This overlay indicator draws a watermark at the top of the price chart showing the ticker and timeframe, plus an optional instrument description, sector, or industry. Display mode chooses description only, sector and industry, or both. Separate colors set the
This indicator detects market structure points, Break of Structure (BOS), and Change of Character (CHOCH) for Smart Money Concepts (SMC) analysis. It calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher
This price-chart indicator combines Oliver Kell moving-average phases with Minervini volatility contraction. It plots EMA 10, 20, 50 and 200 and can require the SMA 50, 150 and 200 trend template. It flags a wedge pop above EMA 10 after an EMA 20 cross, pullba
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.