Synced with GitHub · updated today

Free TradingView Pine Scripts

8,340 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
8,340 scripts

SuperTrend

by trsdn
6 stars

The SuperTrend indicator computes upper and lower bands from ATR values using a multiplier on a selected source such as HL2. It maintains adaptive trend lines that shift color from green to red based on price position relative to the bands. The green line func

Indicator v5 TrendVolatility & bands
Updated 5 days ago · MIT GitHub repository of SuperTrend

Capital41 Fusion Scalp

by damianpitt
6 stars

Capital41 Fusion Scalp is an overlay indicator that identifies high-confluence setups by combining four core conditions: EMA trend direction, RSI momentum, Williams %R levels, and ATR with volume expansion. Bullish and bearish signals are plotted on the chart

Indicator v6 TrendOscillators & momentum
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Scalp

This indicator identifies institutional Candle Range Theory (CRT) patterns directly on the main price chart. It detects two-candle rejection patterns, three-candle classic setups, inside bars, and outside bars. Users can enable time-anchored 4-hour CRT schedul

Indicator v6 Candlestick patternsSMC / ICT / price action

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price-action indicator for TradingView that implements Rob Smith's TheStrat methodology using Pine Script v6. It detects patterns including inside bars, hammers, shooters, failed 2s and outside bars across six configurable t

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of TheStrat Suite

Stochastic W%R

by SiegerTerpstra
5 stars

Stochastic W%R is a momentum oscillator that combines Stochastic smoothing techniques with Williams %R concepts. It calculates a smoothed K line alongside a D signal line derived from a simple moving average of K. The indicator plots in a separate pane with bo

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Stochastic W%R

CB LinReg

by jerryinyang
5 stars

CB LinReg calculates linear regression channels across primary and multi-timeframe periods. It computes linear regression lines along with standard deviation channel bands to analyze price trends and potential reversal zones. Settings allow users to adjust pri

Indicator v4 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of CB LinReg

50 EMA + 200 EMA

by krosenfeld7
5 stars

This indicator plots a short-term 50-period exponential moving average (EMA) and a long-term 200-period EMA directly on the main price chart. It generates long and short signals when price crosses the 50 EMA in alignment with the broader trend defined by the r

Indicator v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 50 EMA + 200 EMA

Antigravity Superstar

by eltonaguiar
4 stars

This strategy draws on the price chart and combines a triple EMA stack, a volume spike with a minimum price move, and a MACD line-signal crossover. It enters long or short only when at least the chosen number of those three signals agree, with an optional RSI

Strategy v6 TrendMoving averages
Updated today · None stated GitHub repository of Antigravity Superstar

polyglot_lib

by InNoobWeTrust
4 stars

polyglot_lib is a Pine Script utility library providing shared technical analysis functions and calculations. It includes flexible moving average algorithms for SMA, WMA, and EMA, custom rolling moving average helpers, a Relative Liquidity Index derived from R

Library v6
Updated today · None stated GitHub repository of polyglot_lib
4 stars

This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of DAX Gap Fade [trugurpala]

MTF Trend Dashboard Lab

by mitchell-917
4 stars

This indicator evaluates and displays market trend direction across four user-defined timeframes simultaneously. For each timeframe, it calculates a moving average and compares the timeframe close price against it to determine a bullish, bearish, or neutral bi

Indicator v5 Screeners & dashboardsMoving averages
Updated 11 months ago · Custom licence GitHub repository of MTF Trend Dashboard Lab

Smart Money Concepts

by Hugs-4-Bugs
4 stars

This indicator maps smart money structure on the price chart. It labels internal and swing breaks of structure and changes of character, and it can color candles by the detected trend. It draws internal and swing order blocks filtered by ATR or cumulative mean

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Concepts

Nazilli SuperTrend

by Kalumur
4 stars

The Nazilli SuperTrend indicator combines an ALMA moving average with multiple SuperTrend configurations to identify trend changes on the price chart. It plots the ALMA line in blue and red colors for up and down trends, along with SuperTrend lines for four di

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Nazilli SuperTrend

Swing Trade

by might-tree
4 stars

This strategy plots three swing lines on the price chart. A small swing marks the current high after one higher high, or the current low after one lower low. A medium swing requires two consecutive rising highs or falling lows, and a large swing requires three

Strategy v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Swing Trade
4 stars

This indicator calculates multi-timeframe metrics and presents them in an on-chart table panel. It inspects daily (1D) and weekly (1W) higher-timeframe data to analyze swings, support and resistance levels, RSI momentum, and relative volume conditions. The pan

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 1D 1W

EMA-Tarama

by gocaman
3 stars

This indicator plots six exponential moving averages on the price chart and places buy and sell labels when the first EMA crosses the third. It calculates MACD from fast and slow averages, with selectable SMA or EMA smoothing, and classifies the histogram as r

Indicator v5 Moving averagesOscillators & momentum
Updated today · None stated GitHub repository of EMA-Tarama
3 stars

This strategy overlays the price chart to generate trading signals by combining Quantitative Qualitative Estimation (QQE), a custom SuperTrend, and a CCI ATR trend metric. It colors candles green or red according to combined trend alignment and enters long or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Bankai DTEK Strategy

RSI + MACD Strategy

by monch1962
3 stars

This strategy combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of RSI + MACD Strategy

Stella's Volume Profile

by stella-entry
3 stars

Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Volume Profile

HSN Algo

by IAMATOMIC001
3 stars

Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of HSN Algo

This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Relative Strength Index (Momentum Oscillator)

This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Jawaun's Advanced Order Block Finder

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r

Indicator v5 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Last Time at Price

by piecioshka
2 stars

Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained

Indicator v6 Support & resistance
Updated 10 days ago · MIT GitHub repository of Last Time at Price

RSI Divergence Indicator MP

by midngtpickle
2 stars

The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP

Oscillator

by TamTH-Dev
2 stars

The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o

Indicator v6 Oscillators & momentum Repaints
Updated 5 weeks ago · None stated GitHub repository of Oscillator

MirPapa_Lib_trend

by alvinng214
2 stars

MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM

Library v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MirPapa_Lib_trend

ZEGUELA DEMATRON AXS 2H

by danielvm-git
2 stars

This strategy calculates and plots three double exponential moving averages (DEMA) on the price chart using lengths of 8, 24, and 0. It generates long signals on DEMA crossovers and short signals on crossunders. Positions are entered based on these signals and

Strategy v4 Moving averagesTrend Repaints
Updated 2 months ago · MIT GitHub repository of ZEGUELA DEMATRON AXS 2H

This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · Apache-2.0 GitHub repository of Stock Info Dashboard [thetanerd]

Lakshmi Zones v2

by voletiramu
2 stars

This indicator detects and plots dynamic supply and demand zones directly on the price chart by combining Volume Profile peaks, daily equal highs and lows, and fair value gap levels. Nearby levels are merged according to a user-defined dollar threshold. The sc

Indicator v6 Support & resistanceVolume Repaints
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v2

Alper

by avatar-lavventura
2 stars

Alper is a multi-indicator trading strategy combining a WaveTrend oscillator, RSI, and Squeeze Momentum logic based on Bollinger Bands and Keltner Channels. Operating within a user-defined backtest time window, it plots WaveTrend lines, overbought and oversold

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

Grid Bot [psyll]

by cullyk
2 stars

Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use

Strategy v5 Mean reversionSupport & resistance
Updated 8 months ago · MIT GitHub repository of Grid Bot [psyll]
2 stars

This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions

Indicator v6 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of CVD - Cumulative Volume Delta (Chart)

Momentum-based ZigZag + 趋势

by wynnforthework
2 stars

This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable

Strategy v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Momentum-based ZigZag + 趋势

Inside Bars

by etnt
2 stars

This indicator marks inside bars, candles whose high and low sit entirely inside an earlier parent bar’s range, including nested sequences of inside bars. It stores the parent bar’s high and low when a new inside-bar sequence starts and draws those levels on t

Indicator v5 Candlestick patternsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Inside Bars

Interpolation

by Electrified-Trading
2 stars

Interpolation is a Pine Script utility library providing mathematical interpolation and easing functions, including linear and quadratic transitions. Designed for signal processing, custom smoothing algorithms, and sigmoid transformations, each exported functi

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Interpolation

VGF Price-Volume TEMA

by ryangaraygay
2 stars

This indicator colors chart bars based on a Triple Exponential Moving Average (TEMA) applied to candle body volume (candle body multiplied by volume). It categorizes market flow into trending bullish, trending bearish, or non-trending messy conditions based on

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VGF Price-Volume TEMA

HTF EMA

by Web3Degenerate
2 stars

This Pine Script indicator plots a higher-timeframe exponential moving average on the price chart. The script calculates the EMA using a configurable length and timeframe, then applies request.security to retrieve the value without repainting. It draws the lin

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of HTF EMA

HTF Candles & Pivots

by itmakesyousick
2 stars

HTF Candles & Pivots is an indicator that overlays high time frame candles and pivot points on the price chart. It plots customizable candles with options for thickness, wicks, fill, history shift, and labels including day, average, and TD sequence. The script

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This strategy calculates higher-timeframe price levels and multi-timeframe Bollinger Bands to identify price zone interactions directly on the main chart. It uses daily source prices and 240-minute Bollinger Bands, styling them with dynamic gradient coloring b

Strategy v4 Volatility & bandsSupport & resistance Repaints
Updated 3 years ago · None stated GitHub repository of Time PriceZones Strat Testing

This indicator combines a Nadaraya-Watson kernel regression estimator with moving average trend overlays. It recalculates kernel-weighted lines across historical bars on the latest candle, plotting reversal arrows when the curve direction shifts. Additionally,

Indicator v4 Moving averagesTrend Repaints
Updated 4 years ago · MIT GitHub repository of Nadaraya-Watson Estimator + Moving Average Colored EMA/SMA

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