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.
This indicator calculates and plots Heikin Ashi candlesticks in a separate pane below the main price chart. It retrieves the open, high, low, and close values of the Heikin Ashi synthetic ticker for the chart's current timeframe. Bullish candles, where the Hei
A Pine v4 indicator in a separate pane that is a variant of a volume-weighted z-score oscillator. It measures the close against a rolling volume-weighted mean and divides by a volatility term smoothed with an adaptive Kaufman-style average instead of a simple
The Aroon RSI Adjusted Net indicator combines the standard Aroon oscillator with RSI calculations over a user-defined rolling period. It calculates Aroon Up and Aroon Down values for both raw price and the RSI indicator, measuring the spread between price Aroo
A separate-pane tool that merges three studies. A histogram shows normalized On Balance Volume minus its moving average, with different colors for growing and falling bars above and below zero. A shaded band between the 30 and 70 lines uses the directional mov
This Pine v5 strategy computes MACD and takes the difference between the MACD and signal lines. It goes long when that histogram crosses above zero and short when it crosses below, reversing the position. A percentage stop loss measured from the average entry
An overlay meant for the daily chart that gives a long, short or neutral bias for Bitcoin. It takes daily prices from a chosen source such as CME futures, an index feed or Binance, then compares two EMAs (8 and 21 by default) with an 80-period Hull moving aver
Detects barbwire zones, runs of bars with unusually small size, and boxes them on the price chart. Bar size defaults to a hybrid blend of Heikin-Ashi, open-close and high-low measures. A mixed method is on by default, with optional stochastic and percent-rank
Calculates a volume-weighted perpetual futures premium against spot prices across multiple cryptocurrency exchanges, including Binance, OKX, Huobi, Coinbase, and BitMEX, for BTC or ETH. It applies a user-selected moving average to the log premium value and plo
This Pine Script library provides utility functions for script development and backtest reporting. It includes a function to display debug text labels on the chart, a rounding utility to round floating-point values to a specified number of decimal places, and
This Pine v4 strategy looks for three-candle sequences, green-green-red or red-red-green, and uses a one-period Money Flow Index value and candle body sizes to decide long or short direction, drawing arrows on the price chart. Orders are fixed at 10000 units w
An overlay that plots a selection of exponential moving averages: a main pair at 10 and 55 drawn as circles, and an optional set at 7, 21, 30, 50, 100 and 200. Optional extras are an ADX-based movement strength display with a key level, a pullback display, and
This indicator requests a five-minute Bitcoin series and plots two lines offset 5,000 price units above and below the bar average. It raises a short squeeze alert when the high exceeds the upper line and a long squeeze alert when the low falls below the lower
This strategy uses the same smoothed ATR-above-its-low measure as the matching indicator, shown in a separate pane. It opens a long when the close turns up after a down close while the volatility value is rising, and a short when the close turns down after an
A Pine v4 strategy that finds pivot highs and lows over a chosen period and groups them into support and resistance channels. Inputs set the pivot period, price source, maximum pivots stored, maximum channel width, number of levels shown, minimum strength and
This strategy trades the crossover of two exponential moving averages of the bar midpoint, where the slow length is a chosen multiple of the fast length. It goes long when the fast line crosses above the slow line and short on the opposite cross, or only long
This indicator plots market breadth metrics for the Nasdaq exchange in a separate pane. It calculates a simple moving average of the Nasdaq Advance-Decline line, switching between a 10-period average on weekly charts and a 50-period average on daily charts, co
The XXXNOK indicator plots the exchange rate of a chosen currency (USD or EUR) to NOK sourced via OANDA. It presents the rate on the main price chart as a black line with a simple width. A single input setting allows selection between USD and EUR. The script u
A single file that bundles several standard TradingView indicators as reference snippets. The first plots Accumulation/Distribution, a cumulative volume line, in a separate pane. Later sections include ADX, ATR with selectable smoothing, Bollinger Percent B, H
This indicator calculates and plots a smoothed Stochastic Oscillator in a separate pane. It computes %K using a specified lookback length smoothed by a Simple Moving Average, and generates a %D signal line by smoothing %K with a second Simple Moving Average. H
This indicator calculates and plots logarithmic growth curves and intermediate Fibonacci levels directly on the main price chart to outline long-term channel boundaries for Bitcoin. It computes upper and lower growth curves based on historical time elapsed sin
HalfTrend plots a trailing trend line on the price chart. It tracks recent highs and lows over an amplitude window and flips between up and down when a simple moving average of highs or lows crosses the tracked extreme and price confirms. The line is blue in a
This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi
Double Supertrend [Alorse] is a trend-following strategy that calculates two Supertrend indicators with distinct ATR periods and multiplier factors directly on the price chart. It enters long or short positions when the fast Supertrend signals a trend. Exits o
Calculates and plots moving averages on selected VIX volatility terms (VIX9D, VIX, VIX3M, or VIX6M) in a separate pane. The script computes user-defined short and long moving averages using EMA or SMA. It shades the background red when the short-term moving av
This indicator overlays historical ARK Invest buy and sell events for one stock on the price chart. It places fixed date labels above bars for sells and below bars for buys, with a count such as X1. An ETF input switches between ALL, ARKF, and ARKX so only the
This Pine Script v5 library provides a LOESS local weighted smoothing routine for paired x and y sample arrays. It builds a local neighborhood around each sample, applies a tricubic distance weight, and fits a weighted local regression. A separate polynomial w
This overlay indicator tracks sideways consolidations on the SPX price chart and flags breaks above or below that range. It builds a zigzag from the highest and lowest bars inside a loopback window, smooths nearby highs and lows with a rational quadratic kerne
This indicator identifies bullish and bearish engulfing candlestick patterns and plots them directly on the price chart. Users can filter patterns by setting minimum body-to-range percentages for both the prior and current candles. Additional filters require t
Calculates and plots the Stochastic Oscillator (KD) in a separate chart pane. It computes the raw stochastic values using high, low, and close prices over a default 9-bar length, smoothing them with 3-bar simple moving averages to produce the K and D lines. It
This overlay indicator draws an event calendar as a table on the price chart. It offers a multi-month grid or a single month plus an event list. Users set how many months appear before and after the current month, how many columns are used, the reading order,
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator estimates the next bar's price with a k-nearest neighbors model built from consecutive price samples. It ranks one-dimensional distances, averages the nearest neighbors, and can adjust that projection. Optional signals hint at the next bar's dir
This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
This overlay strategy combines a Chandelier Exit with a zero-lag least squares moving average. Although the header mentions Heikin Ashi candles, the calculations use ordinary closes. An ATR trailing stop sets long and short levels, and direction flips when pri
This indicator calculates Bill Williams' Accelerator Oscillator in a separate pane. It forms the median price from high and low, subtracts a slow simple moving average from a fast one to get the Awesome Oscillator, then subtracts a five-period average of that
This indicator plots horizontal liquidation heatlines for long and short positions directly on the price chart overlay. It highlights key price levels where positions face liquidation, color-coding lines and displaying descriptive tags for estimated sizes. The
MLExtensions is a Pine Script library providing utility and mathematical helper functions for machine learning indicators, specifically optimized for approximate nearest neighbors classification in Lorentzian space. It includes functions to normalize series de
PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l
Bar States is an educational utility indicator that demonstrates Pine Script bar state variables directly on the price chart overlay. On every bar, it evaluates execution context properties including historical status, real-time status, new bar creation, bar c
This pair trading strategy calculates the daily price movement ratio of Google using multi-symbol data requests and plots it in a separate pane. When Google drops by more than 5% within a day, the strategy enters a long position of 100 units on the chart symbo
This indicator serves as a syntax test file demonstrating Pine Script language features and editor highlighting. It showcases compiler annotations, control flow keywords, user-defined types, exported enums, and various data structure declarations including arr
This script provides a unit testing and validation framework designed for testing a Bitcoin MACD trading strategy. It constructs custom TestCase and TestSuite data structures to evaluate mock MACD calculations across market scenarios like bull runs, bear marke
BigBeluga Smart Money Concepts identifies and overlays market structure and volumetric order blocks directly on the price chart. It analyzes market swings, trend sweeps, and mapping structure using customizable pivot lengths and calculation modes. The indicato
This indicator calculates Bollinger Bands from the close with TradingView's built-in ta.bb function and plots them on the price chart. It draws a middle band plus upper and lower bands and fills the area between the outer bands. The length input sets the lookb
This strategy evaluates two Relative Strength Index (RSI) indicators across two user-defined timeframes to generate trading signals. The higher-timeframe RSI acts as a trend filter, enabling long trades when above 50 and short trades when below 50. Lower-timef
Exhaustion Reversal identifies potential market exhaustion and reversal points on the price chart by detecting strong force bars followed by price give-back patterns. A force bar is defined by an above-average body reaching recent extreme highs or lows. The sc
This indicator plots jerk, described as the slope of the slope of the slope of a source series, in a separate pane. It estimates each slope with a rolling least-squares fit over the selected period, then repeats that fit on the slope and again on the resulting
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.