Synced with GitHub · updated today

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

NO.1 V1 Final Regime Router

by vedkanani123
1 stars

An overlay signal indicator that routes between three exclusive modes: a trend mode using Supertrend flips or Donchian continuation, a range fade mode, and a transition mode that trades breakouts of a finished Asia range. Shock candles, gaps, micro-ranges and

Indicator v6 Sessions & timeTrend Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V1 Final Regime Router

KC Combo Bear Tick

by nishpa800
1 stars

Tick-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear Tick
1 stars

A strategy that trades liquidity sweeps on the price chart. A bullish sweep is a low below the lowest low of the prior 20 bars that closes back above it with a lower wick longer than a set multiple of the body; a bearish sweep mirrors this at the highs. A volu

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Sovereign Liquidity Hunt
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLow

by ivansoft
1 stars

An indicator on the price chart that tracks the high, low, open and close of calendar periods, with session, day, week, month and year contexts, and keeps a short history of recent periods. It handles Moscow Exchange futures sessions with their main and evenin

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of HighLow

EXPC-tracker

by Allen1212
303 stars

This Pine Script indicator plots labels on the price chart to mark ARK Invest ETF buy and sell events for a selected stock. The main input setting is ETF type selection, defaulting to ALL or specific ETFs such as ARKQ. Labels appear below the chart price for e

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of EXPC-tracker

My Script

by ricardosantos79
261 stars

This indicator is a Pine Script v4 drawing experiment that stores ten recent price changes and a rounded RSI reading in arrays. It plots those values as circles in a separate pane, using plot offsets to place points horizontally and a gradient function to colo

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of My Script

Volume & Dollar Bars

by capissimo
114 stars

This indicator implements basic volume and dollar bar thresholds on the main price chart. It accumulates either traded volume or dollar volume (volume multiplied by price) until reaching a user-defined delta threshold. When the accumulated value crosses the de

Indicator v4 Volume
Updated 1 year ago · None stated GitHub repository of Volume & Dollar Bars
106 stars

This strategy enters a long position on Monday when the current bar falls inside the 1400-1601 session window. It closes that long on Wednesday inside the same window, and also exits at a percentage stop loss or take profit. Default stop loss is 4 percent and

Strategy v5 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Monday, Exit Wednesday
99 stars

This indicator calculates John Ehlers Trendflex in a separate pane. It pre-filters the chosen source with a two-pole SuperSmoother, sums the difference between the current filtered value and recent filtered values as a cumulative slope, then divides that slope

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Trendflex (TRENDFLEX)

History referencing

by be-thomas
65 stars

This Pine Script v4 indicator demonstrates history referencing on array values versus series values. It stores the close in a one-element float array, then plots the previous value of that array element beside the previous close. It also plots a 20-period simp

Indicator v4 Moving averages
Updated 5 days ago · GPL-3.0 GitHub repository of History referencing
47 stars

This indicator plots a rolling linearly weighted average of a chosen source on the price chart. Weights rise from the oldest bar to the newest, matching a weighted moving average, and a circular buffer updates the sums in constant time. During warm-up the deno

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Weighted Average (WAVG)

OutSide Bar Strategy

by TWODS-CAPITAL
37 stars

The OutSide Bar Strategy identifies outside bar candlestick patterns directly on the main price chart. It triggers a long entry when a bar's high exceeds the previous high and its low drops below the previous low, provided the bar closes higher than its open.

Strategy v5 Candlestick patternsBreakout
Updated 3 years ago · MIT GitHub repository of OutSide Bar Strategy
13 stars

This price-chart strategy looks for a long volume pattern: three or more candles with falling volume, then a higher-volume candle, while price is lower from the start of that sequence to the end. Long strict mode is on by default and short strict mode is off.

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder C002

Vein Exhaustion is a price-chart indicator that scores how stretched a directional move is before structure confirms a turn. It builds separate bull and bear scores from consecutive directional bars, EMA distance in ATR units, RSI and MFI extremes, volume-base

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Vein: Exhaustion [WavesUnchained]

MA & BB Levels [ST]

by eddiebelaval
7 stars

This indicator draws horizontal daily and weekly levels on the price chart from two exponential moving averages and a Bollinger-style envelope. It calculates EMA 9, EMA 20, and an EMA-based band with a configurable standard-deviation width, then requests those

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of MA & BB Levels [ST]

Key Levels Pro

by alboogycOdR
6 stars

The script plots horizontal lines on the price chart for key trading levels, including previous day high and low, daily session ranges split into Asia and London, and gaps labeled NDOG daily, NWOG weekly, and NMOG monthly. It optionally shows wick rejection sy

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Levels Pro

This indicator combines MACD calculations, Bollinger Bands, and Keltner Channels to identify trend conditions and momentum shifts. It plots colored MACD lines, dot signals, and a squeeze cloud in a separate pane to highlight overbought or oversold momentum lev

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Jerry Buy Sell Indicator Premium
2 stars

Divergence-Support/Resistence combines dual Zigzag pivot detection with momentum oscillators to identify divergence patterns and plot support and resistance levels directly on the price chart. Users can select from various built-in oscillators, such as RSI, CC

Indicator v5 DivergenceSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Divergence-Support/Resistence

Volatility Ratio (VR)

by mushroom-men-Trading
2 stars

The Volatility Ratio (VR) indicator measures short-term price range relative to average historical volatility. It calculates the current bar's True Range and divides it by an Average True Range (ATR) computed via Wilder's smoothed moving average with initial b

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Volatility Ratio (VR)

PF probe 52 - stop entry cancel

by pineforge-4pass
1 stars

This strategy compares an 8-period EMA with a 21-period EMA on the price chart. When the fast average is above the slow average it places a long stop at the prior bar high and cancels the pending short; otherwise it places a short stop at the prior bar low and

Strategy v6 Moving averagesBreakout Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 52 - stop entry cancel

NO.1 V3 Dual-Regime Router

by vedkanani123
1 stars

A price-chart indicator that classifies the market into trend, range, transition or shock regimes using an adaptive core, ATR, ADX, choppiness and efficiency measures. Each regime has its own sleeve: trend-following on structure and momentum, range-edge revers

Indicator v6 TrendBreakout
Updated 2 months ago · None stated GitHub repository of NO.1 V3 Dual-Regime Router

KC Combo Bear v4.6

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bear v4.6
1 stars

TN Sovereign Lorentzian v6 is a quantitative strategy that classifies price action regimes using multi-dimensional indicators and causal volume auditing. It generates entry signals based on RSI center-line crossovers, 10-period momentum, and price alignment re

Strategy v6 AI / machine learningTrend
Updated 2 months ago · None stated GitHub repository of TN Sovereign Lorentzian v6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLowTest

by ivansoft
1 stars

A test indicator in a separate pane that exercises an imported period high and low library. It detects session, day, week, month and year changes, with extra handling for Moscow Exchange futures sessions, and plots the change markers as lines so the period det

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of HighLowTest

FARO-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade marks for FARO on the price chart. It places dated labels above bars for recorded sales, including a sell mark on 17 January 2020 labeled as one ETF. The only input is an ETF selector whose sole option is ALL, so it does n

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

My Script

by ricardosantos79
261 stars

This indicator uses array operations to track recent high and low values. It defines helper functions to insert values into a fixed-size array. On each bar it calculates the 10-bar highest high and lowest low, then checks for the formation of a new high or low

Indicator v4 Support & resistanceMean reversion
Updated 4 years ago · None stated GitHub repository of My Script
114 stars

This indicator measures normalized buying and selling volume pressure in a separate pane. It rescales volume, open, and close prices over a selected lookback period using min-max normalization. Volume is categorized into bullish or bearish pressure based on ba

Indicator v4 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Volume Flow v3 (Rescaled Update)

This strategy takes long trades only. It enters when a fast simple moving average crosses above a slower one and either weekly CCI or ADX meets its threshold, depending on the toggles. It closes the long when price falls below a third moving average, and it ca

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Only Strategy with Dynamic Re-Entry and Exit

This indicator plots John Ehlers' truncated bandpass filter beside a standard infinite-impulse-response bandpass in a separate pane. It passes cycles near a chosen center period, with bandwidth setting how wide the passband is and length setting the finite tru

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Truncated Bandpass Filter (TBF)

History referencing

by be-thomas
65 stars

This indicator demonstrates history referencing on a one-element float array. On every bar it creates a new array, stores the current close in its only element, and reads that element one bar back. It also reads the previous close directly from the price serie

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of History referencing

Weighted Close (HLCC4)

by mihakralj
47 stars

This indicator calculates the classic weighted close, also called HLCC4, as one quarter of the high plus the low plus twice the close. It calls a small helper that multiplies the four price terms by 0.25 and plots the result as a yellow line of width two direc

Indicator v6
Updated 8 months ago · MIT GitHub repository of Weighted Close (HLCC4)

Parabolic SAR

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Parabolic Stop and Reverse directly on the price chart using cross markers. It tracks potential trend direction and reversal points as price moves, plotting dots above or below the price candles. The main input

Indicator v5 Trend
Updated 3 years ago · MIT GitHub repository of Parabolic SAR
13 stars

This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002

Vein: Pullback identifies temporary counter-trend retracements and signals when they end versus when structure breaks. It calculates a multi-layer confluence score from 0 to 10 based on trend quality, move weakness, structure preservation, and Fibonacci retrac

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Vein: Pullback [WavesUnchained]
7 stars

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]

Key Trading Levels Pro

by alboogycOdR
6 stars

Key Trading Levels Pro plots previous-day high and low, Asia and London session ranges, and new daily, weekly, and monthly opening gaps on the price chart. It can mark candles whose wicks touch a level while the body closes on the other side. Users toggle each

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Trading Levels Pro
3 stars

The Jerry Buy Zone Strategy calculates standard MACD line values and applies Bollinger Bands directly to the MACD line to identify momentum breakouts. Long entries trigger when the MACD line crosses above zero while remaining above the upper Bollinger Band, or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Jerry Buy Zone Strategy

Dominance Pie Chart

by regalouisei
2 stars

This indicator draws a pie chart of cryptocurrency market-cap dominance in a separate pane. It requests CRYPTOCAP close values for Bitcoin, Ethereum, several major altcoins, Tether, and the others bucket, then accumulates those shares into wedge angles. Precom

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dominance Pie Chart

Yang-Zhang Volatility (YZV)

by mushroom-men-Trading
2 stars

This indicator calculates Yang-Zhang historical volatility from open, high, low, and close prices, including overnight gaps. It estimates daily variance, smooths it with a bias-corrected RMA, and plots the square root of that smoothed variance as a single line

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Yang-Zhang Volatility (YZV)
1 stars

PF probe 53 - stop touch boundary is a strategy that draws on the price chart. It checks for specific UTC hours (2:15 for long, 14:15 for short) and enters a long position when no position exists by placing a stop order one tick beyond the previous bar's high.

Strategy v6 Sessions & timeSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 53 - stop touch boundary

Icosahedron

by morindok
1 stars

Icosahedron is a chart overlay that draws a wireframe icosahedron between two user-chosen time and price points. It scales fixed fractional coordinates by the time span and price difference of those points, then connects the resulting vertices with thin blue p

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Icosahedron
1 stars

A price-chart indicator that extends a three-regime signal engine (trend, range edge reversal, breakout) with higher-timeframe context and a transparent confidence score. The higher timeframe uses the previous completed bar, either auto-selected or set manuall

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V4 MTF Confidence Fusion

KC Combo Bear v4.7

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bear v4.7
1 stars

This strategy executes trades based on MACD line crossovers filtered by trend direction and histogram slope. Long positions open on bullish MACD crossovers when price is above the trend EMA and histogram momentum is rising. Short positions open on bearish cros

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MACD v6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance ma

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

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