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

ATR% Multiple from MA measures price extension relative to a moving average, expressed in multiples of Average True Range percentage. It calculates ATR as a percentage of close, evaluates the percentage distance between the price and its moving average, and no

Indicator v6 Moving averagesVolatility & bands
Updated 3 months ago · Apache-2.0 GitHub repository of ATR% Multiple from MA

MahadevLevels35 PRO

by phadmahadev-ops
2 stars

MahadevLevels35 PRO is a Pine Script v6 indicator that draws Mahadev price levels with endings like 03, 11, 29, 35, 65 and 71 across a user-defined range directly on the price chart. It overlays a stack of seven EMAs with customizable colors and source, plus V

Indicator v6 Support & resistanceMoving averages
Updated 3 months ago · MIT GitHub repository of MahadevLevels35 PRO

HTF / Power Play Levels

by mirkothepirko
2 stars

This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart. It measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plot

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · Custom licence GitHub repository of HTF / Power Play Levels

RedK EVEREX v2.0

by bigzhu
2 stars

The RedK EVEREX v2.0 indicator examines effort versus results by plotting normalized bands comparing price change to volume. It computes rate of flow using selectable moving averages with smoothing options, and applies lookback averaging to highlight anomalies

Indicator v5 Moving averagesVolume
Updated 3 months ago · None stated GitHub repository of RedK EVEREX v2.0

ATR Helper [btankutt]

by btankutt
2 stars

ATR Helper is a trade planning indicator that calculates dynamic stop-loss levels and multi-stage profit targets. It uses an Average True Range multiple with selectable smoothing to determine the stop distance from either the current close or a manual entry pr

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of ATR Helper [btankutt]
2 stars

This indicator implements a streaming bar-by-bar port of the Chanlun theory decomposition pipeline directly on the price chart. It processes raw price action through Algorithm N containment normalization, identifies top and bottom fractals, connects them into

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Chanlun (chanlun-v1 port)
2 stars

This overlay approximates order-book liquidity from intrabar OHLCV buckets because true depth-of-market data is unavailable. It paints a decaying volume heatmap around price and labels absorption, exhaustion, rejection, and momentum when wick, body, delta, and

Indicator v6 VolumeSupport & resistance
Updated 4 months ago · None stated GitHub repository of Bookmap Liquidity Mapper [TReset]

XAUUSD Breakout Grid

by Young666YHF
2 stars

The XAUUSD Breakout Grid strategy executes market orders when price crosses defined dollar-denominated grid levels on the price chart. It tracks entries using array structures and dynamically adjusts position sizing to balance net exposure between long and sho

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of XAUUSD Breakout Grid
2 stars

This indicator analyzes volume character and market structure in a separate chart pane. It color-codes volume bars to identify institutional accumulation, distribution, climax volume, and volume dry-up conditions during volatility contraction patterns. The scr

Indicator v5 VolumeTrend
Updated 4 months ago · None stated GitHub repository of TJ Essentials - Daily Swing

QTrade MACD

by Can3299
2 stars

QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · AGPL-3.0 GitHub repository of QTrade MACD
2 stars

This strategy executes long trades based on a 50 and 200 SMA golden cross and manages exits using a dynamic trailing stop. Upon entry, it places an initial stop loss at the lowest low of the previous lookback bars. Whenever price prints a new high over the spe

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2-Bar Trailing Stop Strategy
2 stars

Session Extreme Revisit - Lines identifies high and low candles during defined trading sessions, such as London and New York, and projects them on the chart as supply and demand reaction zones. The indicator tracks intraday extreme price ranges and extends rea

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit - Lines
2 stars

This overlay indicator draws Elliott Wave structure on the price chart. It builds up to three independent ZigZag swings from user-selected high and low sources, then connects impulse legs labeled one through five and corrective legs labeled A through C. Four a

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Elliott Wave [LuxAlgo]

AIO Sniper SMC HUD

by puzzithinker
2 stars

This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects swing and internal market structure, strong and weak highs and lows, equal highs and lows, fair value gaps (FVGs), and order blocks (OBs). It also plots premium and discou

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of AIO Sniper SMC HUD

BTC Pattern Breakout Final

by Yashiine-code
2 stars

This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts. Signals are filtered using moving average volume expansion, ATR momentum growth, and ex

Indicator v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of BTC Pattern Breakout Final

Trend Duration Forecast

by middlechild0
2 stars

Trend Duration Forecast plots Hull Moving Average on the price chart and detects trend changes using consecutive rising or falling slopes. It counts trend bar durations, stores bullish and bearish counts in arrays, and calculates average probable extension len

Indicator v6 Trend
Updated 5 months ago · None stated GitHub repository of Trend Duration Forecast
2 stars

This overlay indicator approximates a Bookmap-style liquidity view from price and volume. It draws heatmap boxes where volume exceeds a rolling average, volume dots above a relative-volume filter, and a smoothed cumulative-delta proxy. Optional signals use abs

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Bookmap Heatmap & Order Flow
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v1
2 stars

Strong Wealth Magnet is an overlay indicator that scores price action and draws selected narrative layers on the price chart. Up to three modes can run together, including a Pro layout and a Six Eyes view that reviews past signals over a chosen window and labe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Strong Wealth Magnet

This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Indicador de Tendências do BTC e Altcoins
2 stars

ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc

Indicator v4 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate MultiStrategy Trading

BB Breakout Reversal Strategy

by WayneMoore1006
2 stars

This quantitative strategy calculates custom Bollinger Bands using a standard moving average and standard deviation multiplier. It generates long entry signals when the bar close breaks above the upper band, and short entry signals when the close breaks below

Strategy v6 Volatility & bandsBreakout
Updated 6 months ago · None stated GitHub repository of BB Breakout Reversal Strategy
2 stars

This indicator detects institutional candles where the body exceeds a multiple of the rolling average body size. It creates and draws supply and demand zone boxes directly on the price chart, validating them over subsequent bars to discard invalidated zones. W

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Ghost Zone v8 - Institutional Zones

MTF Signal Strategy

by Flopchamp
2 stars

The MTF Signal Strategy is designed for 1-minute charts to identify trade entries using multi-timeframe EMA trends, Opening Range Breakout (ORB) levels, key daily high/low levels, and custom pivot zones. It generates trade signals on bar closes when price alig

Strategy v5 TrendBreakout
Updated 7 months ago · None stated GitHub repository of MTF Signal Strategy
2 stars

The LSD-15 indicator detects liquidity sweeps on 15-minute crypto charts by identifying price movements that exceed a threshold from swing highs and lows. It plots swing high and low lines on the price chart and highlights sweep candles in color. Multiple conf

Indicator v5 ScalpingSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of LSD-15 Liquidity Sweep Detector
2 stars

This indicator applies Omori's law from seismology to post-crash volatility. It flags a mainshock when price falls a set percentage from a recent high, then plots a power-law decay envelope from elapsed bars, productivity, time offset, and decay exponent. Afte

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Omori Law: Market Shockwaves
2 stars

The ARCStage indicator calculates and color-codes Stan Weinstein's four market stages using the slope of the 30-week SMA and the price position relative to it. Stage 1 appears in light gray during basing consolidation, Stage 2 in light green during advancing,

Indicator v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Stan Weinstein Stage Analysis
2 stars

This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi

Strategy v5 TrendOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of WINNER MNQ Strategy - Optimized 2026

Hari Sweep Scalper

by godlesscherry
2 stars

This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter. Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters

Strategy v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Hari Sweep Scalper

Normalized Market Monitor

by realanthonyc
2 stars

Normalized Market Monitor scales the price action of two distinct symbols into a normalized oscillator ranging from -100 to +100 over a chosen lookback period. Plotted in a separate pane, the indicator enables traders to observe and compare the relative positi

Indicator v6 Oscillators & momentumSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Normalized Market Monitor

Premarket Metrics Dashboard

by realanthonyc
2 stars

This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Premarket Metrics Dashboard

alpyvix

by avatar-lavventura
2 stars

This strategy implements a self-calibrating WaveTrend oscillator with rolling percentile-based dynamic entry zones rather than fixed levels. It enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zone

Strategy v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of alpyvix
2 stars

This indicator measures market deleveraging and liquidation stress on a 0 to 100 scale, plotted in a separate pane. It evaluates extreme downside price velocity via standardized log returns, volatility expansion using an ATR Z-score, a rolling stress bar casca

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 7 months ago · MPL-2.0 GitHub repository of Deleveraging Detection Score
2 stars

This Pine Script v5 strategy calculates two simple moving averages with customizable fast and slow lengths and plots them on the price chart. It generates long signals on fast MA crossover above the slow MA and short signals on the reverse crossover. The strat

Strategy v5 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of MA Crossover Strategy with SL/Targets
2 stars

This indicator plots the previous trading day's high and low on the price chart, together with the developing high and low of the current session. It reads the last closed daily high and low and locks those values at the start of each session. A session window

Indicator v6 Support & resistanceSessions & time
Updated 8 months ago · MPL-2.0 GitHub repository of Previous Day High-Low (PDHL)

This indicator measures how far price sits from a simple moving average, expressed as a percentage, then smooths that difference and plots it as an area in a separate pane. Green marks a positive deviation and red a negative one, so the series acts as a direct

Indicator v6 Moving averagesMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Direction plugin] Price Deviation [psyll]

The Asset Rotation System evaluates relative trend strength and rotational performance across up to six selectable assets. It calculates trend classification based on user-selected technical indicators including RSI, CCI, SuperTrend, DMI, and Parabolic SAR. Th

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Asset Rotation System [InvestorUnknown]

Apex Signal Matrix Pro

by farbodghasemlu
2 stars

Apex Signal Matrix Pro is an overlay indicator that scores long and short bias from trend, momentum, structure, participation, and risk-reward. It plots entry and strong-entry signals when a smoothed score clears thresholds and the directional spread exceeds a

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of Apex Signal Matrix Pro

HTF OB M30 + LTF Entry System

by ifreddyman2014-tech
2 stars

This multi-timeframe indicator detects order blocks on the HTF M30 timeframe and generates precise entries on the LTF M1 timeframe using break of structure, displacement, and fair value gap concepts. It requires liquidity sweeps for confirmation and signals en

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of HTF OB M30 + LTF Entry System

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