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 script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status
This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al
This indicator draws a single persistent label on the price chart. It creates the label once above the bar at the close, then moves that same label to the current bar index on every bar and sets a tooltip. It does not calculate an oscillator, moving average, o
This indicator plots the Supertrend line on the price chart using TradingView's built-in Supertrend calculation. It derives the line from the average true range and a multiplier, then colors an uptrend green and a downtrend red. A light fill sits between the c
This strategy evaluates price excursion using Curie closing moving averages on the price chart to trigger trades and manage positions. It supports both long and short positions with configurable strategy date ranges and strict mode conditions. Built as an auto
This overlay indicator draws prior month, week, and day reference levels on the price chart, plus current month levels. It plots prior month high and low, open and close, and point of control, current month high and low and point of control, prior week high an
This strategy builds a timed opening range and tracks session high and low on the price chart. It flags bullish and bearish breakouts of that range and uses Fibonacci levels for an entry zone, a default stop, and an optional take-profit extension. Take profit
The MACD Signals indicator plots dual Exponential Moving Averages (EMAs) and generates buy and sell signals directly on the price chart based on MACD crossovers filtered by trend context. Users can configure independent EMA and MACD parameter settings for long
This indicator tracks and draws higher-timeframe liquidity levels directly on the price chart using customizable horizontal lines. It plots upper and lower liquidity reference boundaries across up to five user-configured timeframes, ranging from monthly down t
This strategy probes trading engine behavior on the price chart. It places time-based pending entries with stops: at 2:00 it adds a short with stop at half the low if flat; during the 2:00-2:45 window it adds a long with stop above the high plus tick if flat;
Reflects past swing pivots across a chosen time axis on the price chart. The user selects a mirror time and a ratio; the script records confirmed pivot highs and lows that occurred before that time, using adjustable left and right lengths of five bars. When a
A short price-chart indicator that plots a 20 and a 50 period EMA and waits for a pullback after each crossover. After the 20 crosses above the 50, it looks for price to touch the 50 and then prints a buy triangle on the next green-closing candle. After a down
Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a
This strategy tracks the high and low price levels established during the Tokyo trading session (00:00–08:00 UTC) and seeks breakout entries during the London and New York sessions. Long trades trigger when price breaks above the Tokyo high, confirmed by price
A Pine Script v4 indicator, a second variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defa
The HLAN Tracker visualizes ARK Invest trading activity directly on the price chart for the HLAN ticker. It draws historical buy and sell labels positioned by exact bar timestamps to display when ARK funds transacted the stock. Each label indicates the transac
This indicator calculates a flattened one-dimensional index from up to three array coordinates and their dimension limits. A function walks matching index and limit arrays and combines them into a single offset, returning na when the arrays are empty or of dif
2 Candles Inside ATR is an overlay script that measures volatility compression across two consecutive candles. It calculates a smoothed Average True Range (ATR) and compares it against the combined high and low range of the current and previous bars. When the
This indicator calculates a finite impulse response filter using Hann window coefficients and plots the smoothed series on the price chart. It weights the selected source with a raised-cosine window over the chosen length and divides by the sum of the weights.
This script calculates the time difference between consecutive bars to project label placement into the future. On the final bar of the chart, it evaluates the bar interval duration and draws a label three bars ahead of the current bar at the close price using
This strategy uses the built-in Supertrend calculation to generate long and short trade entries based on trend reversals. It triggers a long position when the Supertrend direction flips to indicate an uptrend and a short position when it flips to indicate a do
Trailering D002 is an execution strategy template designed for automated crypto trading on price charts. It evaluates High and Low Curie moving average closing lines to identify potential entry conditions across customizable time windows. The strategy manages
This strategy combines a Simple Moving Average (SMA) and the Relative Strength Index (RSI) to generate long trading signals. It enters a long position when price closes above the SMA filter while RSI drops below the oversold threshold. The strategy exits the p
This Pine Script indicator calculates the Opening Range Breakout (ORB) high and low within user-defined New York or London session times. It plots a colored box on the price chart marking the ORB range and its start bar index. After the session ends it detects
MACD Signals overlays buy and sell labels on the price chart by combining MACD crossovers with RSI conditions. A buy signal is generated when a bullish MACD crossover occurs within a user-defined bar limit after the RSI dips below an oversold threshold, while
This indicator tracks and visualizes cyclical turning points based on Hurst cycle principles in a separate pane. It identifies confirmed pivot highs or lows across multiple harmonic lengths ranging from half-cycle to 32x cycles. For each cycle length, it calcu
This validation strategy tests broker execution priority when opposing pending stop orders are active simultaneously. At scheduled times (02:45 and 14:45), when flat, it places paired long and short stop orders at percentage offsets from the closing price. Pos
Mirrored Price Polyline reflects price action across an interactive reference line drawn directly on the price chart. Users select two anchor points with custom time and price coordinates. The script calculates the slope between these points to define a centra
A simple moving average crossover indicator drawn on the price chart. It plots an 11-period and a 51-period exponential moving average. A BUY label appears when the fast line crosses above the slow line on a bullish candle, and a SELL label appears when it cro
Scores each bar's volume against several windows, from 50 bars up to 5000 bars, using a robust median-based scale instead of mean and deviation. It marks sigma tiers, multiple-of-median tiers, and month, quarter and year percentile extremes, plus sleeper bars
TN Triple Confirmation Sovereign v6 is a trend-following strategy that combines a 200-period Exponential Moving Average, Supertrend, and Zero-Lag MACD. Long positions enter when price trades above the 200 EMA, Supertrend is bullish, and the Zero-Lag MACD cross
A Pine Script v4 indicator, a third variant of the range finder, that locates a price range over a 500-bar period and draws baselines at 0, 0.5 and 1 on the price chart, with Fibonacci-style extension lines projected from it. Lines extend to the right by defau
HO-tracker is an overlay indicator that places dated labels for historical ARK Invest purchases and sales on the price chart. Green labels below bars mark buys and red labels above bars mark sells, each showing a same-day ETF count such as X1. The ETF input sw
This indicator is a developer test of Pine Script v4 integer-array helpers rather than a market signal. It builds a small integer array, then applies unshift, reverse, index lookup, shift, last index, includes, average, standard deviation, variance, copy, sort
255 EMA Strategy combines an exponential moving average with Average True Range bands and standard MACD crossovers to generate entry signals. Drawn directly on the price chart, it plots the central 255 EMA along with upper and lower volatility envelopes. Trade
This indicator calculates the harmonic mean of a source series over a rolling lookback and plots the result in a separate pane. It stores recent values in a circular buffer, updates a running sum of reciprocals, and returns the count of valid samples divided b
This strategy places orders only when the bar year is after 2014 and before 2016. It enters a long using one-cancels-all reduce, then attaches an exit with a profit target of 100 and a stop loss of 200. It also submits a short entry using OCA cancel and a shor
This indicator scores price using moving averages, oscillators, or both, then maps the result to buy, sell, and neutral ratings. It compares several simple and exponential averages, a Hull average, a volume-weighted average, and Ichimoku lines with price, and
Trailering E002 is a trading strategy that uses moving average closing lines to optimize entries, take profit levels, and stop loss execution. Applied directly on the main price chart, it tracks price excursion to refine trades and includes date filtering for
This indicator marks market structure shifts when price closes beyond the prior lookback high or low, then labels a buy or sell with an ATR-based stop and a take-profit distance set by the TP multiplier. Optional boxes highlight bullish and bearish fair value
This indicator tracks opening range breakout (ORB) windows for the London and New York sessions and identifies ICT-style liquidity grabs. It calculates the high and low boundaries during the configured session periods and plots visual boxes directly on the pri
MACD Signals with Alert System combines multiple technical indicators into a unified signal and alert generator overlaid on the price chart. It calculates a Hull Moving Average, MACD histogram, three Exponential Moving Averages, Slow Stochastic, and Time Segme
This indicator plots an enhanced version of the traditional Ichimoku Kinkō Hyō on the main price chart. It calculates adaptive Tenkan-Sen and Kijun-Sen lines using dynamic lookback periods adjusted by volume, ATR volatility, and Chikou trend filters. Users can
This Pine Script v6 strategy is a validation probe that places competing stop entries close to price. At 02:45, while flat, it submits a long stop slightly above the close and a short stop slightly below the close. At 06:15, if a position is open, it closes ev
This indicator projects mirrored price and time structures across a user-defined axis on the price chart. It automatically identifies pivot highs and lows using configurable left and right lengths, matching them to a selected reference timestamp. The tool comp
An indicator for the price chart that builds a ladder of resistance and support levels from a daily range divided by a divisor, measured from the daily, weekly or monthly open, with extra levels unlocking on strong runs and optional Fibonacci lines inside each
Detects fair value gaps on the price chart and flags two proximity signals. The GZI signal appears when opposite fair value gaps overlap within a set number of bars, and the HV signal appears when a gap forms on a bar with the highest volume of the last 63, 25
This overlay strategy audits trend alignment with ADX, directional movement, and three exponential moving averages. A bull stack needs the fast average above the medium and the medium above the slow; a bear stack reverses that order. The audit awards a point f
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.