Synced with GitHub · updated yesterday

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

MA Rate of Change

by suyons
7 stars

This indicator calculates a user-selected moving average of the source and plots that average's rate of change in a separate pane. Users choose among SMA, EMA, WMA, HMA, RMA, VWMA, and ALMA, plus length and source. ROC length and a multiplier scale the plotted

Indicator v5 Moving averagesOscillators & momentum
Updated 4 months ago · None stated GitHub repository of MA Rate of Change
6 stars

The Capital41 Structure Swings v3 indicator tracks market structure on the main price chart using pivot detection. It identifies swing highs and swing lows based on a user-defined pivot length, plotting labels and horizontal dotted level lines at active swing

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 8 weeks ago · MIT GitHub repository of Capital41 Structure Swings v3
6 stars

This trading strategy detects key support and resistance zones on the price chart by identifying candle rejection wicks over a customizable lookback period. It filters potential trades using an Exponential Moving Average (EMA), Change in Status/Direction (CISD

Strategy v5 Support & resistanceTrend
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy

This indicator is a research diagnostic that builds a volume profile over a user-defined swing range and draws it on the price chart. It allocates each bar's volume by exact high and low tick overlap across fine, base, and coarse row sizes. It marks a volume n

Indicator v6 Volume
Updated 3 days ago · MPL-2.0 GitHub repository of VP RSD Local Node Edge Consensus Diagnostic
5 stars

This indicator measures the drift or directional slope of a series relative to its deviation or range over a chosen lookback period. It can transform the input series by differencing, integrating, or keeping the original prices. The metric evaluates the slope

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Quick scan for drift

Charles' RSI Strategy

by jerryinyang
5 stars

This overlay strategy combines RSI, which can be read from another timeframe, with fast and slow exponential moving averages. It sequences overbought and oversold crosses with returns into a base zone, optionally counting those events only when the moving-aver

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of Charles' RSI Strategy

This long-only strategy overlays 50-period exponential moving averages taken from the daily and four-hour timeframes. It opens a long trade when price is above the daily average, crosses above the four-hour average, and closes above the previous bar high. Exit

Strategy v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Daily Trend + 4H Reversal + 15 Min Pressure Long Strategy
4 stars

This indicator is a live strategy scanner for cryptocurrency pairs. It runs six strategies on the current chart, tracks their wins and losses, and rates them to show the best one for this pair and timeframe. It uses ATR for adaptive TP/SL, auto-scales based on

Indicator v5 Oscillators & momentumVolatility & bands
Updated yesterday · None stated GitHub repository of Crypto Pair Selector v2 STEPFUN

Noob's Indicators

by InNoobWeTrust
4 stars

This Pine Script indicator plots multiple exponential moving averages in a separate pane for technical analysis. It calculates Elliott wave EMAs using Fibonacci wave counts of 34 and 89, plus 200-session and golden ratio lines. Additional Pythagorean cloud lev

Indicator v5 Moving averagesSupport & resistance
Updated yesterday · None stated GitHub repository of Noob's Indicators
4 stars

This strategy trades on the price chart using a fast and slow exponential moving average crossover. It enters long when the fast EMA crosses above the slow EMA and short when it crosses below, but only during the London or New York session in GMT. Each entry s

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · MIT GitHub repository of EUR/USD Forex Strategy [trugurpala]
4 stars

This indicator tracks the high and low of a user-defined intraday session and plots them as broken horizontal lines on the price chart. It can also show the previous session extremes and places a label at each session start. The session window, previous-level

Indicator v5 Sessions & timeSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Session High/Low Indicator [Lab]

VIX Trending

by dearvn
4 stars

The VIX Trending indicator plots on the price chart for the VIX symbol. It computes EMA values on 1m and 5m timeframes using security requests and detects trend shifts via consecutive high or low breaks along with volume. Buy signals trigger on upward EMA alig

Indicator v5 TrendOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of VIX Trending

P-MACD TARAMA2

by gocaman
3 stars

P-MACD TARAMA2 calculates a MACD from a fast and slow moving average and plots the MACD line, signal line, and histogram in a separate pane. It marks MACD and signal crossovers with circles and includes pivot-based bullish and bearish divergence settings. User

Indicator v5 Oscillators & momentumDivergence
Updated yesterday · None stated GitHub repository of P-MACD TARAMA2

jash_GGMA_Granville

by jash-git
3 stars

Calculates five Exponential Moving Averages (EMAs 3, 13, 34, 55, and 144) based on Fibonacci sequence lengths to combine Guppy Multiple Moving Average (GMMA) concepts with Granville's moving average rules. Plots all moving average lines directly on the main pr

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of jash_GGMA_Granville

This indicator calculates a simple or exponential moving average and dynamically colors its plot based on the slope angle of the average line. The angle is calculated using an ATR-normalized arctangent formula over a user-defined lookback period. Green indicat

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Color Changing Moving Average
3 stars

This multi-functional technical indicator overlays custom volume profile mapping and Smart Money Concepts tools directly on the main price chart. It identifies and plots order blocks, breaker blocks, market structure breaks, and range levels alongside support

Indicator v5 VolumeSMC / ICT / price action
Updated 12 months ago · None stated GitHub repository of VP(Maps) + OB + S&R + GGSHOT + HH
3 stars

This strategy combines the Stochastic Oscillator with Chaikin Money Flow (CMF) to generate trading signals on the price chart. It enters long positions when the Stochastic %K line crosses above the %D line while CMF is above 0.1, and enters short positions on

Strategy v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Stochastic and CMF Strategy

Time Window Highlight

by piecioshka
2 stars

Time Window Highlight is an intraday chart overlay that shades specific daily time windows with background boxes. It measures price performance from the start of the defined time window to the latest point within it, coloring the background green when price ri

Indicator v6 Sessions & time
Updated 11 days ago · MIT GitHub repository of Time Window Highlight

PA Helpers

by TamTH-Dev
2 stars

PA Helpers is a price action visual tool that plots multi-timeframe exponential moving averages and psychological round price levels directly on the price chart. It calculates up to three customizable EMAs with individual timeframe, period, and color controls.

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 5 weeks ago · None stated GitHub repository of PA Helpers

Alpy Kazan

by avatar-lavventura
2 stars

Alpy Kazan combines a WaveTrend oscillator with a Bollinger Bands and Keltner Channels squeeze detector. It plots the WaveTrend lines, overbought and oversold boundary levels, and visual crossover markers in a separate pane, while highlighting crossover bars o

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

The HTF Candle Volume Thermometer indicator renders higher-timeframe candles on the price chart overlaid with volume heatmaps. It calculates internal volume distribution across price bins defined by ATR step sizes. Bins with higher trading activity are highlig

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of HTF Candle Volume Thermometer [ChartPrime]

Conditional Volatility (CV)

by mushroom-men-Trading
2 stars

Conditional Volatility (CV) calculates annualized volatility using a GARCH(1,1) econometric model based on log returns of closing prices. It plots the resulting annualized variance percentage as a continuous line in a separate pane to display volatility dynami

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Conditional Volatility (CV)

The strategy combines support and resistance levels with RSI or MFI momentum oscillators, optional WaveTrend indicators, and Bollinger Bands filters. Strategy logic evaluates trade signals on either Heikin Ashi or standard candle data to execute DCA entries wi

Strategy v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Support and Resistance with RSI and Trend Filter

Support Resistance and Trend

by Electrified-Trading
2 stars

This Pine Script utility library provides exported helper functions and data structures for calculating market trend directions and key support and resistance boundaries. It includes a custom SuperTrend function with configurable bar confirmation requirements

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Support Resistance and Trend

PSMC - Namespaces

by Web3Degenerate
2 stars

This indicator plots the 14-period RSI oscillator on the chart. It also demonstrates string handling by converting a fixed string to a number and plotting the result. The script uses namespaces to access built-in functions like ta.rsi and str.tonumber. It draw

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of PSMC - Namespaces

ZigZag - lucemanb

by WISEPLAT
2 stars

This indicator draws a ZigZag on the price chart by connecting recent swing highs and lows. It searches the last Depth bars for the highest high and lowest low, then keeps a pivot only when price has moved beyond the Deviation setting in minimum ticks. A red l

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag - lucemanb
2 stars

TrendSignal + Supertrend Strategy detects trend changes using a custom indicator based on recent high-low ranges and a percentage K value calculated from RISK input. It sets buy or sell signals when the trend shifts. Supertrend is overlaid using ATR period and

Strategy v4 TrendVolatility & bands
Updated 4 years ago · MIT GitHub repository of TrendSignal + Supertrend Strategy

Paste Check

by jayadevrana
1 stars

Paste Check is an overlay indicator that identifies trend direction using dual exponential moving averages. It plots a fast EMA and a slow EMA directly on the price chart. When the fast EMA crosses above the slow EMA, it displays a green triangle below the bar

Indicator v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of Paste Check

SMC Long-Dip Alerts

by skipp-dev
1 stars

SMC Long-Dip Alerts is an indicator that provides selectable alertcondition() signals for an SMC Long-Dip Suite. It detects structure events such as BOS and CHoCH using a configurable swing length and resolves product state, zone activity, and trust tier from

Indicator v6 SMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Long-Dip Alerts

MA Stack Array

by pineforge-4pass
1 stars

This strategy calculates three simple moving averages with lengths 10, 20 and 50. It identifies a bull stack when the shortest exceeds the middle which exceeds the longest, and a bear stack in the opposite direction. A var-bool latch tracks prior states to sup

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of MA Stack Array

P_err_assign_type_change

by GammaExpansion
1 stars

This script acts as a test fixture from the OptiPine parser test suite designed to evaluate Pine Script compilation behavior. It initializes a variable with an integer value, attempts to reassign it to a string, and attempts to plot the result in a separate pa

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_assign_type_change

DEPV2 C6 Gölge Kasa

by YuceSezar89
1 stars

This indicator evaluates signal performance and multi-timeframe market dynamics through a shadow bankroll tracking framework. It measures market conditions across trend, momentum ROC Z-scores, ATR volatility expansion, and volume flow, alongside multi-timefram

Indicator v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 C6 Gölge Kasa

Fractals + Reflection

by morindok
1 stars

This overlay indicator identifies high and low fractal pivots using a customizable period setting. Users select two anchor points directly on the chart to establish a central trendline. The script then projects reflected price and time levels relative to this

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Fractals + Reflection
1 stars

Tn Adaptive Risk Regime v6 is a strategy that switches between mean reversion and breakout modes based on volatility regime. It compares ATR to its SMA over a lookback to classify high or low volatility. Low volatility triggers mean reversion by fading range e

Strategy v6 Volatility & bandsMean reversion
Updated 2 months ago · None stated GitHub repository of Tn Adaptive Risk Regime v6
1 stars

V10 Swing Sniper (KLSE) is a daily chart overlay indicator designed for swing trading Bursa Malaysia equities based on Mark Minervini's Stage 2 and Volatility Contraction Pattern (VCP) principles. It calculates exponential moving averages, relative strength ag

Indicator v5 TrendBreakout
Updated 4 months ago · None stated GitHub repository of V10 Swing Sniper (KLSE)

Corpus EMA Cross

by Snappni
1 stars

Corpus EMA Cross is a strategy that plots two exponential moving averages on the price chart. The fast EMA uses a length of 12 and the slow EMA uses 26. It generates long entries on the crossover of the fast line above the slow line and short entries on the cr

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus EMA Cross

Stochastic+SQZMOM_LB_v1

by gabriel-klettur
1 stars

This strategy plots exponential moving averages of 10, 55 and 200 on the price chart and shades the background when a smoothed stochastic is oversold or overbought. It opens long positions when the stochastic K line crosses above D below the oversold level, in

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic+SQZMOM_LB_v1

Liquidation Heatmap

by ymlee1104
1 stars

The Liquidation Heatmap indicator detects potential liquidation zones by scanning recent price swings and calculating volume or range-based weights over a configurable lookback period. It overlays boxes and labels on the price chart to highlight long and short

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

Inside Bar Breakout

by Basant1Saini
1 stars

Inside Bar Breakout identifies standard and double inside bar candlestick patterns to trade breakout momentum. It sets trigger levels using reference bar extremes plus an adjustable percentage buffer. Once a pattern forms, the strategy waits up to five bars fo

Strategy v5 Candlestick patternsBreakout
Updated 7 months ago · None stated GitHub repository of Inside Bar Breakout

ES Professional Fade

by knectardev
1 stars

The ES Professional Fade strategy plots entry and exit signals on the price chart for E-mini S&P futures. It fades price action after the opening range closes during regular trading hours. The strategy declares a fixed position size of one contract with $2.01

Strategy v5 Mean reversionSessions & time Repaints
Updated 9 months ago · None stated GitHub repository of ES Professional Fade
1 stars

This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements. It generates buy and sell signals based on volatil

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ultimate Buy and Sell Indicator

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart

Technical Analysis Namespace

by fiji-solutions
1 stars

This indicator calculates common technical analysis variables including RSI, Stochastic Oscillator, EMA moving average, ATR volatility, and MACD with signal and histogram. It plots the MACD line, signal line, and histogram in a separate pane. The script serves

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of Technical Analysis Namespace

Max Index

by JohnsonHsiao
1 stars

Max Index is an oscillator that measures range expansion and contraction over rolling periods. It calculates a rolling high-low range over a user-defined lookback window, applies double exponential smoothing to that range, computes the ratio between the two sm

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Max Index

Asymmetrical RSI

by everget
948 stars

Asymmetrical RSI is an indicator that computes a custom relative strength index from the rate of change of a user-selected source. It plots the resulting ARSI line in a separate pane with color coding that turns green above the overbought level and red below t

Indicator v4 Oscillators & momentum
Updated 11 days ago · GPL-3.0 GitHub repository of Asymmetrical RSI

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