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

Session Edge Probabilities

by TraderOracle
61 stars

Session Edge Probabilities tracks eight session-based trading rules using statistical probabilities evaluated on historical chart data. It utilizes a fixed calculation timeframe to evaluate opening ranges, midnight levels, afternoon reversal windows, and price

Indicator v6 Sessions & timeScreeners & dashboards
Updated 9 days ago · None stated GitHub repository of Session Edge Probabilities

Minimal Fill Examples

by frizLabz-FFriZz
59 stars

Minimal Fill Examples is an educational reference script demonstrating five basic implementations of the fill function in Pine Script. It calculates simple moving averages and plots price lines alongside horizontal reference levels. The script showcases variou

Indicator v6 Moving averagesSupport & resistance
Updated 1 year ago · MIT GitHub repository of Minimal Fill Examples

Momentum Rider Alerts

by greenpeas007
58 stars

Momentum Rider Alerts is an indicator overlay designed to generate momentum signals on the price chart. It visualizes price momentum dynamics and triggers real-time alerts when momentum conditions are met. Users can apply this tool across various markets to id

Indicator v6 Oscillators & momentumTrend
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider Alerts

BTC Futures MACD

by iamrichardD
57 stars

This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con

Strategy v6 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Futures MACD

Calculates higher-timeframe volume profiles to identify Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) levels directly on the price chart. It flags potential reversal setups and Change in State of Delivery (CISD) patterns relative to v

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of CandelaCharts - Value Area Reversals
56 stars

Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision
55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid
53 stars

Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Apex Trend & Liquidity Master

Bollinger bands examples

by tradingstrategy-ai
53 stars

This strategy plots exponential-moving-average Bollinger bands on the price chart and calculates RSI. It opens a long position when close crosses above the upper band while RSI is at or above a threshold, the date filter allows trading, and no position is open

Strategy v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Bollinger bands examples

SSE Index RSI Bounce Strategy

by zhutoutoutousan
49 stars

SSE Index RSI Bounce Strategy is a multi-timeframe momentum and trend strategy that combines daily and weekly Relative Strength Index (RSI) bounds with Exponential Moving Averages (EMA). It identifies long entries when daily or weekly RSI crosses up from overs

Strategy v6 Oscillators & momentumTrend Repaints
Updated 3 months ago · Custom licence GitHub repository of SSE Index RSI Bounce Strategy

Copilot

by milocaetano
48 stars

Copilot is an order flow range-reversal indicator designed to overlay trading setups directly on the price chart. It evaluates four criteria: market context (sideways vs trending regime based on ATR height), structure (double top or double bottom retests), abs

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated yesterday · MIT GitHub repository of Copilot

Aberration (ABBER)

by mihakralj
47 stars

This indicator plots Aberration bands on the price chart around a central moving average. It measures the absolute deviation of the source from that average, smooths the deviation with a simple moving average, and offsets the center by a multiplier to form upp

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · MIT GitHub repository of Aberration (ABBER)

Profit Maximizer (PMax)

by oguzhandilber
47 stars

Profit Maximizer (PMax) is a trend-following overlay indicator that combines moving averages with an ATR-based trailing stop mechanism. It calculates a selected moving average—supporting types such as EMA, SMA, ZLEMA, VAR, and TSF—and constructs a trailing ban

Indicator v4 TrendMoving averages
Updated 5 years ago · None stated GitHub repository of Profit Maximizer (PMax)

4H Candle Curves

by TamaraKGreen
46 stars

4H Candle Curves highlights 4-hour trading sessions based on New York time by overlaying customizable colored boxes directly on the main price chart. It divides 4-hour sessions with quarter separator lines at one-hour intervals and places name labels at the mi

Indicator v6 Sessions & timeScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of 4H Candle Curves
46 stars

This overlay indicator plots a SuperTrend using a 10-period ATR with a multiplier of 3, drawing up and down stop lines and a faint trend fill on the price chart. It compares a 9-period EMA with an 18-period EMA and a 12/26/9 MACD against its signal, and it req

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of SuperTrend + MACD + EMA

Trap Longs

by ProfHamzaNaveed
43 stars

This indicator tracks and visualises cryptocurrency derivatives positioning data across major perpetual exchanges, including Binance, BitMEX, and Kraken. It calculates net longs, net shorts, delta, or position ratios and plots them in a separate pane as candle

Indicator v5 VolumeDivergence
Updated 9 months ago · None stated GitHub repository of Trap Longs

Peak Reversal v3

by Zettt
43 stars

Peak Reversal v3 identifies potential mean-reversion points by plotting configurable Keltner Channels alongside a squeeze detector directly on the price chart. It detects momentum extremes when candles cross or trade completely outside the inner or outer chann

Indicator v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of Peak Reversal v3

RSTEmaVwap

by readysetcryptocodes
43 stars

This indicator overlays exponential moving averages and a session VWAP on the price chart. It builds a daily VWAP from typical price and volume, then plots one- and two-standard-deviation bands around it on selected intraday charts. EMA lengths change by timef

Indicator v4 Moving averagesVolume
Updated 2 years ago · None stated GitHub repository of RSTEmaVwap

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

Bradley Siderograph: Blueprint_So9

by blueprintresearch-dev
42 stars

This indicator plots Donald Bradley's siderograph as a weighted sum of planetary longitude aspects and declination parallels and contraparallels. It draws the sidereal potential, optional long-term and mid-term curves, and a Mars-Venus declination factor on th

Indicator v6 Screeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Bradley Siderograph: Blueprint_So9

ADA4H Optuna Strategy

by skywalker0803r
42 stars

This strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of ADA4H Optuna Strategy
42 stars

This overlay indicator estimates realized volatility from log returns and annualizes it with a user-chosen periods-per-year setting. It ranks that volatility against a trailing lookback to label calm, normal, or storm regimes, and it converts a target volatili

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Storm Gauge — Vol Regime + Position Size

Cronex T Demarker

by romulodl
42 stars

Cronex T Demarker is a momentum indicator that calculates a modified DeMarker oscillator averaged over multiple step lengths and centered at zero. It applies a T3 exponential smoothing filter based on a customizable curvature parameter to generate a smooth tri

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of Cronex T Demarker
41 stars

This indicator transforms standard RSI calculations into logit space, estimating rolling distributions to derive empirical z-scores mapped back to the 0–100 RSI scale. Plotted in a separate pane, it features multi-horizon central lines—fast and structural cent

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Calibrated RSI Position Zones
39 stars

This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th

Strategy v6 BreakoutSessions & time Repaints
Updated 4 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy

This macro indicator analyzes international and domestic transmission channels affecting Vietnamese government bond yields. Plotted in a separate pane with diagnostic tables and background shading, it tracks six macro pathways including Japanese yields, Yen ca

Indicator v6 Screeners & dashboards

24-hour Volume

by TWODS-CAPITAL
37 stars

This indicator plots a rolling 24-hour volume total as columns in a separate pane. On each bar it builds a running sum of volume over the last 24 hours, using a one-minute, five-minute, or hourly series depending on the chart timeframe. When the symbol's volum

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of 24-hour Volume

MY MACD Strategy

by Li-Hongmin
36 stars

This strategy enters directional trades based on MACD histogram zero-line crossovers filtered by a safety threshold. Users toggle long or short trading modes independently. MACD lines can be calculated using simple or exponential moving averages. Exits execute

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MY MACD Strategy

CombinedBinHAndClucV6

by viktors1982
36 stars

CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of CombinedBinHAndClucV6

Forex PS

by brahma-investment-group
34 stars

This indicator calculates forex position sizing in lots based on hardcoded risk and stop-loss parameters. It queries the 5-minute closing price of a user-configurable conversion currency pair using a security call to convert risk across currencies. The script

Indicator v5
Updated 1 year ago · MIT GitHub repository of Forex PS

Strategy Scanner

by RobertAgee
34 stars

This indicator scans up to thirty symbols simultaneously against selected technical strategies, such as moving average crosses, price strength, or volume momentum. It displays long and short signals using shapes, labels, and horizontal lines directly inside a

Indicator v5 Screeners & dashboardsMoving averages
Updated 3 years ago · None stated GitHub repository of Strategy Scanner

Extension Functionality Test

by tradesdontlie
33 stars

Extension Functionality Test is a Pine Script v6 script designed to evaluate editor extension capabilities such as syntax highlighting, code completions, hover documentation, and static analysis. The code demonstrates various Pine v6 features, including dynami

Indicator v6
Updated 7 days ago · MIT GitHub repository of Extension Functionality Test

Codex 5m Webhook - GC Scalp

by WilliamYi951208
33 stars

This indicator plots an exponential moving average on the price chart and formats structured JSON alert payloads on confirmed bar closes. It is designed to export real-time market data to external webhook receivers or AI assistant backends. Inputs allow users

Indicator v5 Moving averages
Updated 4 months ago · MIT GitHub repository of Codex 5m Webhook - GC Scalp

ADX and RSI

by thanhnguyennguyen
33 stars

This indicator plots the Average Directional Index with plus and minus directional indicators in a separate pane. It builds directional movement from true range using Wilder's smoothing, then draws ADX, plus DI and minus DI against a dotted trend-strength line

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX and RSI

Strategy

by sibvic
33 stars

This script serves as a boilerplate strategy template featuring modular trade execution and order management. It includes placeholder buy and sell signals intended to be completed by the user. The template provides customizable risk management features includi

Strategy v5
Updated 4 years ago · MIT GitHub repository of Strategy

The [Pirate] 2 Moving Averages and Cross indicator plots fast and slow moving averages directly on the price chart to assist with trend identification. Users can select from exponential, simple, running, weighted, or volume-weighted moving average types. It au

Indicator v4 TrendMoving averages
Updated 5 years ago · Unlicense GitHub repository of [Pirate] 2 Moving Averages and Cross
32 stars

Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi

Indicator v6 TrendBreakout
Updated 2 days ago · MIT GitHub repository of Ghost Channels [mph1nance]
32 stars

This indicator plots a composite oscillator in a separate pane. It draws a classic Awesome Oscillator histogram from 5- and 34-period simple moving averages of the median price, plus a MACD histogram from 12- and 26-period exponential moving averages with a 9-

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Awesome Oscillator & MACD Cross

BBW RSI 15 Study

by modster
32 stars

BBW RSI 15 Study is an overlay indicator designed for automated crypto trading via webhooks. It plots standard-deviation-adjusted Bollinger Bands directly on the price chart while calculating secondary metrics such as Stochastic RSI, volume moving averages, an

Indicator v4 Volatility & bandsVolume
Updated 3 years ago · None stated GitHub repository of BBW RSI 15 Study

Hedge Scalp

by nikita-doronin
30 stars

The Hedge Scalp indicator calculates an Exponential Moving Average (EMA) and generates four long grid levels and one hedged short grid level at user-defined percentage distances below the EMA. It models grid entry execution and average entry take-profit levels

Indicator v5 Moving averagesSupport & resistance
Updated 2 years ago · Custom licence GitHub repository of Hedge Scalp

Zen ABR Against

by Zen-Tim
29 stars

This overlay indicator measures average bar range as a simple moving average of high minus low, then draws short horizontal ticks at one to four times that range above and below the close. The user chooses which multipliers appear, their colors, and the line w

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen ABR Against
29 stars

This indicator calculates a dynamic trend-following line on the price chart by combining custom Supertrend calculations with exponential rate scaling. It identifies trend direction based on price crossovers against ATR-based distance bands. As a trend persists

Indicator v6 TrendVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Exponential Trend [AlgoAlpha]

Multi Indicator Stats

by algocode2022
29 stars

This indicator computes several classic studies in a separate pane: Bollinger Bands from a simple moving average and standard deviation, an inverse-Fisher transform of the CCI smoothed by a weighted moving average, RSI, MACD with a histogram, and Stochastic RS

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Multi Indicator Stats

Test Script

by iamrichardD
29 stars

This indicator is a short Pine Script v6 test fixture for function signature checks. It calculates a 14-period simple moving average of the close and calls alert with a fixed message. The remaining lines deliberately misuse functions, including an extra argume

Indicator v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Test Script
27 stars

LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of LuxAlgo Hybrid Gold Scalper

Nueva_23-07

by santiagocanepa
27 stars

This multi-indicator modular strategy evaluates market entries by requiring consensus across a selectable suite of technical tools, including Absolute Strength, SSL Channel, Squeeze Momentum, and WaveTrend. Once conditions are met, it executes entries and scal

Strategy v5 Oscillators & momentumTrend
Updated 6 months ago · Custom licence GitHub repository of Nueva_23-07

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