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.
Fibonacci Bollinger Bands overlays standard Bollinger Bands along with multiple internal and external Fibonacci ratio levels on the price chart. It calculates a center basis line using a simple, exponential, or weighted moving average, and computes upper and l
This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner
Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level
This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot
Quick Scan for Cycles is a technical indicator designed to analyze cyclic behavior in financial asset prices. Operating in a separate indicator pane, it uses a customizable data source and bar lookback length to process price data and scan for recurring cycle
This indicator identifies Smart Money Concept (SMC) market structure elements, specifically Order Blocks (OB) and Fair Value Gaps (FVG), across current or higher timeframes. It highlights dynamic order blocks and imbalance zones directly on the price chart usi
This short-only strategy enters when price is below a daily 50-period EMA, crosses under a four-hour 50-period EMA, and closes below the previous bar low. Position size is 20 percent of equity. Exits use a limit and stop based on percentage distances by defaul
This indicator presents a separate-pane dashboard that looks up stored figures for a chosen crypto pair and a named strategy. It does not calculate RSI, MACD, bands, or other indicators from live prices. Inputs select the pair and strategy and toggle metric an
This strategy draws up to three exponential moving averages, default lengths 34, 89 and 610, across as many as seven user-chosen timeframes in a separate pane. Each series uses a gradient by timeframe, and optional smoothing or variable line width changes how
This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that
Tracks the high and low of a user-defined intraday session and enters breakout trades when the bar closes outside this range. It can enter during the session or wait until the session ends. Long trades enter on a close above the session high, while short trade
SPY Trending is an indicator designed for SPY that evaluates trend alignment across multiple timeframes using Exponential Moving Averages (5, 10, and 20 EMAs). It fetches data across lower and higher timeframes to evaluate buy and sell conditions, displaying t
Calculates a True Strength Index (TSI) oscillator modified with a linear regression line and standard deviation bands. It plots the regression line in a separate pane along with static reference levels at zero, 0.8, and -0.8, coloring the line based on slope d
This indicator plots five Fibonacci-based exponential moving averages on the main price chart, using lengths of 3, 13, 34, 55, and 144. It tracks Guppy Multiple Moving Average and Granville concepts to analyze trend direction and alignment. The script tests wh
This indicator combines three momentum and trend analysis tools into a separate pane: a multi-timeframe Commodity Channel Index (CCI), a multi-timeframe Stochastic Oscillator, and a dual-EMA smoothed Heikin-Ashi trend bias displayed as colored dots. Users can
This Pine Script indicator draws fractal levels on the price chart. It computes up and down fractals by evaluating high and low values across multiple bars using custom array functions. The code defines weighted array sums and slices to identify fractal indice
Skew Weighted Average Price (SWAP) calculates a skew-weighted average price for nuanced analysis of price dynamics and potential trading opportunities. The script determines skew by comparing smoothed positive and negative true ranges derived from price direct
This indicator calculates and plots the Stochastic Oscillator (%K and %D lines) in a separate pane. It identifies overbought and oversold market conditions with configurable threshold levels and background zone gradients. When enabled, it plots entry markers o
This indicator overlays price action assistance tools on the main price chart. It calculates and plots up to three exponential moving averages with user-defined lengths, colors, and independent multi-timeframe resolution settings. In addition to moving average
Liquidity Location Detector is a TradingView Pine Script indicator that plots fast and slow EMA lines on the price chart along with crossover signals. It detects and draws liquidity zones as colored boxes representing support and resistance levels based on nor
This strategy identifies buy and sell entry points for XAUUSD using a combination of exponential moving averages, RSI, Stochastic oscillators, ATR, and Fibonacci zones. It supports multi-mode execution featuring confirmation and scalp entries triggered by over
Alpy Kazan is a multi-timeframe momentum strategy combining a WaveTrend oscillator with dual-length RSI divergence calculations. It evaluates custom timeframes to plot overbought and oversold bands, WaveTrend crossovers, and RSI differentials in a separate pan
The Half Causal Estimator calculates a smoothed statistical baseline for metrics such as volume, true range, or price change. It uses time-of-day data hashing combined with non-parametric kernel filtering, supporting Gaussian, Epanechnikov, Triangular, and Sin
This indicator calculates close-to-close volatility from logarithmic returns of consecutive closing prices. It computes the standard deviation of those returns over a chosen length, annualizes the result with the square root of 252, and optionally smooths it w
This strategy plots support and resistance from the highest high and lowest low over a lookback window, and can overlay Bollinger Bands on the price chart. It calculates RSI or MFI, optionally from Heikin Ashi prices, and exposes WaveTrend, Laguerre smoothing
This library supplies utility functions for handling signal values in Pine Script. The quantize function selects one of four results depending on whether the input value is positive, negative, zero or NaN. The negMult function multiplies the value by a given m
This educational strategy demonstrates how to implement trailing stop losses in Pine Script. It executes a single mock trade in the chosen direction starting at a user-defined timestamp. The trailing stop is calculated using either Average True Range or percen
Plots higher-timeframe (HTF) candle overlays, pivot point levels, and time division markers directly on the price chart. It renders HTF candle bodies and wicks with configurable fills, alongside traditional pivot calculations, Central Pivot Range (CPR), and ex
ZigZag (Using Line Array) plots zigzag lines on the price chart to identify swing highs and lows. Bullish and bearish pivots are drawn with green and red lines respectively, while trap zones use orange and lime colors. Labels display pivot labels like HH or HL
Trendsignal plots buy and sell markers on the price chart when a short-term trend flips. It measures the average high-low range and the highest and lowest prices over a fixed nine-bar window, then builds inner thresholds from the RISK setting. A close above th
An indicator that reads a user-supplied CSV or data file published through Pine Seeds, using column index and delimiter settings, and overlays the external close, high and low on the current chart. Extras include an OLS regression channel, a z-score channel, a
This strategy plots an exponential moving average on the price chart and opens a long position when the close crosses above that average, but only when no position is already open. It exits with a percentage stop loss and a percentage take profit measured from
This indicator overlays smart money liquidity analytics directly onto the price chart by reading imported micro-profile data. It displays primary support and resistance levels, zone strength badges, context bias metrics, and sweep or mitigation markers. User i
This strategy plots a 14-period simple moving average as a chart line and fills the space between two overlapping lines. It creates a small label on each bar, then overwrites the label text. It enters one long contract when close crosses above the line level a
This indicator plots the close price series with an offset determined by bar index modulo 5. The offset creates a shifted visual series for plotting purposes on the chart. It draws the plot directly on the main price chart pane. No trading signals or exits exi
This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries
A strategy that builds a volume profile with delta over a lookback window and trades touches of its point of control and value area high and low levels, long or short. The window, bin count, value area percentage and touch tolerance in ticks are adjustable. Po
DEPV2 C5 Mod Secici is a signal mode selection indicator designed primarily for 15-minute timeframes. It evaluates market conditions across four primary dimensions: HLC3 moving average trend scores, momentum rate-of-change z-scores, volatility expansions via f
A long-only strategy for one-minute spot charts that uses two Bollinger Bands, a standard 20-period band on close and a short 4-period wide band on open, to classify entries into three cases. Entries can be limited to the first two hours of the Asian, European
An overlay indicator combining opening range support and resistance levels with a 9 and 21 EMA cross on the chart symbol. It also requests data for four user-chosen option contract symbols and shows their prices and EMAs in a table, with cross times recorded.
This indicator plots price candles reflected across a user-set mirror level and marks up and down fractals that form before a chosen reference time. Fractals need a swing high or low confirmed over a set number of periods on both sides, then appear as triangle
A price-chart indicator by AlgoAlpha that builds reversal bands around a moving basis, with band width set from a percentile of recent price moves. When price reaches a band it marks a bullish or bearish reversal signal and starts an ATR-based trailing stop li
Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, rather than any earlier bar that would shift later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values ca
This strategy plots on the price chart and calculates an initial balance (IB) range from specified IB start to end hours in ET. It computes VWAP using cumulative typical price and volume during the regular trading hours. Confluence is detected when price align
An indicator that plots a Donchian channel from the highest high and lowest low over a chosen length, with an optional midpoint line and shaded fill. It marks a bullish signal when the upper band rises and a bearish signal when the lower band falls, colours th
US Swing Entry Planner plans swing trading entries on daily price charts using dual entry models: pullback limit buys near the fast EMA and breakout buy-stop orders above pivot highs. It calculates ATR-based stop loss and profit targets along with position siz
RSI Divergence subtracts a slow RSI from a fast RSI and plots the difference as a four-color histogram in a separate pane. Color shows whether the gap is positive or negative and whether it is growing or shrinking. Markers appear on the bar where the gap cross
This strategy computes the midpoint of the highest high and lowest low over a configurable lookback and enters long when price crosses above that line and short when it crosses below. An exponential moving average of each bar's high-low range is calculated but
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.