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.
Calculates and plots support and resistance zones based on candle wick rejections and liquidity sweeps directly on the price chart. The indicator scans historical price action using a configurable lookback period and wick threshold percentage, merging close le
This research diagnostic draws a volume histogram and paired-node consensus structures on the price chart. It selects an immutable profile interval from the newest confirmed macro broadening wall, then allocates each 15-minute bar's volume across fine, base, a
Mean Price is an indicator that calculates a custom weighted average price for each bar using open, high, low, and close values. The calculation dynamically adjusts its weighting depending on whether the bar closes higher, lower, or equal to its open price. An
Cerebr Wave is an overlay indicator that combines multi-timeframe Keltner Channels with a Wave Trend oscillator to analyze market structure and momentum. It calculates higher-timeframe and lower-timeframe Keltner Channels alongside Wave Trend crossover signals
This indicator plots multi-timeframe 50-period exponential moving averages from the Daily and 4-hour charts directly onto the price chart. It generates bullish or bearish signals when the current close aligns with the Daily trend, crosses the 4-hour EMA, and b
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
A large chart overlay that draws multi-timeframe anchored standard deviation bands, with separate lookbacks for short, medium and long timeframes chosen from preset horizon profiles or set by hand. It adds consolidation zones with a volume profile, candlestick
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 stores a line inside a user-defined type and keeps an alias to the same drawing. It plots an 18-period simple moving average as a line on the price chart and reads that line's end price back through the alias. When the level is ready, it enters o
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 Pine Script strategy plots pivot points and a SuperTrend-style trailing line based on ATR and center line derived from pivots. It calculates trend direction and generates buy and sell signals on trend reversals. Signals are filtered by a user-selected mov
A strategy that replaces the break detector of its earlier stage with a CUSUM change point test on the chart timeframe, using a lookback, threshold and slack setting. After a change point it waits for a retest of the regime zone from the correct side, a reclai
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
A separate-pane indicator that bundles RSI, ADX with DI lines, Volume Flow Indicator and MACD modules, each with its own timeframe, colors and length settings. The RSI module adds bands and a smoothing average with Bollinger envelopes. Modules can share one pa
An overlay indicator that builds opening range levels from a configurable market open time in the Asia/Kolkata timezone, then derives sub-levels and second and third support and resistance lines from the range. It adds 9 and 21 EMAs with crossover arrows and c
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
A price-chart indicator that draws a CCI-driven trailing line. An ATR buffer above the high and below the low is held as a ratcheting stop, and the line switches sides when the CCI crosses zero. The line is coloured by CCI sign or, with the original colouring
Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b
This strategy identifies Interactive Brokers opening range periods on the price chart and performs mean reversion trades around the midpoint or opposite side. It calculates the IB high, low, and range, then skips narrow or trend days using lookback averages. E
This strategy overlays four smoothed moving averages and a trend fill between a two-period EMA and the longest average on the price chart. It marks optional three-line strike and engulfing candle patterns. Inputs set a Donchian channel length, the four average
Measures how strong and clean a trend is, in a separate pane. A fast and slow EMA define direction; the script accumulates price change while the direction holds and smooths it into a trend value. That value is divided by a noise estimate, linear or squared, t
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
ROC MA Slope plots two smoothed rate of change lines, a fast and a slow one, in a separate pane. Smoothing can be SMA or EMA, and each line has its own slope measured with linear regression. Optional layers include a histogram, fills, acceleration coloring, a
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.