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.
A separate-pane indicator that measures buying versus selling pressure from volume. Over a chosen lookback, default 20 bars, it sums volume on up candles and on down candles and plots the difference as a share of the total on a scale from minus 100 to plus 100
Expectancy Lab plots fast and slow exponential moving averages on the price chart to generate crossover signals. It simulates one trade at a time using an ATR-based stop loss and a risk-to-reward target multiplier. The script tracks historical trade outcomes t
SMC Context Overlay ingests context data inputs to render Smart Money Concepts elements directly on the price chart. It visualizes market structure events such as Break of Structure (BOS), Change of Character (CHOCH), support and resistance levels, as well as
A long-only strategy that builds a volatility envelope from an EMA centre and an ATR width using a custom type and a method. It enters long when the close crosses above the centre plus a multiple of the width. It exits when the close falls below the centre, or
This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values
This indicator calculates and plots a standard exponential moving average (EMA) directly on the main price chart. Users can customize the calculation period length and the input price source. The script renders a single orange line overlaying price action to a
The 7/19 EMA Crypto strategy calculates two exponential moving averages using lengths 7 and 19. It plots bullish crossovers as long signals and bearish crossovers as short signals directly on the price chart. Long positions enter on bullish EMA crossovers and
An indicator that estimates per-bar delta from open, high, low, close and volume, scaling volume by where the close sits within the bar range. It rebuilds a session profile binned by price and draws it as teal and orange horizontal bars to the right of price,
DEPV2 B1 Seviyeler calculates and plots key high-timeframe price levels across weekly, monthly, and yearly periods. For each period, it tracks the current open, high, and low, along with the previous period's high, low, and close values. The indicator uses cus
A backup copy of a long-only crypto spot strategy built on multi-timeframe pivot support and resistance. It enters when price retests a support zone and holds, with an option to flip broken resistance into support. Further switches add moving average, SuperTre
This indicator scans and ranks a custom watchlist of up to nine symbols alongside a benchmark reference symbol by daily ATR percentage. It computes the Average True Range as a percentage of the close using daily timeframe security calls without lookahead bias.
An overlay indicator that draws opening range support and resistance levels on an index chart with a 9 and 21 EMA cross. It follows four option contract symbols against the third resistance and support lines and tracks daily touch flags, with cross times in an
A community imitation of the Market Cipher B oscillator, drawn in a separate pane. It plots a WaveTrend oscillator with a fast line, overbought and oversold levels, and dots at wave crossings, including buy, sell, gold and divergence dots. It also includes a s
Test fixture for a strategy-description simulator, drawn in a separate pane. It replays a generated rule set on the chart candles between a start and end time, with a ticker mapping check and an optional trace to the Pine logs. The comments state the policy: s
An overlay indicator that combines several statistical modules into a single trade planning panel. For a long or short direction, chosen automatically or manually, it proposes an ATR-based stop widened for tail risk, a target R multiple optimised for expectanc
Bmoon System Signals is a fractal-based mirror indicator that overlays on the price chart. It calculates mirrored price levels using two user-defined mirror levels (P1 and P2) with options for logarithmic or arithmetic mirroring. The indicator detects multi-ba
MM Trap Pro is an overlay indicator that detects volume-backed bull and bear trap patterns on the price chart. It calculates a simple moving average of volume and identifies high-volume candles with significant body percentages that fail to break previous high
An overlay indicator built around one selectable moving average, with an optional extra smoothing step. It reads trend from price above or below the average or from a rising average, and marks support and resistance touches within a percentage tolerance, plus
Draws volume order block zones on the price chart and adds three tiers of asymmetric volume signals: a percentage-threshold tier, a one-sided volume tier and a super volume tier based on a multiplier. A cooldown spaces repeated signals. High-volume proximity m
This Pine Script v6 strategy detects classic divergences between price action and the Stochastic oscillator in a separate pane. Bullish divergences trigger long entries when price forms lower lows while %D forms higher lows. Bearish divergences trigger short e
A Pine v5 strategy that uses smoothed moving averages of 21, 50 and 200, W and M pattern recognition with an optional volume check, an RSI midline filter and a time-zone trading session. Targets use extension levels, risk per trade is a base percentage capped
A Pine v5 overlay that estimates liquidation price levels and draws them as horizontal lines on the price chart. When volume is above its 14-bar average, a bullish candle adds a long liquidation line below the low and a bearish candle adds a short line above t
This indicator merges the Quantum Flow v19.1 gold smart money engine with an RSI cross module on the price chart. The RSI module shows faded buy and sell marks on a normal cross and stronger high probability marks when the cross occurs inside a Quantum Flow zo
Plots an exponential moving median on the price chart as a comparison with the standard EMA. For each bar it takes a window of recent prices, gives nearer bars exponentially larger weights, sorts the prices and returns the value where cumulative weight reaches
This strategy executes trades based on Triangular Moving Average (TMA) crossings, Support and Resistance filters (such as Daily Pivots, Anchored VWAP, and 5-day moving averages), and volume or percentage gain criteria. Exits are driven by specific session time
This is a Pine Script v6 strategy template that sets up a trading strategy drawing on the price chart. It includes inputs for data source, fast and slow length parameters, take profit and stop loss percentages, and a time-based trading session filter. The stra
A minimal overlay indicator that calculates an RSI and marks extremes directly on the price chart. A white O appears above a bar when the RSI is above the overbought level, and a white X appears below a bar when it is below the oversold level. RSI length, over
This indicator evaluates Mark Minervini's Trend Template criteria directly on the price chart. It checks eight technical conditions based on 21, 50, 150, and 200-period exponential moving averages, alongside 52-week (260-bar) highs and lows. The script plots t
Intraday Trading is an indicator that combines a fast MACD built from simple moving averages with an EMA structure made of a 50-period EMA of highs, a 50-period EMA of lows and a 15-period EMA of closes. Long and Short labels appear when the MACD crosses its s
This strategy sums the last len closing prices using a while loop then divides by len to obtain an average. It enters long when close exceeds the average and short when below. Positions close automatically on reversal. No stop loss is applied and entries occur
Labels break of structure and change of character events on the price chart, in a simplified smart money concepts style. It tracks both internal structure with short pivots and swing structure with longer pivots, drawing a line and label for each event. Settin
The Talons RSI Divergence strategy detects bullish and bearish divergences by combining RSI values with price pivots. It calculates RSI using a customizable period and identifies pivot highs and lows on both price and RSI with a lookback setting. Bullish diver
This overlay indicator maps crypto price action with a volume profile, anchored VWAP, and optional trend filters. It builds a lookback profile, value area, and acceptance tests around profile levels, and it can show right-side profile boxes. Anchored VWAP and
This indicator plots three exponential moving averages and shades London and New York session hours on the price chart. It generates buy and sell signals when the fast EMA crosses the slow EMA in the direction of the 200 EMA trend filter. Entries require confi
An opening range tool for the price chart. At a set time in a chosen time zone, by default 8:30 in the Bogota zone, it records the high and low of the first five minutes and draws them as a box and lines. During a trading window of 90 minutes it signals a brea
This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti
An indicator on the price chart that smooths a VWAP with a T3 moving average cascade and surrounds it with ATR-scaled volatility bands. The VWAP can reset each session, week or month. Optional bounce signals mark reactions from the outer bands in the direction
A screener that measures statistical dependence between an index and a list of Nasdaq stocks using Hoeffding's D on daily log returns. For each symbol it computes a p-value from a Weibull approximation and lists it in a table. The length input sets the sample
A long strategy that plots five moving averages (25, 50, 100, 150 and 300 by default, SMA or EMA) and looks for a bullish candle that opens below and closes above at least a set number of them. The breakout must come on volume above a ratio of its recent avera
This script calculates squeeze conditions by comparing Bollinger Bands with Keltner Channels and plots linear regression momentum lines directly on the main price chart. It checks whether Bollinger Bands fall inside Keltner Channels to identify volatility sque
This indicator calculates volume distribution across price slices over a lookback period and plots boxes on the price chart to represent high volume nodes. It measures volume in each slice and draws horizontal boxes whose width corresponds to volume intensity,
A counter-trend indicator that complements a trend-following sibling. It looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset ca
Scalper Quick Strike is a Pine Script strategy that trades on intraday charts using multiple EMAs and Stochastic oscillator. It calculates fast medium and slow EMAs along with a smoothed Stochastic to detect trend alignment and momentum shifts. Long entries tr
DivAlgo is a Pine Script strategy that identifies regular and hidden divergences between price action and momentum indicators such as RSI or MACD. It detects highs and lows using pivot points across configurable lookback periods to trigger long and short entri
A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fr
An overlay indicator that colours candles showing displacement, meaning a candle range far larger than normal. Candle range is measured open to close or high to low and compared with a standard deviation over a chosen length multiplied by a strength setting. B
The ES Professional Fade strategy trades overnight price gaps during regular trading hours on intraday charts. It establishes an opening range and enters counter-trend positions when price fails near overnight extremes. Positions target the previous day's clos
This indicator plots a custom MACD oscillator directly on the main price chart while incorporating multi-depth Zigzag pattern detection. It supports four MACD calculation modes—Traditional, AS Histogram, Leader, and Source—with customizable fast, slow, and sig
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.