Synced with GitHub · updated yesterday

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

Algo

by TamTH-Dev
2 stars

Algo is an overlay indicator that combines Deviation Scaled Moving Averages (DSMA), multi-layer Ripster exponential moving average clouds, and ATR-based trading levels on the price chart. It calculates adaptive DSMA lines alongside five configurable EMA pairs

Indicator v6 Moving averagesTrend Repaints
Updated 5 weeks ago · None stated GitHub repository of Algo

GEO P Momentum Strategy

by newsfriend
2 stars

Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart. Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Strategy
2 stars

Qtus SMC-Sniper System v2 is a comprehensive chart overlay indicator combining Smart Money Concepts (SMC), ICT elements, price action, and momentum filters. It identifies and plots Fair Value Gaps (FVG), Order Blocks, Breaker Blocks, Liquidity Zones, and Marke

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper System v2

Basic Usage Examples

by danielbodnar
2 stars

Demonstrates fundamental Pine Script v6 syntax and built-in technical analysis functions as a reference snippet. It calculates and plots simple and exponential moving averages, Bollinger Bands fills, and visual shapes for price crossovers against the moving av

Indicator v6 Moving averages
Updated 2 months ago · MIT GitHub repository of Basic Usage Examples

FVG Zones with Signals

by alvinng214
2 stars

The FVG Zones with Signals indicator detects Fair Value Gaps on the price chart by comparing high-low ranges against average candle body size over a user-defined length. It plots bull and bear FVG zones as semi-transparent colored boxes with border styles and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of FVG Zones with Signals

ALERTATRON-KSM DEMATRON 2H

by danielvm-git
2 stars

This strategy plots three DEMA lines on the price chart for trend analysis. It generates buy and sell signals on DEMA crossovers between the first and second DEMA (or third DEMA when enabled) with optional trailing stop, stop loss, and take profit levels. The

Strategy v4 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of ALERTATRON-KSM DEMATRON 2H
2 stars

This indicator plots two customizable moving averages on the price chart: a fast MA and a slow MA. Users can select from SMA, EMA, WMA and other types, with source options such as close. It fills the area between the lines with color based on which MA is above

Indicator v6 Moving averages
Updated 3 months ago · Apache-2.0 GitHub repository of Dual Moving Average Ribbon
2 stars

This indicator identifies and visualizes potential liquidity pools based on Smart Money Concepts (SMC). It scans past price action within a configurable lookback window to detect equal highs and equal lows using an ATR-based tolerance threshold. When equal pea

Indicator v6 SMC / ICT / price actionSupport & resistance
2 stars

Implements a strategy combining Oliver Kell's Cycle of Price Action with Mark Minervini's Volatility Contraction Pattern (VCP). It identifies breakout setups such as wedge pops and EMA crossbacks aligned with EMA 10/20/50/200 and an optional Minervini Trend Te

Strategy v6 TrendBreakout
Updated 3 months ago · Custom licence GitHub repository of Kell + Minervini VCP Backtest
2 stars

SMC Toolkit detects core Smart Money Concepts on the price chart, including market structure breaks (BoS and CHoCH), Order Blocks, Fair Value Gaps (FVGs), and liquidity levels such as equal highs and lows. Active zones project forward and freeze or stop extend

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of SMC Toolkit [btankutt]

VP Low-TF LVN Levels

by teaceo-debug
2 stars

This indicator calculates volume profile distributions using lower timeframe security data to identify and draw Low Volume Nodes (LVNs) directly on the price chart. Users can adjust the volume profile timeframe, lower timeframe resolution, row count, and LVN s

Indicator v6 VolumeSupport & resistance
Updated 4 months ago · None stated GitHub repository of VP Low-TF LVN Levels
2 stars

This trend-following strategy for XAUUSD checks alignment across three Simple Moving Averages (20, 50, and 200) calculated on closed bars. It enters long when price and all three SMAs are stacked in ascending order, and enters short when stacked in descending

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of XAUUSD Dollar Trader Martingale
2 stars

This indicator builds a wick-based liquidity profile from a selectable lower timeframe and draws bullish and bearish levels on the price chart. It highlights bars when volume RSI is high and the wick exceeds a multiple of the average wick. Optional overlays ma

Indicator v6 SMC / ICT / price actionVolume
Updated 5 months ago · None stated GitHub repository of Zero Lag Liquidity [AlgoAlpha]

LTP Levels v1

by mhs54
2 stars

LTP Levels v1 plots key day-trading support and resistance boundaries directly on the price chart. It projects pre-market high and low levels from recent trading sessions alongside buffer zones and automatically calculated target levels extracted from historic

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of LTP Levels v1
2 stars

Ghost Zone v9 GTI Signals v18 is an overlay technical indicator designed to replicate Ghost Trade Pro methodology. It calculates anchored Supertrend channels, previous weekly close levels, fair value gaps, and volume profile high-volume nodes. The script evalu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 GTI Signals v18
2 stars

This indicator detects and draws trendlines, zones, and neutral bands directly on the price chart. It generates long and short breakout signals when price breaches detected trendlines, displaying configurable target and stop-loss lines based on an adjustable r

Indicator v5 BreakoutSupport & resistance
Updated 7 months ago · None stated GitHub repository of SilverHawk Trendline Breakouts

Alper

by avatar-lavventura
2 stars

Alper is a trend-following strategy based on a custom volatility stop calculation using the Average True Range. It tracks price extremes and computes a trailing stop level to determine market direction. When the price trades above the volatility stop, the scri

Strategy v5 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper
2 stars

This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line

Strategy v5 TrendOscillators & momentum Repaints
Updated 8 months ago · MIT GitHub repository of MACD & VWAP Strategy with ATR SL/Targets

This indicator calculates grid range boundaries for the Grid Bot system using two moving averages. It supports nine different moving average types, including SMA, EMA, HMA, DEMA, TEMA, and ZLEMA, across customizable fast and slow periods. Users can configure d

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Grid Range Plugin] Two Moving Averages
2 stars

This indicator aggregates up to ten external data sources and evaluates custom rules through a text-based condition builder. It parses logical operators to detect entry conditions and tracks simulated trade performance using configurable stop loss and take pro

Indicator v6 Repaints
Updated 8 months ago · None stated GitHub repository of BE-Indicator Aggregator Toolkit

Smart Money / LIT - M1 Structure & OB

by ifreddyman2014-tech
2 stars

This overlay indicator marks market structure on the price chart. It finds swing highs and lows with a configurable pivot length, flags displacement candles whose body exceeds the recent average body by a set factor, and can label breaks of structure. It also

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Smart Money / LIT - M1 Structure & OB

fungi Bands [aifungi]

by mushroom-men-Trading
2 stars

This indicator draws three bands on the price chart from the highest and lowest prices over a chosen length, expanded by a long ATR times a deviation setting. It smooths the stored extremes into upper and lower bands and an average midpoint, then changes the m

Indicator v6 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of fungi Bands [aifungi]

This breakout strategy uses dynamic moving averages plotted on the price chart for MA10, MA50, MA100, and MA200 based on user selections. It generates entry signals on breakouts that exceed a volume multiplier, with optional requirements for gaps or strong can

Strategy v6 Moving averagesBreakout Repaints
Updated 10 months ago · MIT GitHub repository of Ede – MA + Breakout Strategie (Dynamic MAs)

QQE + AK Trend + EFI

by realanthonyc
2 stars

This Pine Script indicator combines QQE, AK Trend, and EFI indicators. It calculates the QQE using RSI with smoothing and displays it as a histogram in a separate pane. The AK Trend line is formed by two exponential moving averages whose scale adjusts accordin

Indicator v6 Oscillators & momentumTrend
Updated 10 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

Mean Reversion

by nxtaiapp
2 stars

This strategy executes mean-reversion trades using Bollinger Bands combined with a fast RSI oscillator and MACD confirmation. It enters long or short positions when price reaches band extremes during oversold or overbought RSI levels, with optional MACD trend

Strategy v5 Mean reversionScalping
Updated 11 months ago · MIT GitHub repository of Mean Reversion
2 stars

This strategy is written for Bitcoin and draws on the price chart. It combines moving averages, an SSL channel, ADX, RSI, stochastic, and a volume oscillator with high-volume thresholds to generate buy and sell signals. Users can limit testing to a date range

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TLC_STRATEGY_EMARSIADX for BTC
2 stars

This strategy overlays Bollinger Bands and Keltner Channels on the price chart alongside an internal KDJ oscillator. It identifies a volatility squeeze when Bollinger Bands contract inside the Keltner Channels. Long entries trigger after price closes below the

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of BB-Keltner Squeeze with KDJ strategy
2 stars

Identifies and displays classical candlestick formations directly on the price chart. The indicator scans bar structure relationships across consecutive candles to detect Evening Star, Morning Star, Shooting Star, Hammer, and Gravestone patterns. Bearish forma

Indicator v6 Candlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of Candlestick Patterns

QQE MOD 副图指标

by iceberg211
2 stars

This indicator calculates a dual Quantitative Qualitative Estimation (QQE) momentum oscillator alongside Bollinger Bands in a separate pane. It computes smoothed Relative Strength Index values paired with Wilder-style ATR trailing bands across two independent

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of QQE MOD 副图指标

LabelManagement

by Electrified-Trading
2 stars

This library manages TradingView chart labels through configuration templates, change-aware updaters, and a named registry. It lets callers set position, text, colors, style, size, and tooltips with a fluent interface, then apply only properties that differ fr

Library v6
Updated 1 year ago · MPL-2.0 GitHub repository of LabelManagement
2 stars

Multi-Indicator Trading System plots 50-period and 200-period exponential moving averages alongside buy and sell signals directly on the price chart. Signals trigger when a short-timeframe EMA crossover aligns with higher timeframe trend filters from 1-hour or

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

HAZZONES

by ashwagamma
2 stars

This indicator plots support and resistance zones on the price chart using Heikin Ashi data. It detects strong bullish and bearish trends by counting consecutive Heikin Ashi candles that meet specific body and wick conditions. Up to 15 support and 15 resistanc

Indicator v5 Support & resistanceCandlestick patterns
Updated 1 year ago · None stated GitHub repository of HAZZONES

Tik 2 USD

by keiru517
2 stars

Tik 2 USD is an overlay indicator that plots a grid of fixed price level lines and entry/exit offset lines across a user-defined price range. It uses a loop between specified start and end ratios to draw main target levels along with intermediate subdivided ra

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 2 USD
2 stars

PriceCatch Intraday Volume tracks and compares intraday buying and selling volume, total traded value, and candle counts directly on the chart. It allocates confirmed bar volume into buy and sell components using price range ratios, resetting accumulations at

Indicator v6 VolumeScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Intraday Volume

SUMMARY

by ryangaraygay
2 stars

This indicator aggregates multiple technical signals into an on-chart summary table. It calculates a session-based VWAP, a triple-EMA-smoothed price-volume oscillator, an EMA 9/21 trend spread, multi-timeframe Donchian channel breakouts, and an opening range h

Indicator v6 Screeners & dashboardsSessions & time
Updated 1 year ago · MIT GitHub repository of SUMMARY

Whale Detector

by scallywag41
2 stars

This indicator highlights bars with unusually high trading activity by comparing current volume against a simple moving average. It triggers a detection flag when volume exceeds a user-defined multiple of the average volume and also surpasses an absolute block

Indicator v5 Volume
Updated 2 years ago · None stated GitHub repository of Whale Detector
2 stars

Calculates higher timeframe Exponential Moving Averages, Average True Range, and optional RSI momentum filters to determine market regimes. Enters long positions during bullish regimes and allows scaling in through pyramiding as price advances by a user-define

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Bitcoin Regime Pyramid Strategy

Mc War OB + EMA

by tuanmcwar
2 stars

Plots 34-period and 89-period exponential moving averages alongside Smart Money Concept order blocks directly on the price chart. It visualizes bullish and bearish order block zones as customizable boxes, identifies confluence between order blocks and fair val

Indicator v5 SMC / ICT / price actionMoving averages
Updated 2 years ago · None stated GitHub repository of Mc War OB + EMA
2 stars

Relarive Strength Index calculates the RSI oscillator using a configurable source such as close prices, a period length, and an offset value. It plots the RSI line directly on the price chart along with dotted horizontal lines marking overbought at 80 and over

Indicator v5 Oscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Relarive Strength Index
2 stars

Weekend Trend Trader Overlay plots a 20-bar highest close as a resistance line and a ratcheting trailing stop on the price chart. It reads a chosen index, by default NASDAQ:NDX, on the chart timeframe and compares that close with a 10-bar simple moving average

Indicator v5 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Weekend Trend Trader Overlay
2 stars

Combined Candle Counter overlays multiple technical analysis tools directly onto the price chart. It features configurable EMA and SMA moving average presets with automated toggles based on intraday, daily, or weekly timeframes. The indicator draws 52-week hig

Indicator v5 Moving averagesSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of Combined Candle Counter

Saty Pivot Ribbon

by mikah13
2 stars

Saty Pivot Ribbon plots a three-EMA ribbon on the price chart to show trend direction and dynamic support or resistance. Fast, pivot, and slow exponential moving averages form two colored clouds that switch between bullish and bearish colors. Optional convicti

Indicator v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Saty Pivot Ribbon

The Quantitative Qualitative Estimation indicator calculates a smoothed Relative Strength Index combined with a dynamic, volatility-based trailing line. It plots a fast smoothed RSI line alongside a slow trailing line in a separate pane, with a midline set at

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Quantitative Qualitative Estimation (QQE)

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