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

A strategy that scores signals from ten sources: RSI, MACD, Bollinger Bands, head and shoulders, wedges, multiple tops and bottoms, candlestick reversals, pivot support and resistance, volume spikes and an EMA ribbon filter. A trade needs a minimum pattern sco

Strategy v5 Oscillators & momentumCandlestick patterns
Updated yesterday · None stated GitHub repository of Fall Strategy 10-Pattern Engine

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

Dual MA with Switch

by pineforge-4pass
1 stars

A moving average crossover strategy where the average type is chosen in the settings: EMA, SMA, WMA or HMA. A fast and a slow average are calculated on a selectable price source. It enters long when the fast line crosses above the slow line and short on the op

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Dual MA with Switch

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

A strategy that estimates bull, bear and neutral state probabilities from recent price transitions and trades only when they pass minimum levels. It adds previous day high and low breakout entries and filters, swing liquidity levels, and an optional 50 to 61.8

Strategy v6 Support & resistanceBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Dynamic Markov Capacity PDH/PDL Liquidity Retracements

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

An overlay indicator that records the high and low of an opening range from a configurable open time and draws high, low and average lines to the session end. Optional toggles add sub-levels, second and third support and resistance lines and rounded buy strike

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of OR Levels v10 Formula Toggle

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

Root Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on root mean square deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks that is compared with long and short thres

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Deviation Loop
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, rather than any earlier bar that would shift later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values ca

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.1 Tick

Arty-W

by GreyssonEnterprises
1 stars

A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200) on the price chart, with a fill between a two-period EMA and the 200 average that turns green or red with trend. It also looks for W and M price shapes with adjustable width and

Indicator v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Arty-W
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)

RSI Window

by rubbermetal
1 stars

RSI Window shows a relative strength index in a separate pane with a color gradient and overbought and oversold zone fills. It can also draw a faster RSI and a histogram of the gap between the fast and standard RSI. Up to five exchange symbols, defaulting to B

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of RSI Window

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

Traditional Pivot Points

by shubhamtaywade82
1 stars

Calculates daily pivot levels from the previous day's high, low and close and draws them on the price chart as lines with price labels. The pivot type can be Traditional, Fibonacci or Camarilla, each giving a central level plus three supports and three resista

Indicator v6 Support & resistance Archived
Updated 5 months ago · None stated GitHub repository of Traditional Pivot Points
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. Settings include a long ATR length with a multiplier, how many levels to display, maximu

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-2

JTrader EMA Zone Inversion

by Focal-QuantAI
1 stars

An indicator on the price chart based on EMAs of 33, 50 and 200 bars. It looks for fair value gaps inside a maximum age and signals when a gap is inverted, drawing the inverted gap box. A pivot count filter can restrict signals to single or multiple pivots. Se

Indicator v5 SMC / ICT / price actionTrend
Updated 6 months ago · None stated GitHub repository of JTrader EMA Zone Inversion

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

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