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.
DEPV2 Debug All is a multi-asset quantitative analysis indicator designed for separate pane execution. It evaluates signal conditions across up to twenty cryptocurrency pairs simultaneously using four analytical dimensions: Trend, Momentum, Volatility, and Vol
An overlay indicator that draws support and resistance boxes from pivot lows and highs, accepted only when a simple up and down volume delta passes a filter. Box height uses ATR scaled by a width input. It marks when a level holds or breaks, and builds strike
This indicator calculates the average percentage distance between the closing price and three benchmark mirror levels: a central midpoint derived from 500-period highs and lows, and dynamic upper and lower period bounds. The averaged distance is smoothed with
A price-chart indicator that plots a 9 and a 21 period EMA and prints a buy label on a bullish crossover when RSI is below the overbought level, and a sell label on a bearish crossover when RSI is above the oversold level. It tints the background and candles b
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 intraday strategy fades tests of the previous day high and low during the New York morning session. It identifies mean-reversion opportunities when price touches within a few ticks of the prior day high or low, closes back inside, confirms with above-aver
An indicator that searches for W and M shapes, meaning five-point double-bottom and double-top patterns, in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Unlike the original it allows patterns to form over more than fi
An overlay indicator designed for intraday stock execution, specifically tailored for Bursa Malaysia trading rules. It calculates several filters to validate trade entries: session-based time blocks for market opening, closing, and lunch re-open windows; candl
SMA Spread OSC plots the percentage distance between a fast SMA (20) and a slow SMA (200) as an oscillator in a separate pane, with optional smoothing. It adds average-distance bands from the spread's own history, an optional histogram and fills, acceleration
This strategy serves as a test corpus script demonstrating the use of Pine Script map data structures for state management alongside exponential moving averages. It tracks closing prices and EMA gaps in a key-value map during initial bars, then triggers long e
Calculates a volume-weighted average price that resets each day, week or month and plots it on the price chart. Two optional standard deviation bands use adjustable multipliers, with a shaded channel between the inner pair. A small table shows the current VWAP
This indicator finds past stretches of price history that resemble the most recent bars and uses what followed them to sketch a forecast. It compares a pattern of up and down candles of set length against up to 5000 bars of history, with optional trend matchin
An indicator in a separate pane that plots the Stochastic Momentum Index with a signal line and a histogram. Its lookback, smoothing and signal periods are chosen automatically from the chart timeframe, for example shorter values on 15 minutes and longer on we
This overlay indicator draws liquidation heatmap pockets on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by a minimum intensity and merges nearby labels. Two swing widths m
This strategy calculates Stochastic RSI crossovers occurring in extreme overbought or oversold zones, filtered by an optional Exponential Moving Average trend filter. Long positions enter when the %K line crosses above %D from below the oversold threshold whil
VABOAlgo is a Pine Script v5 strategy that detects breakouts from a value area. It uses VWAP as a POC proxy and ATR to calculate VAH and VAL, requiring volume above average for confirmation and prior bar consolidation within the VA. Long entries trigger on bre
High-Frequency Swing Reversal is a Pine Script v5 strategy that computes a reversal score from Bollinger Bands distance, RSI exhaustion, and candlestick rejection patterns such as hammers and stars. It plots VWAP, Bollinger Bands, and EMA20 on the price chart.
This indicator script combines Volume Profile or Market Profile (Time Price Opportunity) calculations with a MACD oscillator overlay directly on the price chart. It measures volume or time distribution across configurable ranges such as visible range, anchored
An experimental pane indicator that simulates a DCA account and a long account inside a date window, using a five-period Hull moving average to decide entries and exits. The long account buys when the average turns up or price is above the DCA cost, adds when
An indicator in a separate pane that splits the trading day into fixed custom windows, such as 07:00 to 09:50 and 09:50 to 12:00, and measures the wicks of each window as if it were one bar. For every window it records the open, highest high and lowest low, th
Expected Price with BTC Pair calculates a theoretical price by multiplying the selected price source of the current chart symbol by the price source of a specified benchmark symbol, defaulting to Bitcoin (BTCUSD). It requests security data for the reference sy
Documentation Indicator is a chart overlay that stores three user-selected time and price points in a custom Triangle type and draws a purple triangle between them. The user confirms each point on the chart through paired time and price inputs. A function crea
Technical Ratings Pro - Pump Wave calculates an aggregated technical rating derived from a suite of moving averages and oscillators. It evaluates indicators including multiple SMAs, EMAs, Hull MA, VWMA, Ichimoku Cloud, RSI, Stochastic, MACD, CCI, and the Ultim
A Pine v4 oscillator in a separate pane based on the Coppock curve. It sums 14-bar and 11-bar rates of change, smooths them with a Hull moving average, and averages the result again with a smoothness setting. The line and area are green or red depending on the
This indicator calculates momentum metrics by measuring the differences between three simple moving averages of closing prices. It computes a short-term bias by subtracting a medium-period SMA from a fast-period SMA, and a long-term bias by subtracting a long-
A Pine v4 overlay combining several chart aids. It draws smoothed moving averages at 21, 50, 100 and 200 bars, fills between a 2-period EMA and the 200 line in green or red to show trend, and marks bullish and bearish three line strike patterns and large engul
A Pine v4 strategy that colours candles and plots VWAP with wide bands at one percent, inner bands at 0.8 percent and a tight pair at 0.1 percent around the close. A green non-doji candle opening above the tight upper band, or reaching the inner one, triggers
Chart Type Identifier is an overlay indicator that classifies the current TradingView chart from bar structure. It counts gaps, horizontal open-close links, and wickless bars, then tests Heikin-Ashi open formulas, equal Renko bodies, Kagi and line-break patter
This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
HA UnivLong&Short Futures calculates Heikin Ashi candles and builds a channel using simple moving averages of Heikin Ashi highs and lows. It enters long positions when the upper channel line crosses above the lower channel line and opens short positions on the
ALLO Tracker visualizes historical buy and sell transactions made by ARK Invest funds directly on the main price chart. The indicator uses hardcoded historical trade data and timestamps to plot green buy labels below bars and red sell labels above bars. Users
This indicator calculates a maximum-profit value over a chosen lookback by summing positive bar-to-bar changes in a source. It plots the result for close and for inverted close in a separate pane, then overlays a fast cumulative version and an alternate summed
This strategy overlay calculates custom pivot high and low levels, averaged price sources, and Ichimoku Cloud components (Tenkan-sen, Kijun-sen, Senkou Span A/B). It also requests lower low price data from a 360-minute timeframe with lookahead enabled, introdu
Linear Regression Reversal Strategy is a Pine Script chart overlay indicator that plots a linear regression trendline with upper and lower standard deviation channel bounds for a specified date range. Users can select exact start and end timestamps directly on
This indicator uses a k-Nearest Neighbors (kNN) machine learning algorithm to classify current market conditions based on historical indicator pairs. It evaluates combinations of fast and slow periods of RSI, Rate of Change (ROC), and Commodity Channel Index (
Identifies harmonic ABCD chart patterns using pivot highs and pivot lows over a configurable lookback length. The strategy evaluates price retracement and extension ratios across four consecutive alternating pivot points to trigger long or short positions. It
This indicator plots the cumulative distribution function of a beta distribution applied to a min-max normalized source series. Over a lookback window it scales the chosen source into the unit interval, then evaluates the regularized incomplete beta using a La
This indicator plots candlestick bars in a separate pane based on the current chart's open, high, low, and close values. Derived from the TradingView Pine Script v5 documentation, it demonstrates the usage of the plotcandle function to render price candles usi
This indicator builds a simulated volume profile on the price chart. On the last bar it finds the highest high and lowest low across the previous 200 bars, splits that range into 50 price bins, and adds each bar's volume to the bin of its close. It draws a hor
This indicator calculates John Ehlers' two-pole Super Smoother Filter, an infinite impulse response lowpass filter designed to eliminate high-frequency market noise while reducing lag compared to standard moving averages. It plots a smoothed line directly on t
This overlay indicator measures fixed-length ranges from a New York session anchor and draws them on the price chart. Boxes mark a range as forming, closed above the previous high, closed below the previous low, or closed inside. It plots the prior range high,
The Chaikin Money Flow indicator measures the volume of money flow over a specified lookback period. It calculates the Accumulation Distribution value for each bar based on the relationship between closing, high, and low prices, then divides cumulative money f
This indicator marks consecutive same-direction candles at the start of each daily session. It counts the first user-set bars after a new day and labels a bullish or bearish CSC when every bar closes in that direction. Settings toggle bar colours, bull and bea
This trend-following strategy generates trades using Donchian channel breakouts combined with higher-timeframe trend filters and chart-timeframe momentum. It confirms breakout entries against a higher-timeframe moving average and rate of change, while optional
This strategy enters when Squeeze Momentum color-section changes diverge from price, comparing the latest change with a prior one and confirming the divergence across two pairs. A smaller squeeze value with a higher price opens a short, while a larger squeeze
This indicator expands Alexander Elder's Bull Power and Bear Power concept into a multi-model pressure analysis system displayed in a separate pane. It calculates bull, bear, and net pressure alongside dominance, impulse, and acceleration using selectable movi
This indicator maps Smart Money Concepts directly onto the price chart. It identifies internal and swing market structure, highlighting break of structure and change of character events alongside strong and weak swing highs and lows. It also plots internal and
This indicator calculates lower-timeframe volume delta and displays the directional result as colored dots in a separate pane. It fetches intrabar up and down volume using dynamic lower timeframes based on the current chart resolution. A positive delta colors
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.