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
99 stars

This indicator applies a natural logarithmic transformation to a chosen price series and plots the result in a separate pane. For each bar it returns the natural logarithm of the source when the value is positive, and returns a missing value when the source is

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Logarithmic Transformation (LOG)

Price vs Past

by be-thomas
65 stars

This indicator draws a one-row heatmap table at the bottom center of the price chart. On the last bar it compares the current high with each of the previous lookback highs. A cell is bull-colored when the current high is above that past high and bear-colored o

Indicator v4 Screeners & dashboards
Updated 5 days ago · GPL-3.0 GitHub repository of Price vs Past

MTF Charting

by g-moe
3 stars

This indicator plots multi-timeframe candlestick sequences directly on the price chart using boxes and lines. It projects historical candlesticks from up to five customizable higher timeframes alongside the current price action. Users can configure the timefra

Indicator v5 Candlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of MTF Charting
2 stars

Plots key period levels including Open, High, Low, and Equilibrium (EQ) for multi-timeframe intervals such as yearly and quarterly periods directly on the price chart. To prevent chart clutter, the script checks across active levels and suppresses duplicates.

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of No Duplicates Interval Range & EQ
1 stars

This strategy detects liquidity sweep patterns based on pivot high and pivot low levels calculated over configurable left and right bar periods. A bullish sweep occurs when a candle's low pierces below the most recent pivot low while closing back above it, tri

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Liquidity-Sweep-Probe-02-Sweep-Bar

Spiral Map

by morindok
1 stars

The Spiral Map indicator calculates spiral patterns on a price chart using a symmetric price level within user-defined time ranges. It generates pre-range and post-range spirals of Archimedean, Logarithmic, or Fibonacci types, scaled according to width and hei

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

VOB Ladder Watch

by nishpa800
1 stars

A read-only companion to the volume order block tools. It builds bullish zones for six sensitivity tiers from moving average crossovers, tracks the latest active zone midpoint of each, and checks whether the zones from the lowest tier upward sit at strictly as

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Ladder Watch

MASS-tracker

by Allen1212
303 stars

MASS-tracker places fixed historical labels on the price chart for ARK Invest purchases and sales of this stock. Green labels below bars mark buys and red labels above bars mark sells, each showing an X count of how many ARK ETFs traded the name that day. The

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

This overlay strategy scores alignment of seven moving averages, lengths 5 through 200, of a user-selected type. Full stacks count as up or down, and partial alignment can add a smaller score. A rolling high-low period flags the current extreme, while an optio

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of AlignedMA and Cumulative HighLow Strategy
99 stars

The sigmoid indicator applies the logistic function to a source series, transforming any real-valued input into the range between 0 and 1. It calculates the output using the formula S(x) = 1 / (1 + exp(-k * (x - x0))), where k is the steepness factor and x0 is

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Logistic Function (SIGMOID)

Priced Entry Demo

by be-thomas
65 stars

This strategy serves as an educational demonstration of price-conditioned order execution in Pine Script strategy design. Once a year filter condition is satisfied, the script places two long entry orders using stop prices set at specified increments above the

Strategy v4
Updated 5 days ago · GPL-3.0 GitHub repository of Priced Entry Demo

MTF Cipher Dots

by g-moe
3 stars

MTF Cipher Dots plots colored dots on the price chart based on WaveTrend oscillator calculations across multiple timeframes. It generates bull and bear signals by comparing WaveTrend values to thresholds, with dots appearing when conditions are met above or be

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of MTF Cipher Dots
2 stars

Order Chain [Kioseff Trading] is a realtime order flow indicator that tracks live price changes and volume flow in a separate pane. By utilizing intrabar persistent variables, it constructs an order chain visualization showing tick delta statistics and order v

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Order Chain [Kioseff Trading]

This strategy tracks liquidity sweeps across pivot highs and lows to trigger delayed reversal entries. It identifies pivots based on configurable left and right bar lengths and records sweeps when the price breaches a pivot but closes back inside it. Upon dete

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-03-reentry-on-sweep
1 stars

Finds volume order blocks, zones where heavy volume built up around a moving average crossover, and draws them on the price chart as support or resistance areas. Six sensitivity tiers each produce buy and sell tier signals with mutually exclusive handling, plu

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Full Tick-Friendly

MCRB-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest purchase and sale markers for MCRB on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text that counts how many ARK ETFs traded the stock that day. An ETF

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

This overlay strategy scores whether price and moving averages from 5 through 200 periods are fully or partially aligned, and it marks when the bar is a period high or low. Direction helpers compare a series with earlier bars over two configurable lookbacks. I

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of AlignedMA and Cumulative HighLow Strategy V2

Lowest Value (LOWEST)

by mihakralj
99 stars

This indicator plots the lowest value of a chosen source over a rolling lookback. It uses a monotonic deque so each bar updates the window minimum without scanning the whole period. A period input sets the lookback length, and a source input selects the series

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Lowest Value (LOWEST)

Priced Entry demo

by be-thomas
65 stars

This strategy demonstrates priced long entries. After the calendar year passes 2020, it counts bars and, on the first such bar, submits two long stop orders of quantity two that share an OCA cancel group. One stop sits 35 ticks above the bar high and the other

Strategy v4 Breakout
Updated 5 days ago · GPL-3.0 GitHub repository of Priced Entry demo

This overlay indicator marks the high and low of the 19:30 SAST Wednesday bar and draws a separate pair of horizontal lines for the first through fifth Wednesday of the month. Each Wednesday has its own high and low colours and line widths, and each pair can b

Indicator v5 Support & resistanceSessions & time

MTF EFI

by g-moe
3 stars

This indicator calculates Elder's Force Index (EFI) across multiple configurable timeframes and displays resulting signals directly on the price chart. Users can select the smoothing length, choose the moving average type (EMA, SMA, VWMA, RMA, or HMA), and tog

Indicator v5 VolumeOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI
2 stars

Oscillator Workbench — Chart plots a configurable blend of two built-in oscillators and an optional external oscillator on the price chart. It draws a weighted oscillator line and a reference moving average, coloring both by successive up or down states. Users

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of Oscillator Workbench — Chart [LucF]
1 stars

This strategy detects pivot highs and lows to establish swing structure, then identifies liquidity sweeps where price breaks the wick of the most recent pivot and closes back inside it. After a one-bar delay on continuation, it fires long entries on bullish st

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-integration
1 stars

This indicator calculates dynamic symmetry lines by reflecting lagged price points across upper and lower boundary bands. Users can choose between Bollinger Bands or Donchian Channels to define the baseline boundaries. The script generates alternating BUY and

Indicator v5 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Spiral Symmetric Signals
1 stars

Tick-chart-friendly overlay indicator extending the volume order block engine with multi-zone and cluster detection. Six sensitivity tiers build zones from fast and slow EMA crossovers, and the default view shows only VLB bull and bear markers, which need zone

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Multiples Tick-Friendly

META-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell events for META on the price chart. It places green labels below bars for purchases and red labels above bars for sales, with a same-day count of how many selected ARK ETFs traded the stock. The ETF in

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

This strategy scans the price chart for a large set of classic candlestick patterns and lets the user enable or disable each pattern. It classifies setups as bullish, bearish, or both, and can require price to be above or below an SMA 50, or aligned with both

Strategy v4 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of All Candlestick Patterns Strategy

Lunar Phase (LUNAR)

by mihakralj
99 stars

This indicator calculates the lunar phase for each bar from the bar open timestamp using orbital elements, perturbation terms, and epoch corrections. It plots a continuous phase value from 0 at new moon to 1 at full moon in a separate pane. It marks new moon n

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Lunar Phase (LUNAR)

Protected array size

by be-thomas
65 stars

This indicator creates a float array of user-specified size in Pine Script v4 and fills it with sequential integer indices from zero. It then plots the array size on a separate pane. The main input setting controls the array size, which determines the length o

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Protected array size

MTF EFI Strategy

by g-moe
3 stars

This strategy uses Elder Force Index on the price chart, combining price change with volume and a chosen moving-average smoother. Separate buy and sell thresholds can be enabled on up to seven timeframes, with 15, 30, 60 and 120 minutes on by default. Higher-t

Strategy v5 Oscillators & momentumVolume Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI Strategy

Percent Rank

by regalouisei
2 stars

The Percent Rank indicator plots the percent rank of closing prices for ten different cryptocurrency symbols in columns within a separate pane. It calculates the rank relative to previous values over a user-defined length period, defaulting to 60 bars. Columns

Indicator v5 Oscillators & momentumSupport & resistance
Updated 8 months ago · None stated GitHub repository of Percent Rank

This strategy detects market regime state transitions based on pivot high and low break levels. It calculates pivot highs and lows using a specified strength setting and updates the market state when the close price breaks above the last pivot high or below th

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Market Shift Probe 03 Shift Driven Entry
1 stars

This strategy calculates dynamic upper and lower boundaries over a specified lookback period alongside expanding mathematical spiral levels. It monitors price rejections where candles penetrate the upper or lower spiral bounds but close back within them. When

Strategy v5 Support & resistanceMean reversion
Updated 7 weeks ago · None stated GitHub repository of Spiral Symmetric Strategy
1 stars

Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Multiples Tick-Friendly

MGA-tracker

by Allen1212
303 stars

This Pine Script indicator plots ARK Invest trade labels directly on the price chart for selected stocks. Labels show buy or sell events with share volumes and ETF weights, including counts for multiple ETFs trading the same day. The main input setting allows

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of MGA-tracker

All in One Strategy

by hasnocool
106 stars

This strategy overlays multiple switchable trading models onto the main price chart, allowing the user to select between standard RSI crossing, Connors RSI, MACD, EMA, or Stochastic signals. Entries execute in long, short, or bidirectional modes when the selec

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of All in One Strategy

MA Envelope (MAE)

by mihakralj
99 stars

The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p

Indicator v6 Moving averagesSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MA Envelope (MAE)

Range Analysis

by be-thomas
65 stars

Analyzes price action over a rolling five-day lookback window calculated from the current real-time timestamp. The indicator identifies bars that fall within the five-day period, computes the highest high across that window, and plots a marker at that price le

Indicator v4 Support & resistance Repaints
Updated 5 days ago · GPL-3.0 GitHub repository of Range Analysis

Supertrend

by alboogycOdR
6 stars

This indicator calculates and plots the standard Supertrend bands directly on the price chart to determine trend direction. It computes volatility bands using either Pine's built-in RMA-based ATR or an SMA-based true range, adjusting dynamically with close pri

Indicator v4 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Supertrend

MTF EFI Test

by g-moe
3 stars

This overlay indicator calculates a smoothed Elder Force Index and compares it across up to seven user-selected timeframes. Each timeframe can be switched on or off and given separate buy and sell threshold values. The force index length and the smoothing meth

Indicator v5 Oscillators & momentumVolume Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI Test

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