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.
This indicator calculates real-time risk metrics and position duration limits based on Average True Range (ATR) volatility. It estimates how many minutes a position can remain open before hitting maximum allowable drawdown, considering user inputs for account
This indicator calculates the Bollinger Band Width Percentile (BBWP) across multiple selectable timeframes to assess relative volatility levels. It evaluates the current bandwidth against historical lookback periods and plots percentile values alongside moving
This indicator plots Bollinger Bands and Keltner Channel on the price chart to analyze volatility and price action. It supports switching between Bollinger Bands, Keltner Channel, Parallel Channels, and VWAP Bands. Users select the source price, moving average
BMNR Power Law is a crypto-focused valuation channel indicator that plots dynamic power law bands on the main chart. It calculates top, middle, and bottom valuation lines using exponential model parameters applied to daily prices. An optional Average True Rang
This indicator detects breakout signals on the price chart when volume exceeds a threshold, a gap appears, or a strong candle forms, combined with an upward MA50 trend. It plots MA10, MA50, MA150 and MA200 for reference and places entry and exit labels directl
HMACross Algobid calculates and plots a Hull Moving Average (HMA) with trend signal indicators directly on the main price chart. It evaluates multi-timeframe market data across four user-defined timeframes and incorporates an optional Average Directional Index
Combines Quantitative Qualitative Estimation (QQE), AK Trend calculation, and Elder Force Index (EFI) into a single indicator pane. It calculates a smoothed RSI-based QQE histogram with Wilder's ATR factor, integrates dynamic timeframe scaling for the AK Trend
EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim
Better Volume PRO v2.0 calculates volume distribution, estimating buying and selling pressure to derive a volume delta and confidence score. The confidence scoring system evaluates candle structure, VWAP coherence, relative volume, and multi-bar consistency. H
This indicator plots six moving averages on the price chart. Each line is independently set as an SMA or EMA, with default lengths of 11, 22, 50, 100, 200 and 360. It draws colored plots and optional labels that name each length and type. When enabled, it high
Magic Sequential 9 tracks price sequences by comparing the current close to the close four bars prior, drawing numerical markers on the chart for counts seven, eight, and nine. It incorporates an optional Average True Range volatility threshold to filter out s
This chart indicator tracks session-specific high and low price ranges over user-defined time windows. It plots session ranges alongside three configurable moving averages, volume-weighted average price (VWAP) with standard deviation bands, dynamic support and
The MA/EMA + RSI Trend & Pullback indicator combines moving averages with the RSI oscillator to determine trend direction and identify pullback opportunities for entries and exits. It plots fast and slow MAs on the price chart along with the RSI, and applies b
The script identifies bullish and bearish Fair Value Gaps (FVGs) on the current or specified timeframe. It plots auto-updating boxes and labels directly on the price chart to highlight detected gaps. Main settings control box extension in bars, fill and border
Normalized EFI calculates a normalized variation of the Elder Force Index and plots it as an oscillator in a separate pane alongside a zero baseline. It scales percentage price changes by relative volume, defined as current volume divided by an exponential mov
This indicator identifies swing pivot points using an external signal library configured with depth, deviation, and backstep parameters. It calculates market direction changes and plots buy and sell signal labels directly on the price chart. Users can configur
Calculates an adaptive price channel anchored to Donchian extremes, combining VWAP resets on dynamic highs and lows. The indicator automatically toggles between short-term and long-term calculation lengths based on the chosen timeframe. It plots upper and lowe
This indicator combines five technical metrics normalized between 0 and 100 in a separate pane: RSI (with optional divergence detection), Stochastic, Relative Volatility Index (RVI), Average Directional Index (ADX), and Money Flow Index (MFI). Users can select
This indicator automatically detects and plots support and resistance areas on the price chart. It identifies reversal patterns using candlestick spikes, pivot points, and trend analysis while applying noise filtering for small candles. Areas get shaded with c
This strategy combines moving averages, Bollinger Bands, and SuperTrend indicators to generate long and short entry signals. It uses configurable moving average crossovers and Bollinger Band threshold levels for trade execution, complemented by optional SuperT
The Covered Calls Optimizer indicator helps traders analyze covered call option strategies directly on price charts. It calculates target strike prices and estimated yields based on stock volatility (ATR and 20-day historical volatility) and user-defined risk
The Multi EMA + VWAP Combo indicator consolidates five Exponential Moving Averages (EMAs) and a Volume Weighted Average Price (VWAP) into a single chart overlay. It calculates five configurable EMAs (defaulting to 9, 21, 50, 100, and 200 periods) to track mult
Complexity Trender is an indicator that combines EMA crossovers, RSI momentum, Stochastic signals, Bollinger Bands, ADX trend strength, volume analysis, and divergence detection to identify trends. It plots labels, trend lines, and a summary table directly on
Trend Analyzer EMA Only is a price-chart indicator that compares a fast and a slow exponential moving average. It marks BUY and SELL when the averages cross, and it treats a trend as up or down only when both slopes agree and their relative gap exceeds a neutr
This strategy plots a Tillson T3 moving average on the price chart and opens long or short trades from a selectable direction method, defaulting to a bar-count pattern trigger. Optional slope confirmation can filter entries. Exits use optional Renko-brick, tra
This indicator plots an Exponential Moving Average directly on the price chart and dynamically changes its color based on the market trend. When the closing price is above the moving average, the line and background tint turn green to indicate bullish conditio
Support/Resistence MTF indicator plots support and resistance levels on the price chart by detecting pivots across multiple configurable timeframes. It identifies turning points using ta.pivothigh and ta.pivotlow functions, then consolidates nearby levels into
This strategy calculates the cross-market ratio between gold and EURUSD alongside an ATR volatility percentage and a higher-timeframe daily SMA trend filter. It executes session-tailored entries across the Asian, London, and New York sessions using RSI, ADX, a
The RSI Strategy plots the Relative Strength Index (RSI) on the chart with oversold and overbought level lines. Long entries trigger when RSI crosses above the oversold threshold, and short entries when it crosses below the overbought threshold. Positions exit
15M is an intraday chart overlay designed for 15-minute timeframes. It plots a volume-weighted moving average (VWMA) alongside a simulated 5-day moving average calculated from user-defined daily trading hours. The script detects several classic candlestick pat
This Pine Script indicator plots dynamic volume clusters directly on the price chart to identify potential support and resistance zones. It calculates price clusters using a configurable lookback period and zone width percentage, then draws color-coded bullish
Color is a Pine Script utility library designed for advanced color manipulation and comparison within scripts. It provides helper methods to compare two color instances across RGB and transparency channels, calculate relative color luminosity, and determine hi
The Multi-Indicator Trading System is an indicator that plots EMAs on the price chart. It calculates EMA50 and EMA200 crossovers on the 15-minute timeframe, with optional trend filters from 1H or 4H timeframes. Confirmations come from RSI, MACD, Bollinger Band
This indicator identifies key support and resistance price levels and automatically plots trendlines connecting major highs and lows directly on the price chart. It tracks price structure using custom level objects and processes 1-minute lower timeframe data t
The Smart Money Liquidity Heatmap indicator identifies potential institutional liquidity zones on the main price chart. It compares Smart Money Index (derived from NVI) against Dumb Money Index (derived from PVI) relative to their moving averages and RSI value
The Kairi Relative Index with Arrows indicator calculates the percentage deviation of a chosen price source relative to its Simple Moving Average. It plots green and red arrows when the KRI crosses above or below the zero line, signaling potential bullish or b
This overlay indicator tracks the Tokyo, London, and New York trading sessions and draws each session's open, high, low, and close as lines on the price chart. At a session start it creates dotted open and solid high and low lines, then updates them while the
This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi
Tik 1 USD is an overlay indicator that plots a grid of horizontal price level lines across a specified price range. The script iterates from a configurable start ratio to an end ratio in fixed increments, drawing color-coded extended lines directly on the main
This indicator identifies bullish and bearish Fair Value Gaps (FVG) on the main price chart based on three-bar price imbalances. It features an optional ATR-based displacement filter to isolate gaps formed during strong market momentum. Detected gaps are displ
This indicator tracks and visualizes the previous hourly price range directly on the chart. When an hourly bar closes, it draws a shaded rectangular box spanning the highest and lowest prices of that 60-minute period. As a new hourly session forms, earlier box
This indicator calculates 1-minute Average True Range (ATR) values for three different period lengths: 5, 8, and 14. It applies predefined multipliers to these ATR values to compute estimated stop-loss distances in price ticks. The output is displayed in a cus
Table Test is a Pine Script v6 indicator that renders a precomputed ASCII-art image in a table in a separate pane. Integer arrays store character indexes for each image row, and the script maps those indexes to ASCII glyphs so the picture appears as text. A si
The indicator calculates volatility-based stepped support and resistance levels overlaying the price chart. It tracks a central average that shifts incrementally when price exceeds an ATR-scaled boundary. From this baseline, it projects two upper resistance le
This Pine Script strategy plots Bollinger Bands on the price chart using a central line and standard deviation for volatility detection. It includes an optional EMA trend filter and ADX strength filter to refine signals. The strategy allows buy or sell entries
The ICT Macros indicator plots volatility periods based on ICT smart money concepts on the price chart. It highlights London Macros (02:33-03:00, 04:03-04:30), New York AM Macros (08:50-09:10, 09:50-10:10, 10:50-11:10), and New York Lunch + PM Macros (11:50-12
This overlay indicator applies a recursive multi-pole filter to a chosen price source and is set up to scale that filter with a filtered true range. The pole count selects the filter order from one to nine, while the sampling period controls how quickly the sm
This indicator marks regular New York Stock Exchange (NYSE) session open (9:30 AM ET) and close (4:00 PM ET) times directly on the price chart. It draws vertical lines and descriptive text labels at historical session boundaries and projects lines forward for
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.