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.
Miller Boy Custom Study calculates a 105-period Simple Moving Average (SMA) of close prices, functioning as a trend baseline. It identifies buy signals when a bar open price crosses above the SMA baseline and sell signals when the open price crosses below it.
Calculates Mark Minervini Trend Template criteria to identify stocks in strong uptrends. It evaluates key conditions based on 50-day, 150-day, and 200-day Simple Moving Averages, 52-week high and low price ranges, and relative strength against a customizable r
A test strategy from a reference corpus that arms pending stop entries after a range expansion. When the previous bar's range exceeds a multiple of the prior ATR, it places a buy stop at the previous high if that bar closed up, or a sell stop at the previous l
This indicator projects geometric symmetry channels and sloped price levels directly on the price chart. It calculates price slopes from two user-selected anchor price levels and anchor timestamps, applying an optional slope multiplier such as the golden ratio
An overlay indicator that draws a SuperTrend-style support and resistance line from smoothed prices and an ATR multiple. A buy or sell label appears when the trend direction flips, and an optional ADX threshold suppresses flips in sideways markets. Settings co
Detects volume order block zones across six sensitivity tiers and draws zone lines on the price chart. This version shows only combination signals rather than individual tier plots: strict ladder patterns, plus lanes that combine a rolling highest-volume event
A basic Supertrend strategy with an optional volume filter, drawn on the price chart. The Supertrend line is calculated from ATR length and multiplier. A long or short entry is taken in the trend direction when volume exceeds a multiple of its moving average,
KMDA-tracker is an overlay indicator that marks recorded ARK Invest sales of KMDA on the price chart. It places red downward labels above bars at fixed calendar times, with text showing a sell and a count of one. The only input selects an ETF filter, and the s
This strategy calculates and plots smoothed Heikin-Ashi candles directly onto the main price chart using exponential moving averages of open, high, low, and close prices. It enters a long position after three consecutive bullish smoothed candles with sequentia
This indicator plots Kendall's Tau-a rank correlation between a chart source and the close of a second symbol. It counts concordant and discordant pairs inside a rolling window and divides their difference by the number of pairs, producing a value from -1 to +
This indicator tracks and plots the high and low price levels from the first bar of a specified trading session directly on the price chart. Users can configure the target session time window using input settings. When a new session starts, the script captures
This indicator identifies market turning points based on Bill Williams' fractal concept. It detects local price extrema by comparing a center bar's high or low against surrounding bars across a configurable period setting. Bullish and bearish fractals are plot
This strategy calculates the distance between the current price and the opposite end of a recent price gap. It trades against gap completion under the assumption that price will resume the prevailing trend after a partial gap fill. Take profit and stop loss va
This indicator tracks and plots key price levels based on specific weekly and daily time anchors. It identifies the high, low, and open prices for the first Wednesdays of the month, automatically adjusting for US Daylight Saving Time changes. Additionally, it
This indicator calculates lunar cycle transitions based on an astronomical synodic reference timestamp and cycle length. It plots circular markers directly on the price chart to highlight full moon and new moon events, placing full moons at the top and new moo
Modern Portfolio Theory is an indicator that computes portfolio metrics across a basket of cryptocurrency assets using user specified weights. The script supports ten symbols including Bitcoin, Ethereum, Aave, Binance, Solana, XRP, Ethereum Classic, Cardano, A
PF Probe 98 - Inside-Bar Engulf is a strategy that detects single-bar inside range patterns paired with candle direction filters. It identifies inside bars where the high is lower than the previous high and the low is higher than the previous low. A long entry
This indicator calculates estimated buy and sell order flow volume across ten price levels for the five most recent candles. It displays a footprint volume matrix table in a separate pane that shows estimated bid and ask volume breakdown per price bin. When vo
An overlay tool that draws target levels on the price chart when a user-defined condition fires. Each target compares Source A with Source B using cross over, cross under, cross or equal, and sources can be an external series or one of dozens of built-in indic
Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.1 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It
A breakout strategy that scores setups from 0 to 100 using a trend template of stacked moving averages, a volatility contraction check, a squeeze test with Bollinger and Keltner bands, and volume flow. A custom free energy versus fractal entropy measure acts a
KMTUY Tracker plots historical buy and sell transactions executed by ARK Invest funds directly onto the price chart. The indicator uses historical trade timestamps to render visual labels indicating buy or sell events, alongside the count of participating fund
This strategy executes a time-based long entry at 02:00 exchange time, targeted around the European market open. It opens a position of two units and applies fixed-point profit and risk management. If price drops five points below the entry, a full stop loss t
This indicator plots the Know Sure Thing oscillator in a separate pane. It computes four rates of change on the selected source, smooths each with a simple moving average, and combines them with weights of one through four. A further simple moving average form
This educational script demonstrates array handling and error testing based on TradingView Pine Script documentation examples. It initializes an integer array variable to na, attempts to append an integer value to it using the array push function, and displays
Calculates the classic Williams %R momentum oscillator and displays it in a separate indicator pane. It measures the relationship between the current source price and the highest high and lowest low over a user-defined lookback period. The script plots static
This strategy provides a moving average crossover system combined with Zignaly crypto platform alert integration and built-in risk management. It enters long positions when a 14-period simple moving average crosses above a 28-period SMA, and enters short posit
This indicator plots recurring Wednesday and midnight price levels on the price chart. It marks the high, low, and open of early Wednesdays each month, capturing them near 20:30 South African time and shifting that clock for US daylight saving. It also draws t
Mrhyh21 Buy Sell combines Parabolic SAR trend tracking with a 14-period RSI filter to trigger entry signals. It plots buy, strong buy, sell, and strong sell labels directly on the price chart when the Parabolic SAR direction aligns with specified RSI threshold
This indicator plots a market-risk reading in a separate pane. It multiplies a selected USD-strength series by a yield series and divides by a denominator, defaulting to 1.61. An optional modified mode multiplies that result by a debt-to-GDP factor, using eith
This strategy calculates Keltner Channels using an Exponential Moving Average (EMA) for the midline and Average True Range (ATR) scaled by a multiplier for band width. It triggers a long entry when the close price crosses above the upper band and a short entry
Combines five indicator votes into one score in a separate pane. MACD versus its signal line, RSI against 50, price against the Ichimoku cloud, price against the Bollinger basis and CCI against zero each add plus or minus one, and the total is scaled to a 0 to
An overlay indicator that plots a Hull moving average, fast and slow EMAs and a Supertrend, then prints buy or sell labels when all agree. A buy needs price above the Hull average, the fast EMA above the slow one, a bullish Supertrend, RSI above its level and
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. It shows combination lanes rather than individual tier plots: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volu
A volatility squeeze strategy on the price chart. It detects when Bollinger Bands contract inside Keltner Channels, then waits for the squeeze to release. A long or short entry is considered when price closes outside the band on release and a custom free energ
This indicator overlays historical buy and sell transactions made by ARK Invest funds for Eastman Kodak Company (KODK) directly onto the price chart. It renders hardcoded labels on specific transaction dates, displaying trade directions and the number of parti
This strategy calculates weighted composite scores by evaluating conditions from multiple technical indicators, including EMAs, Supertrend, Parabolic SAR, HMA, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. It plots signals directly on the price c
This indicator calculates excess kurtosis, a measure of distribution tailedness, for a chosen source over a rolling lookback. It keeps running power sums and a circular buffer so each bar updates the fourth-moment statistic without rebuilding the window. The v
This indicator creates a three-element float array and writes the loop counter into indexes 1 through 3. Because a size-3 array only accepts indexes 0, 1, and 2, the last write sits past the end of the array. It then removes the last element with array pop and
Woodies CCI is a momentum oscillator indicator that calculates two versions of the Commodity Channel Index: a Turbo version and a standard 14-period version. It plots the CCI Turbo as a green line, the CCI 14 as a red line, and a histogram that changes color t
This library provides helper functions to format and build JSON webhook alert payloads for the Zignaly automated trading platform. It constructs formatted messages containing parameters such as trading pair, exchange, account type, leverage, margin mode, hedge
This indicator plots key historical support and resistance levels based on Wednesday trading sessions and daily midnight opens adjusted for UTC+2 daylight saving time. It calculates and draws high, low, and open lines from 15-minute session data across multipl
This indicator plots horizontal lines on the price chart for pre-market high and low, prior-day high and low, prior-week high and low, and prior-month high and low. It customizes pre-market session start in EST with options for line colors, labels, and styles.
This indicator runs Monte Carlo price-path simulations from recent logarithmic returns and draws the resulting forecast paths as polylines on the price chart. It samples either a normal distribution or a bootstrap of stored returns, controlled by a seed, simul
Detects swing break-of-structure (BOS) levels using confirmed pivot highs and lows. It records the most recent confirmed swing points and triggers a long trade when the bar closes above the last pivot high, or a short trade when it closes below the last pivot
Pyramid is a geometric drawing tool that plots a 3D pyramid structure directly on the price chart. The user selects two anchor points on the chart to define the time and price dimensions. Once set, the script calculates relative time and price offsets to draw
An overlay indicator that estimates up and down volume from lower-timeframe candles, from 1 second to 1 minute, and builds a trigger line when volume delta disagrees with the candle color. A signal appears when price breaks that line, and a trailing stop follo
Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Output is limited to combination lanes: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volume events paired with
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.