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.
Ghost Engine is an overlay indicator that tracks the Asian session range, London and New York killzones, and the New York midnight open. It prints a trap tag when price sweeps an Asian high or low and then closes back inside the range. It maps break of structu
Indicatorv6SMC / ICT / price actionSessions & time
Surgical Deep Engine PRO is an overlay indicator that marks bullish and bearish order-block boxes from a two-candle displacement pattern, optionally only when volume exceeds the 20-period average by 20 percent. It extends those zones and, according to its docu
This indicator calculates Kaufman's Efficiency Ratio normalized by an ATR ratio to create a dynamic volatility-adjusted threshold. It classifies market states into uptrend, downtrend, choppy, or consolidation regimes and colors price chart bars accordingly. It
This indicator visualizes Smart Money Concepts and Inner Circle Trader framework elements directly on the price chart. It detects bullish and bearish Fair Value Gaps with real-time mitigation tracking, marks Optimal Trade Entry retracement zones between 62% an
ICT v4-weinkya All-in-One overlays smart money concept structural elements directly on the price chart. It detects Market Structure Shifts (MSS), Breaks of Structure (BOS), Order Blocks, Fair Value Gaps (FVGs), and Buyside or Sellside Liquidity levels. Additio
This indicator calculates the percentile rank of the current daily close price compared to the prior windowDays daily closes for Bitcoin. It plots the resulting 0-100 value in a separate pane. Users adjust the window length with the windowDays input ranging fr
Advanced Doji Detector is an overlay indicator that identifies and categorizes five distinct types of Doji candlestick patterns: Standard, Gravestone, Dragonfly, Long-Legged, and Four-Price Doji. It calculates body size relative to total candle range and evalu
This indicator overlays horizontal lines on the price chart for the high and low of the previous day, week and month, plus the mid-range of the previous day. It also plots the open price at midnight in the selected timezone (New York by default) or a custom ho
The NQ SSR Indicator plots SMC elements on the price chart, including key levels (PDH/PDL/ONH/ONL/VWAP), session zones, sweep markers, BOS lines & arrows, FVG boxes, OB boxes, signal arrows, HTF bias panel, and SSR panel. Toggle inputs control visibility of ea
This indicator calculates volume anomaly metrics using rolling z-scores of window volume, trend cleanliness from directional price consistency, and relative price impact. It plots these in a separate pane alongside signals: yellow dots for volume building with
CSA-15 Crypto Scalping Indicator is a TradingView Pine Script v5 overlay indicator designed for crypto scalping. It calculates multiple confirmations including trend direction from fast and slow EMAs, momentum via RSI, volume surge detection, squeeze and volat
Blackflag FTS is an overlay trend-following indicator that calculates dynamic trailing stop levels using an ATR-based volatility filter and Wilder's moving average. It features both modified and standard true range calculations to limit extreme volatility spik
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
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
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
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
ARC TrendStepper calculates and plots a stepped trend line directly on the price chart to filter out minor market noise. It updates the stepped value only when price changes exceed a configurable threshold calculated via Ticks, ATR, or percentage move. The ind
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
This strategy calculates the RSI indicator to detect mean reversion in AU stocks. It enters long positions when RSI falls below the oversold level with no current position and closes positions when RSI rises above the overbought level. Position size uses a fix
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
This strategy demonstrates a training, testing, and deployment lifecycle for Pine Script strategies. It calculates a simple moving average (SMA 20) and generates buy signals on crossover. The runMode input selects between Training, Testing, and Deployment. In
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
This indicator calculates and plots Momentum, an exponential moving average of momentum, the Relative Strength Index (RSI), and KDJ oscillator lines in a separate pane. It evaluates Bollinger Band bandwidth expansion alongside momentum acceleration to generate
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
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
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
This mean-reversion strategy identifies deep price drops following a multi-bar low, such as a 52-week low. It calculates a target threshold located a specified percentage below the period low and triggers a buy entry when price plunges to this oversold level.
The SFA FlowLiquidity library computes structural flow and liquidity events from price data. It detects sweep ups and downs with associated scores, identifies liquidity levels, and applies session and regime filters. Persistent arrays track liquidity prices, b
This library exports a function that returns a dynamic trailing stop price based on Average True Range. For longs it subtracts an ATR multiple from the close and ratchets the level upward, resetting the stop when price closes below the previous level. For shor
Apex Trend & Liquidity Master (SMC) is an overlay indicator that combines trend-following filters with Smart Money Concepts market structure and liquidity tools. It calculates baseline trend clouds using moving averages such as HMA, EMA, SMA, or RMA alongside
This strategy automatically adapts its moving average lengths and types based on the chart's timeframe, covering scalping, intraday, and swing styles. It generates entry signals when a fast moving average crosses a slow moving average, provided price is on the
The TXF Choppy Detector is an indicator that identifies choppy or sideways markets in Taiwan index futures using the Choppiness Index (CHOP). It plots Bollinger Bands on the price chart with customizable length and multiplier. The script detects washout signal
This overlay strategy requires sequential confluence before it enters. A hybrid detector blends selected oscillators, including RSI, CCI, MFI, Bollinger percent B and Keltner percent K, and treats extreme overbought or oversold readings as the market regime. V
This indicator maps estimated dynamic liquidity levels across the chart by combining normalized volume and an ATR multiplier. It tracks highs and lows within a designated lookback window, projecting buy and sell liquidity bins and highlighting maximum liquidit
This indicator calculates dynamic Anchored VWAP lines plotted directly on the main price chart based on detected swing highs and lows. It incorporates an Adaptive Price Tracking mechanism that adjusts VWAP reaction speed according to market volatility and ATR
RVol Panel plots relative volume in a separate pane for intraday charts. It compares each bar’s volume with the same bar position across a configurable number of recent sessions and also tracks cumulative session volume against that baseline. Bars are colored
This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and
ATR Volatility Trailing Stop plots an EMA trend moving average alongside dynamic ATR-based trailing stops on the price chart. The indicator determines trend direction from price relative to the EMA. Long trailing stop trails upward using ATR when uptrend, shor
This indicator identifies high and low pivot points on the price chart using user-defined left and right bars around each bar. It connects pivot points with wave lines, plots PH and PL marks, and labels the latest P1 to P8 patterns. A table shows pivot details
This indicator identifies dynamic support and resistance levels on the price chart using pivot high and low calculations. Based on a configurable swing length setting, it detects key market turnarounds and plots triangular markers above swing highs and below s
Calculates and plots two Supertrend lines with different sensitivity settings alongside a 200-period EMA baseline on the price chart. The fast Supertrend uses a smaller ATR multiplier to capture short-term price momentum, while the slow Supertrend uses a large
Hotzones identifies and plots bullish and bearish order block liquidity zones directly on the price chart. It draws colored boxes for active liquidity ranges along with average price levels. The indicator dynamically removes mitigated zones when price crosses
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.