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

Visualizes Wyckoff accumulation and distribution phases directly on the price chart. It uses an RSI-based sensitivity threshold to determine trend conditions and horizontal ranges, framing consolidation zones with colored boxes. The script also identifies stru

Indicator v5 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Wyckoff Accumulation Distribution
2 stars

MTF Divergence Scanner detects regular and hidden divergences in RSI or MACD oscillators across multiple timeframes. It scans up to three timeframes simultaneously using request.security with confirmed-bar logic to identify reversal or continuation signals. Th

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 3 months ago · MPL-2.0 GitHub repository of MTF Divergence Scanner
2 stars

Calculates 20-day Average Daily Range percentage, multi-month performance metrics, opening gap size, and relative volume to identify Kristjan Kullamägi style Breakout and Episodic Pivot setups. When conditions are satisfied on the price chart, it flags candles

Indicator v6 BreakoutVolume
Updated 4 months ago · Custom licence GitHub repository of Qullamaggie Breakout / EP Flags

StdDev Anchor AI

by teaceo-debug
2 stars

The StdDev Anchor AI indicator plots swing high and low points on the price chart using pivot functions. It detects displacement legs based on minimum range and confirmation ratio settings, then applies standard deviation logic to identify anchor levels. MTF c

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of StdDev Anchor AI
2 stars

This strategy plots on the gold price chart and combines stochastic, RSI, and three EMAs with ATR. Confirm buys and sells can require an M15 overbought or oversold rejection wick, a Fibonacci or EMA zone, and a no-chase distance from the fast EMA. Optional LSB

Strategy v5 Oscillators & momentumMoving averages
Updated 4 months ago · None stated GitHub repository of XAUUSD Strategy - Hook Trap Guard

ORB Breakout Alert

by az9713
2 stars

The indicator identifies upside breakouts from the 30-minute US market opening range between 09:30 and 10:00 AM ET. It triggers a signal when price closes above the opening range high before 11:30 AM ET, provided bar volume exceeds a multiplier of the opening

Indicator v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Breakout Alert
2 stars

Session Extreme Revisit identifies the highest supply candle and lowest demand candle formed during London and New York sessions and draws extended reaction zones on the price chart. It evaluates candidate candles using size, wick ratio, and displacement filte

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit — Pro

SMC Major Pairs Strategy

by middlechild0
2 stars

This strategy identifies trend alignments and Smart Money Concept (SMC) setups across major currency pairs and gold. It calculates a customized Q-Trend filter combined with higher-timeframe trend confirmation, liquidity sweep detection, swing points, and fair

Strategy v6 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of SMC Major Pairs Strategy
2 stars

This overlay indicator maps a US equity day-trading framework of levels, trend, and patience candles onto the price chart. It plots 8 and 21 SMAs, higher-timeframe 200 SMAs, VWAP, the last five days of premarket highs and lows, and the 9:30–9:45 opening range.

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

Ghost Zone v9 plots chart overlay signals and key structural levels derived from reverse-engineered price action, volume spread analysis, and momentum filters. It identifies specific trading patterns including Low Volume Test (LVT), Signal Test (ST), Bull Trap

Indicator v6 VolumeCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 - GTI Signals v18a

ALGOX

by thino-dev
2 stars

ALGOX is a Pine Script v5 strategy that overlays SuperTrend, ATR bands, Heikin Ashi candles, EMA ribbons and an RSI table on the price chart. It generates long and short entries based on signal sensitivity settings with optional lower-timeframe or higher-timef

Strategy v5 TrendVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of ALGOX

Liquidity Sweep Scalper v2

by godlesscherry
2 stars

Liquidity Sweep Scalper v2 is a scalping strategy that detects liquidity sweeps using Supertrend trend filters, Bollinger Bands for volatility, Williams Fractals for pivots, and MACD momentum. It enters on rejection candle breaks after sweeps and exits via sto

Strategy v6 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Liquidity Sweep Scalper v2

DR/IDR

by avatar-lavventura
2 stars

This indicator plots Defining Range (DR) and Implied Defining Range (IDR) levels across Regular, After, and Overnight market sessions directly on the price chart. It visualizes high and low range boundaries, midline levels, opening lines, background boxes, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of DR/IDR

MACD & Anchored VWAP Strategy

by adminalphabots
2 stars

This strategy enters long when the MACD line crosses above its signal, price is above a rolling VWAP, and ADX is at least the minimum trend strength. It enters short on the opposite MACD cross when price is below that VWAP and ADX meets the same threshold. Set

Strategy v5 Oscillators & momentumVolume Repaints
Updated 8 months ago · MIT GitHub repository of MACD & Anchored VWAP Strategy

This indicator evaluates market conditions across four user-defined timeframes by combining RSI, MACD crossovers, triple EMA trend filters, Bollinger Band boundaries, and volume spikes. It computes aggregate bullish and bearish scores, plotting buy and sell si

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Multi-Timeframe Trade Signal Indicator

This indicator plugin for grid trading systems calculates dynamic upper, middle, and lower channel boundaries based on historical highest highs and lowest lows. Users can adjust the lookback period, toggle candle wicks, apply moving average smoothing, add pric

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Grid range plugin] HighLow [psyll]

ATR Rope

by regalouisei
2 stars

This overlay indicator smooths a chosen price source with a rope-style range filter. It moves the line only when price travels beyond an ATR length multiplied by a user multiplier, then colors the rope up, down, or flat from its slope and from source crosses.

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Rope

Market Structure - Clean & Objective

by ifreddyman2014-tech
2 stars

The script identifies and plots market structure components directly on the price chart using confirmed pivot highs and lows. It classifies swing points into Higher Highs, Higher Lows, Lower Highs, and Lower Lows while detecting Break of Structure (BOS) and Ch

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Market Structure - Clean & Objective

CT Reverse MACD Cross

by mushroom-men-Trading
2 stars

This indicator calculates and displays a Moving Average Convergence Divergence (MACD) oscillator alongside EMA and SMA signal lines and histograms in a separate pane. It offers reverse signal line calculations and detailed visual styling, including directional

Indicator v6 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of CT Reverse MACD Cross

This strategy enters long positions on volume-backed breakout setups with moving average confirmation. It plots the 10, 50, 150, and 200 simple moving averages directly on the price chart. Users can select between three breakout modes: gap only, strict gap wit

Strategy v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Ede - Breakout Strategie (mit MA und ATR Exit)
2 stars

The script detects pin bar candlestick patterns by comparing each candle's body size to its total range and measuring the relative lengths of its upper and lower shadows. A bullish pin bar forms when the body is small, the lower shadow is at least twice as lon

Indicator v5 Candlestick patterns
Updated 10 months ago · None stated GitHub repository of Pin Bar Detector | Algobid

QQE + AK Trend + EFI

by realanthonyc
2 stars

This indicator computes and plots a QQE histogram using RSI of the chosen source smoothed with Wilder's ATR method, alongside an AK Trend line derived from fast EMAs with dynamic scale factors adjusted by timeframe. It also calculates Elder Force Index with ad

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

EMA Trend Surfer

by nxtaiapp
2 stars

This multi-timeframe strategy identifies trend direction using fast and slow exponential moving averages from a higher timeframe while seeking trade entries on a lower timeframe. Trend signals are filtered using minimum EMA percentage separation, an optional A

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer

This strategy generates trade entries by combining up to five normalized 0-100 technical indicators: Relative Strength Index (RSI with divergence detection), Stochastic RSI, Money Flow Index (MFI), Relative Volatility Index (RVI), and Average Directional Index

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TLC 0TO100 Five Indicators Strategy

The AI SuperTrend x Pivot Percentile strategy combines SuperTrend trend following with KNN-based AI predictions, Pivot Percentile levels, and ADX/DMI filtering. SuperTrend indicators run on multiple higher timeframes with configurable lengths and factors, whil

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of AI SuperTrend x Pivot Percentile - Strategy

Trend Analyzer EMA Only

by panzmoravylab
2 stars

Trend Analyzer EMA Only compares a fast and a slow exponential moving average on the price chart and labels the state uptrend, downtrend, or neutral. A buy or sell signal appears when the fast average crosses the slow average while both slopes agree and their

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Analyzer EMA Only

Calculates a long-term Exponential Moving Average as a baseline for fair value alongside a Relative Strength Index. Generates long entry signals when the close price trades at least five percent below the moving average while the RSI is oversold. Exits trades

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Buffett-Inspired Value Strategy

ADR label

by etnt
2 stars

This indicator calculates and displays the Average Daily Range percentage alongside a Mark Minervini Trend Template score in an on-screen table. It evaluates moving average alignments, 52-week price extremes, and moving average slope criteria to generate a Tre

Indicator v6 Screeners & dashboardsTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ADR label
2 stars

This indicator identifies and plots dynamic support and resistance levels on the price chart using pivot highs and pivot lows. It evaluates historical pivot clusters over a multi-bar lookback window to construct key horizontal levels, with options to render bu

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Support/Resistance Levels

GapDetect

by Electrified-Trading
2 stars

This library determines opening gap severity by calculating the standard deviation of overnight gaps. It exports functions for today's gap value as open minus previous close, gap percent change, and normal daily standard deviation of the gap using a rolling wi

Library v6 Volatility & bandsSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of GapDetect
2 stars

Multi-Indicator Trading System is a price chart overlay indicator that combines exponential moving averages, MACD, RSI, and multi-timeframe Ichimoku cloud analysis. It evaluates local timeframe indicators alongside higher timeframe trend filters to generate bu

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

DrawLevels

by ashwagamma
2 stars

This indicator draws predefined support and resistance levels, price range boxes, and key value area markers directly on the price chart. It visualizes hardcoded horizontal price levels, support and resistance zones, and value area references such as prior day

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of DrawLevels

This indicator visualizes volume delta, total volume, or open interest delta directly on the price chart. By fetching one-minute intrabar data, it distributes buying and selling activity into price levels defined by percentages or tick sizes. It calculates del

Indicator v5 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Volume Delta | OI Delta [Kioseff Trading]

This overlay indicator marks swing highs and lows, then draws supply and demand boxes around points of interest. It labels higher highs, lower highs, higher lows, and lower lows, and can show break-of-structure and point-of-interest labels plus an optional zig

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

Tik 2 JPY

by keiru517
2 stars

This indicator plots horizontal lines on the price chart at ratios ranging from 120 to 170 in steps of 10. It draws main red lines at each ratio and aqua and yellow subdivisions at quarter and half points. The lines extend rightward from past bar index minus 1

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

PriceCatch Intraday Range plots key daily price levels and projections on intraday price charts. It calculates daily open, high, low, and close values using higher-timeframe data requests, drawing reference lines for custom percentage change thresholds and dai

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Intraday Range

Custom Session VWAP

by ryangaraygay
2 stars

This indicator calculates and plots a Volume Weighted Average Price (VWAP) restricted to a user-defined trading session on the price chart. It uses the specified source (default hlc3) to compute the VWAP only while the market is in the custom session (default

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session VWAP
2 stars

Parabolic SAR Strategy executes buy and sell orders based on Parabolic SAR trend flips, filtered by customizable technical indicators. Traders can enable an RSI momentum filter, a configurable moving average trend baseline, and an ADX strength threshold. Posit

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Parabolic SAR Strategy

Whale Detection with VWAP

by scallywag41
2 stars

This indicator identifies large volume trades occurring near the Volume Weighted Average Price (VWAP). It calculates a cumulative VWAP and checks whether the bar's volume meets or exceeds a specified minimum block trade volume. Additionally, it verifies if the

Indicator v5 VolumeMoving averages
Updated 2 years ago · None stated GitHub repository of Whale Detection with VWAP

Bitcoin Momentum Strategy

by Web3Degenerate
2 stars

This strategy enters long positions when price trades above a higher-timeframe exponential moving average and momentum conditions are clear. It avoids new entries during volatility caution periods, which trigger when pullbacks exceed specified Average True Ran

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Bitcoin Momentum Strategy

Mc War OB + EMA

by tuanmcwar
2 stars

This price-chart indicator plots a 34-period EMA and an 89-period EMA and defines buy and sell conditions from their relationship to the prior close. It is built to draw bullish and bearish order-block boxes, optionally recolor blocks that price has broken, an

Indicator v5 Moving averagesSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of Mc War OB + EMA

MACD

by CjHare
2 stars

This indicator calculates the MACD in a separate pane. It subtracts a slow exponential moving average from a fast one, then smooths that difference with another exponential moving average to form the signal. It plots the MACD and signal as solid lines, a colum

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · Apache-2.0 GitHub repository of MACD
2 stars

This indicator plots the Vortex Indicator and the Relative Strength Index together in a separate pane. It calculates VI+ and VI- from absolute high-low ranges over a shared length, then draws RSI from a chosen source with a selectable SMA or EMA of the RSI. Ho

Indicator v5 Oscillators & momentumTrend
Updated 2 years ago · MIT GitHub repository of Combined Indicator RSI, Vortex

Resistance 20 Periods

by jpiedrafita
2 stars

This indicator calculates and plots the highest close price over the preceding 20 bars directly on the main price chart. Designed to highlight key resistance levels and potential breakout points, it displays a single gray line representing the rolling 20-perio

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of Resistance 20 Periods
2 stars

This indicator overlays multiple moving averages on the price chart including 5, 10, 21, 30, 50, 150 and 200 period EMAs and SMAs. It draws D-Day markers with labels, identifies buying and selling climaxes, plots 52-week high and low levels, and detects VIX in

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

Saty ATR Levels

by mikah13
2 stars

Saty ATR Levels calculates projected support, resistance, trigger, and target levels overlaid on the price chart using Average True Range and Fibonacci ratios. It supports multiple trading modes, including Day, Multiday, Swing, Position, and Long-term options.

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Saty ATR Levels

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