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.
Green Wave plots a Fibonacci golden zone between the latest swing high and swing low on the price chart. It finds the range high and low over a configurable swing length, stores recent pivots, and draws two retracement lines, by default at 0.5 and 0.618, with
This indicator tracks crypto trend reversals by combining the Williams Alligator with an ATR stop level and a higher-timeframe market filter. Long signals trigger when the Lips line crosses above the Jaw line while Bitcoin trades above its daily 200-period sim
CNN Fear and Greedy Index plots historical sentiment data from the CNN Fear and Greed Index in a separate pane below the chart. Because Pine Script cannot fetch external API data dynamically, the script utilizes a hardcoded array of daily sentiment values upda
This indicator identifies Smart Money Concepts and liquidity levels directly on the price chart. It detects equal highs, equal lows, liquidity sweeps, fair value gaps, order blocks, displacement moves, and market structure shifts such as break of structure and
This indicator plots a standard RSI in a separate pane, with horizontal bands at 30, 50, and 70 and gradient fills in the overbought and oversold zones. An optional moving average can smooth the RSI using SMA, EMA, SMMA, WMA, or VWMA, and an SMA plus Bollinger
This indicator constructs bar-by-bar volume profiles and volume delta distributions directly on the price chart. Utilizing lower-timeframe data through intrabar requests, it calculates volume distribution across a configurable number of price rows per bar, pin
This indicator detects regular and hidden divergences between price and RSI or MACD histogram oscillators, drawing lines and arrows directly on the price chart. It identifies swing highs and lows using configurable left and right pivot lookback windows, evalua
BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising
This short-only strategy identifies sell setups by combining a 3-period RSI overbought condition with a bearish engulfing candlestick pattern. It triggers short entries when the open RSI exceeds 70 and momentum turns downward alongside a bearish engulfing bar.
This indicator plots a single moving average of user-defined length and type overlaid on the price chart. The average can be SMA, EMA, WMA, VWMA or RMA with default length 50 and EMA type. The line color is also configurable. An optional label at the end of th
MCDX Smart Money is a separate pane momentum oscillator that calculates and categorizes momentum components into Banker, Hot Money, and Retailer profiles using modified RSI calculations. The values are computed using configurable RSI periods, bases, and sensit
Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t
The VCP Silver Tier Strategy is a MACD-based trading system in Pine Script v5 that draws signals on the price chart. It computes the MACD line using fast length 12, slow length 26, and signal length 9. Long entries fire on MACD crossover below zero; short entr
This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add
This indicator evaluates institutional market structure by tracking five core behaviors: liquidity sweeps with reclaims, stopping volume, range compression and expansion, breaks of structure, and order block mitigations. When a user-defined minimum number of p
This indicator plots Opening Range Breakout signals on the price chart for the New York session. It implements nine ORB models with varying conditions including volume filters, RSI thresholds, FVG detection, and compression requirements. Signals display entrie
The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean
FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger
SMC + POC Signals identifies Smart Money Concepts structure elements including Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, and Fair Value Gaps alongside a rolling Point of Control (POC) volume profile line. It marks potential long and
This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi
This indicator unifies Price Volume Spread Analysis (PVSRA) with a suite of moving averages and VWAP. It calculates volume classifications—flagging climax, above-average, and regular bars—and projects synchronized candle coloring, six customizable EMAs, three
This indicator calculates Kaufman's Adaptive Moving Average (KAMA) and plots it directly on the main price chart. Traders can configure the efficiency ratio length, fast length, and slow length parameter settings. During real-time bar updates, the script store
Crypto Trading Strategy identifies breakout setups on the price chart by combining Bollinger Bands with daily cumulative volume delta. It computes a standard Bollinger Band envelope alongside a daily resetting cumulative volume series normalised into z-scores.
MTF OTF Close Filter calculates multi-timeframe breakout or continuation states by comparing each timeframe's current close to the highest and lowest closes over the prior N bars. It plots a six-cell status table at the bottom right of the chart showing UP, DO
This indicator plots support and resistance levels on the price chart based on pivot detection. It identifies potential reversal points by finding local highs and lows with specified strength. For each level, it counts how many times price has touched or appro
This indicator plots dual Kaufman Adaptive Moving Averages (KAMA) alongside a volume profile component on the main price chart. Users can configure two separate KAMA instances with distinct timeframes, lookback lengths, and fast or slow smoothing limits. The i
This example strategy demonstrates how to format Pine Script order alerts into JSON payloads for automated execution engines. It generates entry signals using a 10-period and 30-period simple moving average crossover and calculates protective stop-loss prices
Gamma Levels Auto plots daily options-derived dealer gamma levels directly on the price chart. It projects structural levels (7 to 45 DTE) and near-term 0DTE levels, including gamma flip zones, call and put walls, max pain, expected move, and Vanna or Charm st
This indicator plots Gamma Exposure (GEX) levels, market breakout structures, and session anchors directly on the price chart for ES, SPX, and SPY. It renders key options analytics including Zero Gamma, Max Pain, Call and Put Walls, Volatility Bands, and Delta
Apex Swing System is a trend and momentum indicator designed for swing trading. It combines a 200-period simple moving average filter, RSI momentum checks, and the Ichimoku Cloud to identify bullish and bearish setups. Upon confirming a signal, it plots fixed
A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions
This multi-timeframe indicator overlays ICT Fair Value Gaps (FVGs) and higher-timeframe candle projections directly onto the price chart. It aggregates price imbalance context across up to six configurable timeframes while maintaining a dynamic multi-timeframe
This indicator provides an econometric nowcasting framework to track transmission risks from Brent crude oil prices and USD/VND exchange rates to Vietnam Consumer Price Index (CPI). Operating on a monthly chart, it employs a rolling asymmetric Ridge ARDL regre
Wave Amplitude Levels is an overlay indicator that measures average daily price amplitude as half the daily high-low range, smoothed over a user-set lookback. It requests the previous daily close and that average with a one-bar offset, then plots five stepline
Crypto Intermarket Correlation calculates rolling Pearson correlation for Bitcoin and Ethereum against a user-selected benchmark symbol, such as stock indices or gold. Displayed in a separate pane, the indicator plots individual crypto correlations along with
The Fake Breakout / Breakdown Setup indicator identifies false breakouts (FBO) and false breakdowns (FBD) by tracking liquidity sweeps of previous price highs and lows. It validates reversals using follow-up price action and a confirmation scoring system based
This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w
Adaptive RSI Divergence Engine calculates a Relative Strength Index with dynamic overbought and oversold bands that adapt to market volatility via an ATR percentile rank. It identifies both regular and hidden divergences by scanning confirmed pivot highs and l
This overlay indicator marks customizable Asia, London, New York AM, and New York lunch killzones on the price chart, along with session range boxes. It plots the true day open, the 9:30 New York opening bell, prior day and week highs and lows, relative equal
This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl
This overlay indicator maps market structure on the price chart. It marks confirmed swing points and draws continuation breaks and reversal breaks, with optional higher-high and lower-low labels. A baseline and volatility envelope can sit on price, and an opti
Market Mind Reader is an overlay strategy that generates buy and sell signals based on user-defined inputs for Federal Reserve bias, DNA pattern states, and liquidity directions. It evaluates alignment across these inputs to calculate a signal confidence score
This overlay indicator identifies Candle 2 (C2) liquidity sweep and reclaim setups confirmed by Candle 3 (C3). It evaluates price action relative to local and higher timeframe (HTF) points of interest (POI), filtering setups based on C2 wick-to-range ratios, r
This overlay indicator demonstrates TradingView alert configuration. It plots 20- and 50-period simple moving averages and creates alert conditions when price crosses the shorter average or the averages cross each other. It also alerts on RSI crossing 70 or 30
This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew
This indicator draws automatic support and resistance trend lines on the price chart. It builds them from zigzag pivots set by the pivot period and groups them as major or minor, external or internal, and rising or falling. It can alert when price breaks or re
This strategy plots up to three double exponential moving averages on the price chart and flags crossovers and crossunders between them. With the third length at zero, it compares the first and second DEMAs; other length combinations change which series is use
This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e
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.