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 strategy detects Bollinger Band squeezes by measuring band width against a threshold. It waits for a confirmed breakout in either direction when bands expand, using optional volume confirmation. Long and short signals trigger on breakout after squeeze. Po
Noob's MTF EMA Clouds computes and overlays multi-timeframe Exponential Moving Average (EMA) pairs across up to five user-selected timeframes directly on the price chart. It calculates fast and slow EMAs to render shaded clouds that visualize trend direction a
This strategy identifies breakout entries confirmed by elevated trading volume and trend direction. It triggers long entries when the close crosses above the recent highest high, provided volume exceeds its moving average by a multiplier and price remains abov
This strategy executes mean-reversion trades based on RSI overbought and oversold levels directly on the price chart. It generates long signals when the RSI crosses back above the oversold boundary and short signals when it crosses below the overbought boundar
Snagprofit WMA MA calculates and plots weighted moving averages across multiple timeframes (1-minute, 5-minute, 15-minute, and 1-hour) alongside a chart-period simple moving average. It evaluates directional alignment between these moving averages and checks f
P-Erik Tarama is a multi-symbol scanner indicator that displays technical screening results directly on the price chart. It evaluates assets against a composite bullish condition combining price position relative to the Ichimoku conversion line and weekly base
This indicator plots five Fibonacci-based exponential moving averages with periods 3, 13, 34, 55, and 144 directly on the price chart. Built around modified Guppy Multiple Moving Average (GMMA) concepts and Granville's rules, it tracks moving average alignment
This indicator tracks consecutive bullish and bearish candles on the main price chart. It counts consecutive closes relative to opens and plots a green triangle below the bar or a red triangle above the bar once a streak reaches the chosen target length on a c
This indicator calculates volume-weighted price movement over a set period and normalizes it using standard deviation. It offers optional Hull Moving Average (HMA) smoothing and measures order flow velocity through customizable moving averages. Displayed in a
BTMM Session Analysis is an indicator that draws session background boxes on the price chart for Asian, London and NY sessions. It tracks Asian session range with midpoint, extension and statistics display. The script detects liquidity sweep levels, stop hunts
A Pine Script library providing helper functions to evaluate local trend conditions across a user-defined lookback period. It exports functions that check if the current candle's low price is strictly higher or lower than all preceding lows within the specifie
Short Term Alpha Indicator calculates a weighted alpha from price change multiplied by volume, then derives EMAs at fast, medium, and slow lengths. It computes ROC values for the EMAs and applies percentile rank functions to identify deviations. These deviatio
This indicator draws a horizontal line across each session on the main price chart, anchoring to either the previous session close or the current session open. It displays session price performance through customizable labels showing percentage change, currenc
The Algo indicator calculates and plots two Dynamic Simple Moving Averages on the price chart. It uses a custom DSMA function that applies a filter derived from exponential smoothing coefficients, scales the result by RMS, and smooths with alpha. DSMA1 applies
IFVG Signals Realtime identifies inverted fair value gaps combined with a moving average trend filter to plot trading signals and zone boxes directly on the price chart. It scans lookback bars for bullish and bearish fair value gaps and triggers real-time sign
XAUUSD Strategy V4.16 - Independent Score is a multi-indicator trading system designed for gold. It evaluates market bias using triple Exponential Moving Averages (20, 50, 200), the Stochastic oscillator, and RSI, filtered by Fibonacci zones and optional M15 w
This strategy overlays a 60-minute Volume Weighted Moving Average with percentage-based upper and lower bands, combined with an RSI oscillator and Williams Fractals. It triggers long entries when price pierces below the lower band and short entries when price
Footprint IQ Pro draws a volume footprint on the price chart from lower-timeframe bars. It aggregates buy volume, sell volume, total volume, and delta at price levels using one-minute, one-second, or one-tick granularity, with automatic or manual tick spacing.
Chaikin's Volatility (CVI) indicator calculates volatility based on the high-low range of the price and the rate of change of an exponential moving average. The script plots the CVI value in a separate pane below the price chart. Users can adjust the ROC lengt
Super 8 is a trend-following and momentum strategy designed for 30-minute cryptocurrency charts. It evaluates entries using dual EMAs, ADX strength filtering, Parabolic SAR direction, MACD or Z-VWAP calculations, and Bollinger Band width expansion alongside vo
SessionInfo is a Pine Script utility library providing functions for session-specific state tracking and calculations. It exports routines to determine whether the current intraday bar falls within a specified session, before the session begins, or after it co
Pinbar Strategy identifies pinbar candlestick patterns (hammers and shooting stars) via the imported ZenLibrary and trades reversals or continuations on confirmed bars. Entries are filtered by an optional exponential moving average and candle range thresholds
Plots higher-timeframe candle overlays and pivot point levels directly onto the main price chart. It renders higher-timeframe open, high, low, and close levels as custom boxes with optional wicks, alongside traditional pivot points, support and resistance leve
This indicator plots a zigzag line formed from pivot highs and lows on the price chart. It identifies higher highs, lower lows, higher lows and lower highs by comparing previous points. Support and resistance levels are drawn and updated according to trend dir
This overlay indicator identifies pivot highs and pivot lows based on customizable left and right bar lookback settings. It calculates trend slopes and y-intercepts to project dynamic support and resistance trend lines directly onto the price chart. Users can
Monte Carlo Lab calculates and visualizes simulated performance variations for an Exponential Moving Average crossover strategy directly on the price chart. It records trade outcomes using ATR-based stop-loss and target levels in terms of R-multiples. On the f
SMC Lifecycle Private is a Pine Script library that provides modular helper functions to manage setup lifecycle states and market environment gating for Smart Money Concepts calculations. It evaluates market regime, volatility, and event risk conditions, compu
This strategy builds a linear-regression midline of close and places upper and lower bands at a multiple of close standard deviation. It enters long when price is below the lower band and the close rises versus the prior bar, and short when price is above the
The P Ver History Literal script is a Pine Script v6 indicator that assigns the constant value 5 to a variable x delayed by one bar and plots this value in a separate pane. It demonstrates history literal syntax for testing parsing and execution of delayed val
This indicator tracks relative divergence among five user-selected crypto perpetual symbols and plots the result in a separate pane. It scores each symbol from a twelve-bar log return scaled by ATR, assigns long or short direction, and requires RSI above 40 be
This overlay indicator reflects price around two user-chosen levels and draws the reflected candles in purple and blue. It searches for fractal highs and lows over a set number of periods, keeping only pivots that occur before each of two reference times. A mu
This strategy draws in a separate pane and trades intraday reversion toward a session VWAP. It builds that VWAP and its standard deviation from typical price and volume during New York regular hours, then converts close into a z-score. Shorts require the z-sco
US Momentum Swing Screener is a daily chart overlay indicator for US equities and ETFs. It plots a composite score based on an EMA ribbon (9/21/50/200), RSI and StochRSI momentum, MACD confluence, volume surge detection, ADX trend strength, Bollinger Band posi
Corpus Correlation Rotation is a cross-asset quantitative strategy that compares the price performance of the chart symbol against a user-selected benchmark asset. It measures five-bar price changes for both symbols, computes a 20-period statistical correlatio
The Simple MA Crossover Strategy calculates and plots a 55-period EMA and a 200-period EMA directly on the main price chart. It generates long entry signals when the 55 EMA crosses above the 200 EMA and short entry signals when it crosses below. Positions are
This overlay indicator combines three optional modules on the price chart. Volume weighted bands plot a smoothed trend and ATR-scaled envelopes in cloud or line-only form. The Keltner Hull suite calculates a Hull moving average and Keltner channels from a chos
This strategy trades opening gap continuation on the price chart. It measures the gap between the daily open and the prior daily close, then enters long after a qualifying gap up or short after a qualifying gap down when price stays beyond the open and a trend
ES Professional Fade is an intraday mean-reversion strategy designed for fading opening gaps on ES futures. It identifies market opening gaps using defined percentage and ATR thresholds, then places stop orders to fade the move while utilizing market breadth e
This TradingView indicator plots trend channels on the price chart using pivot highs and lows. It identifies liquidity breaks by normalizing volume against moving averages and percentiles. The main settings control pivot length, visibility of the last channel,
This indicator plots a Relative Volatility Index in a separate pane. It compares exponential moving averages of upward and downward close-price standard deviation and scales the result from 0 to 100. Horizontal lines mark 80 and 20. Regular bullish and bearish
This basic script demonstrates how to calculate and plot a simple technical indicator in Pine Script. It computes a 14-period Exponential Moving Average (EMA) using the closing price of each bar and renders the line in a separate pane. Designed as an education
This indicator plots the RSI calculated over 20 periods on the price chart. It detects upward crosses of the 50 level for long signals and downward crosses for short signals when enabled by user inputs. Signals appear as plotchar symbols on the chart with a ho
The Harmonic Osc indicator plots a z-score oscillator derived from kinetic and potential energy. Kinetic energy uses ROC of price over roc_p while potential energy ratios close to EMA over ema_p. These combine into total energy with weighting factors then stan
The Alpha-Decreasing Exponential Moving Average (ADEMA) calculates an exponential moving average where the smoothing factor decreases dynamically relative to the bar index. On early bars, the weight given to new price data is larger, making the calculation rea
This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-
This indicator plots three moving averages taken from separate timeframes onto the price chart. The user chooses either exponential or simple averages, then sets a timeframe and period for each of the three lines, defaulting to 15-minute, 60-minute, and 240-mi
This indicator overlays historical ARK Invest buy and sell transactions for ADYEN directly onto the main price chart. It reads hardcoded timestamp data to plot green buy labels below bars and red sell labels above bars on specific dates. A user setting allows
This script provides two color helpers: one converts red, green and blue channels into hue, saturation and lightness, and the other builds a Pine color from hue, saturation, lightness and transparency. Integer inputs set those four values within fixed ranges.
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.