Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

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.

New scripts by RSS
10,850 scripts
3 stars

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.

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Miller Boy Custom Study

Minervini Qualifier

by regalouisei
2 stars

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

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Minervini Qualifier
1 stars

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

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 97c Range Expansion Pending Stop

VOB Asym Combo v10.1

by nishpa800
1 stars

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

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.1
1 stars

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,

Strategy v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of TnSovereign Supertrend Volume

KMDA-tracker

by Allen1212
303 stars

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

Indicator v4
Updated 2 years ago · None stated GitHub repository of KMDA-tracker

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

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Abdoli's Heikin Ashi Smoothed Buy & Sell Strategy Rev.4
99 stars

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 +

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kendall Rank Correlation

Opening High/Low

by be-thomas
65 stars

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

Indicator v4 Support & resistanceSessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Opening High/Low

Williams Fractals

by TWODS-CAPITAL
37 stars

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

Indicator v5 Support & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Williams Fractals

UnfairValueGap B003

by ruckard
13 stars

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

Strategy v5 SMC / ICT / price actionMoving averages
Updated 1 year ago · None stated GitHub repository of UnfairValueGap B003

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

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

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System
3 stars

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

Indicator v5 Sessions & time
Updated 5 months ago · None stated GitHub repository of Moon Phases Source Code

Modern Portfolio Theory

by regalouisei
2 stars

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

Indicator v5 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Modern Portfolio Theory

PF Probe 98 - Inside-Bar Engulf

by pineforge-4pass
1 stars

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

Strategy v6 Candlestick patterns
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 98 - Inside-Bar Engulf
1 stars

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

Indicator v5 VolumeSMC / ICT / price action Repaints
Updated 7 weeks ago · None stated GitHub repository of Pro Footprint & Imbalance

Targets For Many Indicators

by vedkanani123
1 stars

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

Indicator v5 Support & resistance
Updated 2 months ago · None stated GitHub repository of Targets For Many Indicators
1 stars

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

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.1 (Tick)

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

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Breakout

KMTUY Tracker

by Allen1212
303 stars

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

Indicator v4
Updated 2 years ago · None stated GitHub repository of KMTUY Tracker

ABU Euroramp

by hasnocool
106 stars

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

Strategy v4 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of ABU Euroramp

KST Oscillator

by mihakralj
99 stars

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

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of KST Oscillator

Out of Bounds Index

by be-thomas
65 stars

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

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Out of Bounds Index

Williams Percent Range

by TWODS-CAPITAL
37 stars

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

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Williams Percent Range
13 stars

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

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Zignaly Risk M. A079

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

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

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 Buy Sell

by g-moe
3 stars

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

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Buy Sell

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

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Modified Mannarino Market Risk Indicator
1 stars

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

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 99 - Keltner Channel Break
1 stars

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

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Ultimate Buy/Sell Signal Pro

VOB Asym Combo v10.2

by nishpa800
1 stars

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

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.2

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

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Squeeze

KODK-tracker

by Allen1212
303 stars

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

Indicator v4
Updated 2 years ago · None stated GitHub repository of KODK-tracker
106 stars

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

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Accurate BUY & SELL 5 mins TF by RR
99 stars

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

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kurtosis, tailedness (KURTOSIS)

Out of bounds index

by be-thomas
65 stars

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

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Out of bounds index

Woodies CCI

by TWODS-CAPITAL
37 stars

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

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Woodies CCI

Zignaly2Beta

by ruckard
13 stars

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

Library v5
Updated 1 year ago · None stated GitHub repository of Zignaly2Beta

WED & Midnight DST System

by alboogycOdR
6 stars

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

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & Midnight DST System

Mrhyh21 Levels

by g-moe
3 stars

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.

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Levels

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

Indicator v5 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Monte Carlo (Polyline Traceback) [Kioseff Trading]

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

Strategy v6 SMC / ICT / price actionBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-01-swing-bos-trigger

Pyramid

by morindok
1 stars

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

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Pyramid

Volume Delta Trailing Stop

by vedkanani123
1 stars

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

Indicator v5 VolumeTrend Repaints
Updated 2 months ago · None stated GitHub repository of Volume Delta Trailing Stop

VOB Asym Combo v10.3

by nishpa800
1 stars

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

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.3

About the Pine Script Library

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.

Compare brokers