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.
A diagnostic indicator that marks, on the detection candle, each building block of a combo chain: fair value gap setups, a matrix pattern and a unified combo, separately for bullish and bearish sides. A chain fires when the current and previous candle each car
This overlay strategy utilizes Pine Script v6 footprint objects to compute Shannon Entropy, measuring market orderliness and volume concentration. It identifies institutional activity by detecting low-entropy regimes combined with Cumulative Volume Delta chang
An indicator modelled on a Market Cipher B style layout. It computes a WaveTrend oscillator with a fast line, shows buy, gold, sell and divergence dots, detects regular and optional hidden divergences, and adds a money flow and RSI area. Channel, average and m
A Pine Script v5 indicator in a separate pane that plots Hurst spectral cycle waves. A selectable source, hl2 by default, is fetched through a security call with lookahead on, then passed through bandpass filters for cycles from 1 day to 18 years. Each cycle h
This overlay indicator combines a volume profile with multi-oscillator divergence detection on the price chart. It builds a histogram of recent volume across price rows, marks the point of control, and can show a rolling point of control. It also scans pivots
Plots the Parabolic SAR with the built-in function using a start of 0.02, increment of 0.02 and maximum of 0.2, drawn as crosses in a separate pane. It also includes a hand-written Pine version of the same calculation, plotted with the same settings, so the tw
A separate-pane indicator that plots a WaveTrend oscillator and its four-bar signal average around a zero line, then detects regular bullish and bearish divergence between price and oscillator pivots, labelling them on the pane. Lengths are fixed in the code,
A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This indicator fits a least-squares linear regression to every available bar, up to a 5000-bar limit, using the selected source. It draws one orange regression line on the price chart and refreshes that line on the last bar. A label reports the slope, intercep
A momentum strategy combining the TTM Squeeze oscillator with an RSI filter. It calculates linear regression momentum relative to Bollinger Bands and Keltner Channels alongside an RSI oscillator. Long signals trigger when momentum rises from below zero while R
AVAV Tracker overlays historical buy and sell activity by ARK Invest funds directly onto the price chart for AeroVironment Inc. (AVAV). It places labels above or below daily bars corresponding to recorded execution timestamps, indicating trade direction and fu
This Pine Script v5 library extends complex-number handling for other scripts. It treats a complex value as a two-element float array of real and imaginary parts. It exports get_phase, which returns the argument in radians or degrees with quadrant and axis spe
This strategy plots volume-weighted moving average volatility bands and standard deviation levels calculated from multi-timeframe price data directly on the price chart. It defines percentage-based stop-loss and take-profit exit targets for both long and short
This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
This indicator evaluates momentum strength for a single selected symbol across multiple intraday timeframes (1m to 60m). It retrieves price data across seven timeframes using security calls, combines them into an aggregate metric with optional ATR-based weight
This strategy plots SMA20 and SMA60 on the price chart for BTCUSDT. It generates long entries on close crossing above SMA20 and short entries on crossing below. Separate signals trigger on SMA60 crossovers. Backtest starts at user-defined year, month, and day
This indicator plots the Christiano-Fitzgerald asymmetric band-pass filter in a separate pane. It estimates the cyclical component of a series under a random-walk assumption, using ideal band-pass weights between a minimum and maximum period and forcing the we
This indicator demonstrates the array.insert function from the Pine Script v4 documentation. It creates a five-element float array filled with zeros, then writes the values one through five into successive indexes. On the last bar it draws a label showing the
This indicator plots the Hilbert Transform dominant cycle phase of a chosen price source in a separate pane. It follows an Ehlers method: a weighted smoother, a detrender, and in-phase and quadrature components feed a custom atan2 that returns a phase angle be
This overlay indicator marks swing highs and lows with Bill Williams fractals and draws them as offset labels and extended lines on the price chart. Fractal length can be 3, 5, 7, or 9 bars, and an optional filter reduces weaker fractal points. It also plots c
This indicator plots a Donchian channel on the price chart. It calculates the highest high and the lowest low over a user-set lookback, then draws those values as upper and lower bands with a midline equal to their average. The area between the bands is filled
Seykota Alt 44: ADX Pyramid is a trend-following strategy that plots on the price chart. It enters positions on Donchian Channel breakouts when the Average Directional Index (ADX) confirms a strong trend. Position sizing uses Average True Range (ATR) risk, wit
FilledValueGap F002 is a trading strategy that enters trades when a recent price gap is filled, operating under the assumption that price action will continue in the direction of the underlying trend. It plots Curie closing moving average lines directly on the
This indicator maps price location on the chart rather than generating trade signals. It plots Classic or Fibonacci pivot support and resistance, the central pivot range with a narrow, normal, or wide width regime versus ATR, previous high and low, and the cur
This indicator tracks capital rotation by comparing a primary lead asset against up to four secondary receiver assets. It calculates relative strength as the ratio between receiver and lead close prices, smoothed by a moving average, along with its momentum. D
Apex Protocol Assistant is an intraday technical indicator that overlays smart money concepts and trading session levels directly on the price chart. It evaluates higher timeframe EMA trends, change of character shifts, and fair value gaps. The tool highlights
Indicatorv5SMC / ICT / price actionSessions & time
This strategy opens long trades when RSI stays above its midline, the slow stochastic is oversold and its K line crosses above D, and MACD crosses its signal line, all within a configurable delay. It draws on the price chart. A long exits when RSI and the stoc
Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP
This indicator plots RSI divergence lines at resistance and support levels based on 14-period RSI crossing above 70 or below 30 within a search window of 141 bars. It displays dual EMA trend fill between periods 199 and 299, VWAP filter, TKPS tick pattern diam
This indicator overlays Smart Money Concepts (SMC) analysis directly onto the price chart. It detects and plots internal and swing market structures including Break of Structure (BOS) and Change of Character (CHoCH), highlights swing points and strong or weak
Calculates pivot highs and pivot lows over a customizable length to draw horizontal support and resistance lines on the price chart. When price spikes past a pivot level but closes back within the range, the indicator identifies a buy or sell liquidity sweep,
This strategy overlays a 1-hour 24-period volume-weighted moving average (VWMA) and calculates multi-bar Williams Fractals on the price chart. It is restricted to a customizable backtest date window. The strategy calculates on every tick and allows extensive p
Best SMA Finder is an overlay indicator that scores simple moving average lengths with a crossover backtest. Long Only mode records a long entry when close crosses above the average and an exit when close crosses below it. Buy and Sell mode flips between long
The Klinger Volume Oscillator computes a volume-adjusted trend indicator by applying two exponential moving averages to a volume contribution derived from the current bar's price range and a trend strength factor. It produces a KVO line and a signal line that
This strategy combines a fast Hull Moving Average with Bollinger Bands to generate mean-reversion signals. It opens a long position when the calculated Hull Moving Average crosses above the lower Bollinger Band, and opens a short position when it crosses below
The Engulfing Candle Micro-Gaps indicator identifies bullish and bearish engulfing candlestick patterns filtered by recent swing highs and swing lows. It introduces a configurable point allowance setting that accommodates minor price gaps between adjacent bars
This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic. It calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entrie
This strategy plots a rolling median and an exponential moving average of close on the price chart and enters when the two cross. A median cross above the EMA opens a long; a cross below opens a short, reversing the prior position with a fixed quantity of one.
Plots the basic bar price series (open, high, low, close) alongside a 10-period simple moving average directly on the main price chart. The indicator tests various combinations of positional and named argument formatting across multiple plot function calls and
A strategy that trades liquidity sweeps within a trend context. Trend comes from EMAs, ADX with DI alignment and an optional confirmed higher-timeframe EMA filter, with optional ROC and balance-of-power agreement. A swing level is swept and reclaimed by a cand
This indicator draws in a separate pane and requests data for up to twenty user-chosen symbols, defaulting to Binance crypto perpetual contracts. It combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require a
Advanced Time Analyzer calculates time cycles based on a user-defined start and end timestamp. After measuring the bar count of the initial time window, the indicator projects future vertical time lines across the price chart using configurable Fibonacci ratio
A lightweight trend flip indicator on the price chart with BUY and SELL labels. It uses a zero-lag trail built from ATR with an optional volume-weighted source and an evasive mode that stops pushing the trail after a set favorable move. Flips pass gates for ch
Overlay indicator running four independent displacement engines on the price chart. Each engine measures candle range as open to close or high to low, compares it with a standard deviation multiple, and marks the candle when a fair value gap confirms on the ne
TN Footprint Imbalance Sovereign v6 is a strategy that uses request.footprint() to detect imbalances in buy and sell volume at the point of control. It pulls POC price, buy volume, sell volume and bar delta from the footprint data object. Long entries trigger
This overlay indicator tracks a multi-checkpoint setup built from trending exponential moving averages, Bollinger Band percent B, and a stochastic RSI crossover. A three- or five-bar fractal marks an unconfirmed signal, then the script stores breakout prices,
A Pine Script v5 indicator in a separate pane, version A2.0 of a Hurst spectral oscillator. The chosen source, hl2 by default, is requested with lookahead on and filtered through bandpass filters for cycles from 1 day to 18 years. Every cycle has its own bandw
Combination by YZZ is a multi-indicator divergence tool that overlays directly on the price chart. It checks for regular and hidden divergences across up to ten technical indicators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, MFI, and ex
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.