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

Poor Man's Volume Clusters calculates an approximation of volume profile clusters over fixed bar blocks and plots them directly on the price chart. It divides price ranges into discrete horizontal rows, aggregates trading volume per level, and optionally highl

Indicator v4 VolumeSupport & resistance Repaints Archived
Updated 2 years ago · MPL-2.0 GitHub repository of Poor Man's Volume Clusters

Auto Fib Extension

by heyphat
26 stars

Auto Fib Extension automatically identifies high and low pivot points on the price chart to construct Fibonacci extension levels. The script calculates pivot points based on a user-defined depth setting and tracks significant swing points using dynamic chart p

Indicator v6 Support & resistance Repaints
Updated 2 months ago · AGPL-3.0 GitHub repository of Auto Fib Extension

Order Block Finder

by stonkpunk
26 stars

Order Block Finder is an indicator that identifies institutional bullish and bearish order blocks on the price chart. A bullish order block is detected as a down candle preceding a user-defined sequence of up candles, while a bearish order block is an up candl

Indicator v4 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Order Block Finder
25 stars

Awesome Oscillator Divergences calculates the Awesome Oscillator using the difference between fast and slow exponential moving averages of the median price. It identifies regular and hidden bullish and bearish divergences by comparing pivot highs and lows on t

Indicator v4 DivergenceOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Awesome Oscillator Divergences

Eps Probe

by GeneralTradingSarl
24 stars

A diagnostic utility that tests floating-point precision and epsilon limits in Pine Script. It evaluates multiple arithmetic comparisons using tiny numeric offsets against runtime calculations to avoid compile-time folding. The script formats the boolean test

Indicator v5 Screeners & dashboards
Updated 10 days ago · Custom licence GitHub repository of Eps Probe

This indicator identifies Qullamaggie-style momentum trading setups, including Breakout, Episodic Pivot (EP), and Parabolic reversals. It evaluates prior moves, consolidation tightness, volume expansion, moving average alignment (50 SMA and 20 EMA), and stretc

Indicator v5 Oscillators & momentumBreakout
Updated 2 months ago · MIT GitHub repository of Qullamaggie Setups - Breakout / EP / Parabolic

3hr Stoch

by benso87
24 stars

3hr Stoch is a short-only trading strategy based on a smoothed Stochastic Oscillator. It calculates the %K and %D lines using configurable period and smoothing settings. The strategy enters a short position when the %K line crosses below the %D line while drop

Strategy v5 Oscillators & momentumMean reversion
Updated 4 years ago · MPL-2.0 GitHub repository of 3hr Stoch

Debug Test

by jpantsjoha
23 stars

Debug Test is a minimal example script written in Pine Script v6 designed for editor testing and extension validation. It demonstrates basic input parameter definitions, configuring a boolean toggle and a color selection setting without executing complex calcu

Indicator v6
Updated 3 weeks ago · Custom licence GitHub repository of Debug Test

Stocks - Bullish Engulfing

by LouisLetcher
23 stars

This Pine Script strategy identifies classic bullish engulfing candlestick patterns to open long positions, deploying 100 percent of equity. It calculates a short-term Relative Strength Index to determine exits, closing open long positions when the RSI exceeds

Strategy v6 Candlestick patternsOscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Stocks - Bullish Engulfing
23 stars

This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period

Indicator v4 Support & resistanceDivergence
Updated 3 years ago · None stated GitHub repository of Daily High and Low Strategy

Lucid SAR

by pacificbay
22 stars

This indicator implements the Parabolic SAR based on J. Welles Wilder, Jr.'s original specification from New Concepts in Technical Trading Systems. It plots trailing stop and reverse values directly on the main price chart as blue crosses. Users can adjust the

Indicator v4 Trend
Updated 6 years ago · MIT GitHub repository of Lucid SAR

PVP | Key Levels

by abbaselmas
21 stars

This indicator draws a periodic volume profile on the price chart and marks the point of control plus optional value-area high and low. It distributes each bar's volume across profile rows using a selected periodic timeframe, row count, value-area percentage,

Indicator v6 VolumeSupport & resistance Repaints
Updated 7 days ago · None stated GitHub repository of PVP | Key Levels

Complete

by ferranbt
21 stars

Complete is a short Pine Script v6 indicator used as an editor completion fixture. It declares a user-defined Point type with float fields, constructs one instance, and reads its x coordinate. It also calculates a five-bar simple moving average of the close an

Indicator v6 Moving averages
Updated 7 weeks ago · MPL-2.0 GitHub repository of Complete
21 stars

This script serves as a syntax demonstration and test suite for Pine Script v6 type declarations, created primarily for testing editor syntax highlighters and themes. It defines user-defined types, exported enums, and demonstrates various variable forms across

Indicator v6 Repaints
Updated 1 year ago · MIT GitHub repository of Type Declaration Coverage

Crypto Context Dashboard

by zabor-crypto
20 stars

This indicator draws a visual present-state context panel on the price chart. It classifies volatility from ATR and Bollinger bandwidth percentiles, measures how far price sits from an EMA in ATR units, and scores trailing candle noise with wick ratio, directi

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 3 days ago · MIT GitHub repository of Crypto Context Dashboard

Adaptive Money Flow Index

by palitojendthen
20 stars

The Adaptive Money Flow Index indicator dynamically adjusts its lookback length using John Ehlers dominant cycle measurement technique. It filters the input source using a high-pass filter and a SuperSmoother filter, applying Pearson correlation and spectral a

Indicator v5 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of Adaptive Money Flow Index

Marubozu Finder

by Tikam02
20 stars

Marubozu Finder identifies classic bullish and bearish Marubozu candlestick patterns based on the previous completed bar. It detects a bullish Marubozu when the previous bar's high equals its close and its low equals its open. Conversely, a bearish Marubozu is

Indicator v5 Candlestick patterns
Updated 2 years ago · Apache-2.0 GitHub repository of Marubozu Finder
19 stars

This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · MIT GitHub repository of ICT Killzones & Pivots

Bandz HTF

by samuelharting
18 stars

Bandz HTF projects higher-timeframe candle structures, ranges, and key levels directly onto the main price chart. It visualizes multiple configurable timeframe lanes from intraday to weekly alongside primary and macro range levels, including 25%, 50%, and 75%

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz HTF

This overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of ML SuperTrend (Ultimate) - Auto-Optimized AI with LSTM

Engulfing Patterns

by shibisuriya
18 stars

This indicator identifies and plots bullish and bearish engulfing candlestick formations directly on the price chart. It checks standard body-engulfing criteria using prior and current bar open and close values, with optional stricter filters for wick engulfme

Indicator v4 Candlestick patterns
Updated 4 years ago · None stated GitHub repository of Engulfing Patterns

BBW RSI 60 Study

by SammyEnigma
18 stars

BBW RSI 60 Study combines Bollinger Bands, Bollinger Band Width (BBW), and the Relative Strength Index (RSI) to monitor volatility compression and momentum reversals. It plots standard Bollinger Bands directly on the price chart while internally calculating RS

Indicator v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of BBW RSI 60 Study

This indicator calculates the Relative Strength Index (RSI) alongside a simple moving average to generate directional momentum signals in a separate pane. It supports Break Flip and Break Continuous scanning modes for long and short setups. A wide array of opt

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation

MACD Strategy

by midoks
16 stars

This strategy calculates a standard moving average convergence divergence oscillator and executes trades directly on the main price chart. It opens a long position when the histogram delta crosses above zero and enters a short position when it crosses below ze

Strategy v5 Oscillators & momentumMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of MACD Strategy

FDL pro

by cantolab
16 stars

This overlay indicator plots the 100-period and 200-period exponential moving averages on the price chart and marks buy or sell triangles after an EMA crossover when the next two candle opens stay on the correct side of the 100 EMA and price stays within a sym

Indicator v5 Moving averagesSessions & time
Updated 2 months ago · None stated GitHub repository of FDL pro

ORB Multi-Model Indicator

by Mrshahidali420
16 stars

This indicator plots several New York opening-range breakout models on the price chart and can also show a combined confidence-scored signal. Enabled models include classic Crabel, a five-minute scalper, a standard fifteen-minute breakout, and a gold variant,

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Multi-Model Indicator

NWOG + ORG

by traderdiegox
16 stars

This overlay indicator draws the new week opening gap and the opening range gap on the price chart. It paints each gap as a colored zone with optional borders, a dashed midpoint line, and a text label. Users can hide either gap, change colors and border style,

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of NWOG + ORG

P404 Smoke

by Musyimi97
16 stars

P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of P404 Smoke

Seykota / Turtle Core

by trustdan
16 stars

This strategy trades Donchian channel breakouts on the price chart. It enters long or short when price breaks the prior entry channel, sizes each unit from a percentage of equity and ATR, and adds units at fixed ATR steps up to a set maximum. It exits on the o

Strategy v6 TrendBreakout
Updated 11 months ago · None stated GitHub repository of Seykota / Turtle Core

This indicator detects bullish and bearish engulfing candlestick patterns on the main price chart based on configurable bar fullness and height filters. It identifies specific pattern variations, including 3-Strike reversals and 180-degree turnarounds, marking

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Bull & Bear Engulfing - 3 Strike and 180 Candles X EMA

SuperTrend Strategy

by rahulmr
16 stars

SuperTrend Strategy is a trend-following strategy that plots an ATR-based SuperTrend line on the price chart and optionally fills the background green or red with the trend. It opens a long when the trend flips up and a short when it flips down, only inside a

Strategy v4 TrendVolatility & bands Repaints
Updated 6 years ago · MIT GitHub repository of SuperTrend Strategy

Kalman Percentile Bands

by NQ-stats-MX
15 stars

Kalman Percentile Bands plots a volatility-adaptive Kalman mean along with three empirical percentile bands on each side of the price chart. It calculates a local-level Kalman filter as the fair value mean, normalizes price deviations by an EWMA of volatility,

Indicator v6 Mean reversionVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Kalman Percentile Bands

Clusterbreak

by Jferheart
15 stars

This indicator identifies Break of Structure (BOS) and Market Structure Shift (MSS) zones, plotting automated bracket levels on the price chart. It triggers signals when a reversal breaks a swing point formed inside an opposing zone, projecting stop loss and t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Clusterbreak
15 stars

This indicator plots Bollinger Bands and smoothed HAMA candles on the price chart. It builds each candle from separate moving averages of open, high, low and close, using selectable EMA, SMA or WMA lengths. A simple moving average forms the band basis, and an

Indicator v5 Candlestick patternsMoving averages
Updated 4 months ago · Apache-2.0 GitHub repository of NSDT HAMA Candles with Bollinger Bands

Annualized ROC / HV Ratios

by Blackdesk-ai
15 stars

This indicator plots two ratios of annualized rate of change to annualized historical volatility in a separate pane. It requests daily closes and computes a 252-day and a 63-day compound ROC, each scaled by 252 trading days. Historical volatility is the standa

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of Annualized ROC / HV Ratios

XAUUSD SMC Bot

by GifariKemal
15 stars

This strategy plots on the XAUUSD price chart and looks for Smart Money Concepts entries on the fifteen-minute timeframe. It scores fair value gaps, order blocks, liquidity sweeps, break of structure, and change of character, plus EMA, RSI, MACD, and higher-ti

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of XAUUSD SMC Bot
14 stars

This indicator calculates intrabar Cumulative Volume Delta (CVD) using lower timeframe data and applies linear regression to determine market bias. It evaluates regression slope and R-squared values across a chosen anchor period to identify volume-driven trend

Indicator v6 VolumeTrend
Updated 13 days ago · None stated GitHub repository of Alighten CVD Regression Bias
14 stars

Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

Bottom Level Finder

by chris-c-thomas
14 stars

Bottom Level Finder is a support identification indicator designed to locate correction and re-entry zones directly on the price chart. It calculates horizon-adaptive Fibonacci retracements, drawdown percentage levels, moving averages, and integrated VIX volat

Indicator v6 Support & resistanceMoving averages
Updated 6 months ago · MIT GitHub repository of Bottom Level Finder

ATRLevels

by stupenkov
14 stars

Calculates horizontal price levels anchored to the session open using the daily Average True Range (ATR). It retrieves the previous day ATR through a security call to project symmetrical upper and lower boundary bands across fractional ratios of the ATR range.

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · None stated GitHub repository of ATRLevels
14 stars

This strategy compares two momentum readings of the close, a faster and a slower period, and plots both in a separate pane with a colored fill. It enters long when both readings are positive and closes the long when either turns negative. Unless long-only mode

Strategy v4 Oscillators & momentum
Updated 5 years ago · Apache-2.0 GitHub repository of Momentum Strategy Idea

CC Test

by saket3395
13 stars

This script calculates and plots a standard Exponential Moving Average on the main price chart. It evaluates the average closing price over a configurable lookback period, which defaults to 14 bars. The calculated moving average is rendered as a blue line dire

Indicator v6 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of CC Test

Strategy-Picker

by hintheman
13 stars

Strategy-Picker evaluates market trend, momentum, and volatility across multiple timeframes (5m, 15m, and 60m) to recommend suitable options trading structures. It combines MACD, an 8-period EMA, and ADX readings with external VIX levels to suggest Put Credit

Indicator v6 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Strategy-Picker
13 stars

The Adaptive Trend Finder calculates logarithmic linear regression channels overlaid on the price chart. Operating on the most recent historical bar, it fits a log-transformed regression line and standard deviation bands. It evaluates linear correlation using

Indicator v6 TrendSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Adaptive Trend Finder (log)

Alert VOL Strong Candle CME

by codingfordummies911
13 stars

This overlay indicator classifies candle volume against a Wilder moving average and highlights unusually strong volume on the price chart. In automatic mode it requests matching CME or COMEX futures volume for mapped forex, gold, silver, crypto, and index symb

Indicator v5 Volume Repaints
Updated 10 months ago · None stated GitHub repository of Alert VOL Strong Candle CME

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