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 strategy for index charts such as the S&P 500 on five minutes, trading only inside a configurable New York time window. It looks for a large-bodied candle, measured against ATR, that follows a short-term liquidity sweep of recent highs or lows, with an optio
A separate-pane sentiment oscillator that blends several fear and greed components into one composite score: VIX, market breadth, put/call ratio, safe-haven flows, momentum, price strength, junk bonds and an optional crypto component. Scores are shown as z-sco
A utility overlay that places a text watermark on the chart in a single-cell table. Up to four lines can each show the ticker, exchange, timeframe, a live candle countdown timer or custom text, or stay empty. Settings choose the text size, colour and vertical
This indicator screens daily price charts to identify potential parabolic snapback short and washout bounce long setups. It calculates price extension using moving averages, percentage gain lookbacks, and optional Bollinger Bands filters. Long signals require
This indicator plots a McClellan-style market breadth oscillator in a separate pane. It measures the gap between a fast and a slow exponential moving average of net advancing versus declining issues for NYSE or NASDAQ, or for custom tickers. A ratio-adjusted m
This strategy identifies the Initial Balance (IB) high and low during a user-defined opening session and trades breakout pullbacks. Once the IB window concludes and range filters are satisfied, it enters long or short when price breaks out and retraces back to
This strategy detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r
An overlay with Vietnamese labels that applies Dow theory to the chart. It finds pivot highs and lows over an adjustable length and labels each as a higher or lower high or low, adds a trend-colored background and compares volume with its moving average. It al
A strategy that tracks fair value gaps on a higher timeframe, 15 minutes by default, and watches for price to tap a zone and then invert a one-minute fair value gap before entering. It trades only inside a set session window, limits trades per day, and can opt
A strategy that models an ICT-style sequence: it detects a liquidity sweep of a one-hour swing level, then waits for a market structure shift on the chart timeframe confirmed by a large displacement candle. Signals are limited to configurable London, New York
Adaptive Regime Decoder estimates price velocity with a seven-point Savitzky-Golay style filter and plots it as a histogram and line in a separate pane. It also computes Shannon entropy of recent velocity values and compares it with a rolling percentile thresh
Plots the 20-bar highest high and lowest low on the price chart, plus buy and sell levels set one ATR beyond them. A buy triangle appears when the close first moves above the upper level and a sell triangle when it first drops below the lower level. The ATR va
The indicator overlays HalfTrend trend-following lines and ATR channel bands on the main price chart. It calculates trend reversals using high and low price channels over a user-defined amplitude, combined with Average True Range deviation channels. Directiona
An oscillator pane that plots a Bollinger Band z-score as coloured columns with reference lines at plus and minus two and three. Colour depends on a volatility regime taken from the percentile rank of band width, separating squeeze, normal and expansion. It al
The Session Highlighter indicator draws colored boxes over Asia, London, and New York trading sessions directly on the price chart. It calculates the session high and low price bounds based on custom session hours and timezone configurations. Upon session comp
A template file of simple Pine strategy examples, led by an EMA crossover that goes long when a 10-bar EMA crosses above a 20-bar EMA and short on the reverse. Other templates in the file show ATR-based stop loss and take profit, an RSI overbought and oversold
This indicator plots a classic MACD line, signal line, and histogram in a separate pane. It subtracts a slow moving average from a fast moving average, then smooths that difference into a signal and shows the gap as columns. Alerts fire on histogram slope flip
This indicator measures trend strength with Bollinger Bands. It computes a simple moving average as basis and plots upper and lower bands using standard deviation. The region between bands fills with color. Bar color changes based on price position relative to
A Pine v5 strategy that classifies the market as volatile, trending or ranging using ATR against its history and ADX thresholds. In trending conditions it trades a 9 and 20 EMA crossover, and in ranging conditions it fades Bollinger Band extremes. Stops and ta
Detects pivot highs and lows using a fractal length and draws Fibonacci retracement lines between the latest swing points on the price chart. Settings set the fractal length in bars and toggle the lines and their price labels. Pivots need the same number of ba
A price-chart indicator that draws two simple moving averages, Bollinger Bands and an RSI-based condition set, then prints buy and sell labels when a trend condition and a pullback condition agree. A signal strength value from zero to one counts confirmed cond
This strategy executes mean-reversion trades by combining RSI momentum, Bollinger Bands volatility, dynamic ATR stops, and Exponential Moving Averages for trend filtering. It seeks entry opportunities when price reaches extreme Bollinger Band boundaries alongs
MTV MTF is a Pine v4 indicator that combines a fast EMA-based MACD with volume trend and candle shape across several timeframes. Each bar receives bull-type flags that are counted over the last few candles with weights that fade with age, and these feed sugges
A Pine v5 long-only strategy that switches behavior with an ADX trend reading. When ADX is above the threshold it buys on a fast EMA crossing above a slow EMA, and when ADX is below it buys on RSI under 30. It closes the long on the opposite EMA cross in trend
A price-chart indicator that combines an opening-range style bias with a candle range trigger. It compares a lower-timeframe pulse against the previous closed candle's high and low across several higher timeframes, counts how many disagree, and only accepts a
A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot d
An indicator in a separate pane that combines RSI, a normalized WaveTrend oscillator and relative volume into a weighted conviction score, with user-set weights for each part. A trend filter reads the slope of a higher-timeframe EMA, five minutes by default, t
0-DTE Momentum Continuation Pro is a Pine Script indicator that overlays labels on the price chart to mark A+ BUY, A+ SELL, B BUY and B SELL setups. It calculates EMA trend structure using fast and slow EMAs, checks momentum with close price position relative
AGS Smart Signals 5M is an overlay indicator tuned for five-minute crypto charts. It draws an ATR-based cloud of bands around an EMA, filters direction with a trend EMA and RSI oversold and overbought levels, and marks buy and sell signals whose frequency is s
A course example strategy that buys when a fast EMA crosses above a slow EMA and then manages the trade with a percentage stop loss and take profit measured from the average entry price. Only long trades are opened; the short condition is calculated but not us
A long-only strategy generated from the TrendLab research project, drawn on the price chart. It tracks the highest high over a 115-bar lookback. It buys when the close is at or above 70 percent of that high and sells when the close falls below 52 percent of it
An overlay indicator that marks market structure from swing points. It draws continuation lines for breaks of structure in the trend direction and breaker lines for market structure shifts. A swing is a candle with a set number of lower or higher bars on each
A Pine v5 strategy built on a smoothed RSI and Bollinger Bands, with optional adaptive band width from ATR. Filters include a higher timeframe trend and RSI check, a volume breakout test, a volatility regime check and a trend strength check, plus an optional s
Draws horizontal lines at the open of selected higher periods on the price chart, with up to five configurable slots that default to daily, weekly, monthly and yearly. Each slot has its own timeframe, colour and lookback count of past opens. Options extend the
This indicator plots an anchored VWAP and a moving average on the price chart. The VWAP anchor can be chosen automatically or set to session, week, month, quarter, year, highest high, lowest low or highest volume bar within a lookback. Up to three standard dev
This indicator plots session boundaries and opens on the price chart. It visualizes daily weekly and monthly opens, New York Midnight as the institutional day start, previous daily high and low, plus colored session boxes for Asia Frankfurt and London. Users t
A Pine v5 indicator that draws Bollinger Bands on the price chart and marks buy and sell triangles. A buy appears when volume is above its 20-bar average by a set multiplier, the band basis is rising, and price touches the lower band or breaks below it and clo
An overlay indicator based on the global equity momentum approach of comparing assets over a monthly lookback. It requests monthly closes for a US equity ETF, an international equity ETF and a bond ETF, and compares their returns over a set number of months, 1
The indicator detects and plots Fair Value Gaps across multiple timeframes on the price chart, including 15 minutes, 1 hour, 4 hours, daily, weekly, and monthly. It identifies institutional opening gaps such as NDOG, NWOG, and NMOG with colored boxes and label
The Advanced Trading System - Premium is an all-in-one chart overlay that combines market structure, smart money concepts, and momentum analysis. It identifies institutional order blocks, fair value gaps, break of structure, and change of character levels alon
A Pine v5 indicator that works on any chart by reading the S&P 500 to gold ratio on the weekly timeframe. It compares the ratio to its 200-week simple moving average and sets a regime only after 30 consecutive weekly closes on one side. Above the average it ti
A long-only strategy that buys when a short simple moving average crosses above a long one and closes the position when it crosses back below. Defaults are 10 and 50 bars, both adjustable. It draws both averages and buy and sell triangles on the price chart, e
A Pine v6 overlay that implements smart money concepts: internal and swing market structure with break of structure and change of character labels, strong and weak highs and lows, equal highs and lows, premium and discount zones, and fair value gaps. Settings
An indicator in a separate pane that plots the Money Flow Index from the typical price and a signal line made by smoothing it with a simple or exponential average. Green dots mark where the MFI crosses above the signal and red dots mark where it crosses below,
An ES futures fade strategy designed to trade market opening gaps during regular trading hours. It calculates opening gaps using percentage, point, and ATR thresholds while employing a market breadth TICK filter to veto trades on trend days. It features an exe
Auto Chart Patterns Trendoscope automatically identifies and plots technical chart patterns on the main price chart using multi-depth ZigZag pivot calculations. It detects various geometric formations including channels, wedges, and triangles across rising, fa
An indicator that finds supply and demand zones after a short consolidation followed by a fast ATR-scaled breakout, and draws them as boxes on the price chart. Zones can be limited to windows around the hour and half hour in UTC, and to the direction of a high
The Live Market Scanner V7 is a real-time market analysis indicator that fuses MACD, RSI, EMAs, volume, and price momentum to calculate LONG and SHORT scores. It determines market status (LONG, SHORT, WAIT) using a sensitivity-based threshold and plots signals
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.