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 liquidity sweep entry tool built as a strategy. It stores recent swing highs and lows as liquidity levels, detects sweeps through them, checks that price reclaims and that the candle meets wick, body and range requirements in pips, then confirms within a sho
Calculates and coordinates trading signals across up to twenty cryptocurrency instruments using four core analytical dimensions: trend, momentum, volatility, and volume. Users can configure signals to trigger from single dimensions, simultaneous multi-factor c
An overlay indicator that combines volume-filtered pivot support and resistance with a large list of predefined NIFTY option contract symbols, fetching the closing price for each with request.security. It has helpers that round prices to strike steps and forma
Plots the highest high and lowest low of a lookback window, default 20 bars, plus mirrored levels placed the same distance beyond each extreme, on the price chart. It estimates how much volume traded in the gap between each extreme and its mirror over up to 50
A separate-pane oscillator by MisinkoMaster that rebuilds RSI by weighting each bar's gain and loss with Aroon up and down values over the lookback, then scaling to a 0 to 100 line. Trend turns long when the value crosses above a long threshold and short below
Draws volume order block zones on the price chart, found when a fast and slow EMA cross, and shows each zone's upper, lower and mid lines with a volume label. Signals fire when one side's dominant block holds a set share of the combined volume pool, or exceeds
This strategy implements a six-state market regime classifier based on the Melgo Sequence, categorizing market action into bull and bear trends, rejections, indecision, distribution, and accumulation. Signals are derived using synthesized price data and requir
An indicator that looks for W and M reversal patterns in price, OBV and Williams %R, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be added as a condi
A dashboard indicator in a separate pane that reads many measurements for the chart symbol across several timeframes. Columns cover prices, volume, delta and VWAP, oscillators such as RSI, stochastic, CCI and MFI, a quad rotation stochastic status, trend measu
This strategy compares a 9-period EMA with a 21-period EMA of the close and uses their difference as a spread. It opens a long when the spread crosses above zero and a short when it crosses below zero, reversing the position through opposite entries. The EMA l
This indicator marks pivot swing highs and lows on the price chart and lists their dates in separate tables for highs and lows, with an extra table for seasonal dates. Left and right bar counts set pivot detection, and settings control how many swings are kept
This strategy overlays price and combines SuperTrend, ADX, OBV, MACD, directional movement, EMA, and a volatility filter to decide long and short entries. Each filter can be switched on or off, and trading starts only after a chosen date. It can close when ena
A Pine v5 strategy that fades price at VWAP standard deviation bands on the price chart. A long needs the low to reach the lower band with an up candle, and a short needs the high to reach the upper band with a down candle. An optional filter counts how many r
This Pine Script strategy detects momentum breakouts on price charts by combining trend momentum signals with a volume filter. It enters trades when price breaks above resistance with volume 1.5 times average, reducing false signals. No specific stop loss or t
This indicator combines multiple script features into a single overlay on the main price chart. It calculates a modified MACD line and signal oscillator with configurable modes including traditional, histogram-based, leader, and source-based variations. The os
Teaching script that demonstrates for-in loops in Pine. It counts how many of the open, high, low and close values exceed a 20-bar average of close and plots that count, marks which values of a fixed array are positive with a label on the last confirmed histor
An indicator that fits a linear regression line over a chosen number of bars and draws upper and lower deviation channels around it on the price chart. Length, source and the deviation multipliers are adjustable, and lines can be extended left or right. It can
A Pine v4 oscillator in a separate pane. It computes RSI from Wilder-smoothed gains and losses, then averages it with a simple moving average set by a smoothness input. The line turns green when rising for two bars and red otherwise, with reference lines at 30
The Relative Sharpe Ratio indicator calculates risk-adjusted return measures over a user-defined lookback window and plots them in a separate pane. It calculates single-period simple returns, sums them over the period, and divides the sum by the return varianc
A Pine v4 strategy that pairs a 12/26 MACD and 14-period RSI with rolling highs and lows over a short and a long lookback. Inputs set both lookbacks, take-profit and stop-loss percentages for longs and shorts, and a maximum number of adds. It tracks counts of
This indicator requests FactSet earnings data for the current symbol and sums daily actual and estimated earnings-per-share values into yearly totals from 1990 through 2030. It draws those yearly figures as columns in a separate pane, using distinct colors for
This strategy plots MACD line, signal line, Bollinger Bands, and RSI on the price chart. It signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by de
AM-tracker overlays historical ARK Invest transaction records directly onto the price chart for the corresponding stock. It generates visual label markers at specific calendar timestamps indicating dates where ARK funds executed buy or sell orders, along with
Function: Decision Tree is a technical script that demonstrates probabilistic path selection through a decision tree algorithm using a custom pseudo-random number generator. It initializes weighted node arrays and simulates traversal paths down the tree based
Plots kernel-smoothed price zones on the price chart using a Rational Quadratic kernel from an imported library. It builds an inner and an outer high-low zone from 15-minute highs and lows, plus a smoothed close and a midline, and marks bullish or bearish bars
Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and
Machine Learning: Perceptron-based Strategy is a Pine Script overlay indicator intended to implement a simple perceptron machine learning model for signal generation. However, the author deleted the underlying script logic from the source file, leaving only th
This indicator plots an adaptive MACD in a separate pane. It builds the MACD from price changes using fast and slow smoothing factors, then scales the recursion with an R-squared term from the correlation of close and bar index over the R2 period. An EMA of th
This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo
This educational script renders an informational table directly on the price chart to display metadata about the current trading symbol. It retrieves and formats various built-in variables, including base currency, quote currency, symbol description, minimum t
This indicator draws dynamic support and resistance trendlines on the price chart. It finds pivot highs and pivot lows with a fixed 15-bar lookback on each side, keeps the last two of each, and on the latest bar connects those highs with a red line and those l
This indicator calculates the Ehlers Trendflex oscillator and plots it in a separate pane. It applies a two-pole SuperSmoother low-pass filter to the chosen source, sums the cumulative slope over the lookback with a running buffer, and divides that slope by an
This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line
The Chop Zone indicator calculates and visually represents the trend direction and angle of a 34-period Exponential Moving Average (EMA). By measuring normalized EMA slope changes relative to the highest high and lowest low of the recent 30 bars, it maps the a
This strategy enters long or short on Donchian channel breakouts and can add units when price moves in the trade direction and RSI confirms momentum. It sizes each unit from a risk percent of equity and exits with an ATR initial stop, a chandelier trail that t
Diverlong F002 is a price-chart strategy that enters on Squeeze Momentum divergences and exits on Curie closing moving-average lines. A short is taken when a light-green to dark-green squeeze section is smaller while price is higher; a long is taken on the opp
Fibonacci Retracement Quality evaluates how accurately price pullbacks align with key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) following confirmed swing moves. It filters out noise using ATR and calculates a score from 0 to 100 based on proximity
ACCVOL 1j (SMA5 + SMA10) - AD/B is a price chart overlay indicator designed to identify volume accumulation and bullish swing trading setups. It evaluates current bar price gains, volume expansion, and volume relative to a moving average against historical pri
This indicator calculates three Relative Strength Index (RSI) oscillators with distinct length settings, defaulting to 14, 28, and 56 periods. It renders the three RSI curves stacked vertically in a separate pane using numerical offsets to prevent line overlap
This indicator detects three-candle time patterns on the price chart, tracking range, manipulation, and distribution phases based on Smart Money Concepts. It establishes high and low boundaries from the opening candle and identifies boundary rejections during
MACD Breakout builds a higher-timeframe MACD from preset fast and slow lengths using SMA or EMA, and marks support and resistance zones from histogram sensitivity. Optional filters require zero-line agreement, higher-timeframe direction, and linear-regression
This strategy identifies shorting opportunities by calculating Fear and Greed zones based on price extremums relative to moving averages and standard deviation bands. It measures price deviation from recent highs or lows to detect extreme market conditions and
The Simpleton STEPFUN Strategy combines signals from multiple technical indicators including RSI-2, MACD crossover, Bollinger Band squeeze, volume spikes, triple EMA, and Ichimoku cloud. It generates buy signals when the weighted ensemble meets or exceeds the
This indicator plots the standard Ichimoku Kinko Hyo components directly on the price chart. It calculates the Tenkan-sen conversion line, Kijun-sen base line, Chikou Span lagging line, and Senkou Span A and B leading lines. The area between Senkou Span A and
This indicator plots a customized Moving Average Convergence Divergence oscillator combined with an Average True Range line in a separate pane. It calculates fast and slow exponential moving averages alongside a simple moving average signal line, highlighting
This indicator plots horizontal lines representing previous highs, lows, and closes from daily, weekly, monthly, quarterly, and yearly periods on the price chart. These levels serve as potential support and resistance for confluence analysis. Users can toggle
This indicator detects buy and sell signals on the price chart by combining engulfing candlestick patterns, body-to-range stability ratios, RSI boundaries, and price momentum over ten bars. Confirmed signals trigger visual buy and sell labels directly on candl
This indicator calculates a multi-period momentum oscillator plotted alongside an Average True Range baseline. It measures momentum across five configurable lookback lengths, weighting each value proportionally by its length so longer horizons exert greater in
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.