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

Apex Protocol v3.3

by alboogycOdR
6 stars

Apex Protocol v3.3 is a Smart Money Concepts trading indicator that plots order blocks, fair value gaps, BOS and MSS markers, auto Fibonacci levels, area of interest zones and external internal structures on the price chart. It supports multiple killzone sessi

Indicator v5 SMC / ICT / price actionScalping Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.3
5 stars

This indicator plots 50, 100 and 150 period exponential moving averages on the price chart and measures each average slope in degrees. It places a long label when the averages stack upward, all slopes exceed the angle limit, and price closes back above the sho

Indicator v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Triple EMA + Sloping Trend
4 stars

This trend-following strategy calculates the Supertrend indicator using average bar prices and Average True Range (ATR). It plots a color-coded trend line directly on the price chart along with buy and sell shapes. The strategy enters a long position when the

Strategy v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Supertrend Strategy [trugurpala]

This indicator plots entry signals directly on the price chart by combining Directional Movement Index (DMI) and Moving Average Convergence Divergence (MACD) indicators. It offers two distinct signal logic modes that trigger when DMI and MACD confirm each othe

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of DMI ADX Signals with MACD Signals

VitAlgo

by IAMATOMIC001
3 stars

VitAlgo is an overlay technical indicator suite that provides signal generation and visual trend tracking tools directly on the main price chart. It integrates multiple analysis modules, including customizable Sensitivity-based signal modes, Smart Trail, Rever

Indicator v5 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of VitAlgo

One Setup for Life ICT

by alvinng214
2 stars

This indicator plots horizontal lines, boxes and text labels on the price chart to mark key trading sessions. It displays daily session ranges, Silver Bullet, LN, NY, PM, London, Prev AM, Lunch and PM sessions using New York timezone calculations. The script c

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of One Setup for Life ICT

WaveTrend [LazyBear]

by avatar-lavventura
2 stars

This indicator calculates LazyBear's WaveTrend oscillator to identify overbought and oversold market conditions. It computes an exponential moving average channel on typical price (HLC3) to generate the primary oscillator line and a 4-period simple moving aver

Indicator v4 Oscillators & momentum
Updated 7 months ago · None stated GitHub repository of WaveTrend [LazyBear]

MESA Adaptive Moving Average (MAMA)

by mushroom-men-Trading
2 stars

The MAMA indicator calculates the MESA Adaptive Moving Average and Filtered Adaptive Moving Average using Ehlers' MESA algorithm. It plots both lines in yellow directly on the price chart as a smoothed trend indicator. Main settings include the source series a

Indicator v6 TrendMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MESA Adaptive Moving Average (MAMA)
2 stars

The SVIX Bollinger Bands Strategy V2 uses Heikin-Ashi price calculations to plot customized Bollinger Bands and Keltner Channels directly on the price chart. It triggers a long entry when the Heikin-Ashi close crosses above the lower Bollinger Band. The strate

Strategy v5 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of SVIX Bollinger Bands Strategy V2

Hammers & Shooting Stars

by Web3Degenerate
2 stars

This overlay indicator marks hammer and shooting star candles on the price chart. It places a Fibonacci level inside each candle and treats a hammer as a body sitting above the upper level and a shooting star as a body sitting below the lower level. Optional f

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Hammers & Shooting Stars
1 stars

This indicator identifies bullish Change of Character (CHoCH) structure shifts directly on the price chart using pivot swing points. It tracks swing highs and lows governed by configurable left and right lengths and maximum swing age. The script highlights CHo

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 days ago · None stated GitHub repository of REV Ladder (Best Bullish CHoCH)

Multi Indicator Score

by pineforge-4pass
1 stars

A strategy that builds a score from minus three to plus three using RSI against 50, price against an EMA, and price against the Bollinger mid line. It enters long when the score reaches two or more and short when it reaches minus two or lower. Positions close

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Multi Indicator Score

P_fmt_number_literals

by GammaExpansion
1 stars

P_fmt_number_literals is a test indicator that evaluates number literal syntax and formatting in Pine Script v6, including scientific notation, standard decimals, integers, and hexadecimal color definitions. It calculates a combination of variable assignments

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_fmt_number_literals

Strong NQ ORB Breakouts

by rosijay17-cmd
1 stars

An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the

Indicator v6 BreakoutSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of Strong NQ ORB Breakouts

DEPV2 Debug S3

by YuceSezar89
1 stars

Calculates and visualizes multi-symbol signals across four distinct metric categories: trend, momentum, volatility, and volume. It tracks up to 20 cryptocurrency pairs simultaneously, supporting signal combination modes like single-method execution, simultaneo

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 Debug S3
1 stars

Draws a moving price level that bounces between the highest high and lowest low of a rolling window, 50 bars by default, with the range midline and a mirrored close line on the price chart. Buy and sell labels appear when price crosses the mirrored line or the

Indicator v5 Mean reversionOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Auto Mirror Reversal Signals
1 stars

A Bollinger Band breakout strategy with Spanish-language settings. It goes long when price closes above the upper band and short when it closes below the lower band, limited to a configurable date range and a cooldown of bars between trades. Three take-profit

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger - 3 TPs (Frecuentes)

Fable Bear HTF v1.3

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engines. A

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear HTF v1.3

TN kNN Matrix ML

by raybird
1 stars

A machine learning strategy using k-nearest neighbours with a Lorentzian distance. Four normalised features, RSI, price rate of change, CCI and volume rate of change, are stored in a rolling matrix with a label for whether the next close was higher. Each bar i

Strategy v6 AI / machine learning
Updated 2 months ago · None stated GitHub repository of TN kNN Matrix ML

A Pine Script v5 indicator in a separate pane, the fourth revision of a Hurst spectral oscillator. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and plots the cycle waves, with an optional composite line. Each cycle has its o

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator V4

Price Volume Trend

by ivansoft
1 stars

Plots the Price Volume Trend in a separate pane: a running total of volume weighted by the percentage change in close. Rising values show volume accompanying upward closes, falling values the reverse. It has no inputs and no signals. The script raises an error

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Price Volume Trend
1 stars

A separate-pane indicator that builds On Balance Volume and subtracts its 20-period EMA to form an oscillator, drawn as a coloured line and area around a zero line. It detects regular bullish and bearish divergence between price pivots and the oscillator, labe

Indicator v5 VolumeDivergence
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 41 OBV
1 stars

A Pine v4 strategy that redraws candles in a separate pane and plots VWAP with one percent bands. It goes long on a green non-doji candle and short on a red one, unless the move runs against the opposite position and the close sits inside the band. Inputs set

Strategy v4 Volume
Updated 4 years ago · None stated GitHub repository of SlimScript Stop and Target

Price Volume Trend

by everget
948 stars

This indicator plots Price Volume Trend in a separate pane and compares it with an optional smoothed signal. The signal is an SMA or EMA of the PVT series, with a default length of 21 and a selectable price source. When filling is on, the ribbon between the tw

Indicator v4 VolumeOscillators & momentum
Updated 11 days ago · GPL-3.0 GitHub repository of Price Volume Trend

This strategy plots multi-timeframe Bollinger Bands on the price chart and trades mean reversion around them. It enters long when the close is below the higher-timeframe lower band and, if enabled, short when the close is above the upper band. An optional high

Strategy v4 Volatility & bandsMean reversion Repaints
Updated 2 months ago · None stated GitHub repository of MTF Bollindger Bands Strategy [Alorse]

BDT-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale transactions directly on the price chart using chart labels. It visualizes historical buy and sell records for the underlying stock, marking trade dates and fund activity. The input setting allows th

Indicator v4
Updated 2 years ago · None stated GitHub repository of BDT-tracker

MathConstantsScientific

by ricardosantos79
261 stars

This Pine Script v5 library exports named SI scientific prefix factors as constant functions. Each function returns a power of ten, from Yotta through Yocto, covering large prefixes such as Giga and Mega and small prefixes such as Milli, Micro, and Nano. It ca

Library v5
Updated 4 years ago · None stated GitHub repository of MathConstantsScientific
257 stars

This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - Best Futures V3

Session Filter Template

by TradersPost
218 stars

Session Filter Template highlights major global trading sessions including Asia, London, New York, and a user-defined custom session directly on the price chart. It visualizes active sessions using background color fills, tracks high and low price levels for e

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Filter Template
114 stars

This indicator computes a composite oscillator by min-max normalizing and averaging several technical factors, including the Relative Strength Index, Commodity Channel Index, Center of Gravity, and a sigmoid-transformed price slope. It also evaluates the compo

Indicator v4 Oscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Aggregate Signal (Improved)

This strategy executes breakout trades based on historical high and low entry bands and manages risk using adaptive ATR trailing stop-loss levels. It enters long positions when the close breaks above the lookback band and short positions when it breaks below.

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of ATR trailing SL tight to slack [Takazudo]
99 stars

Calculates the Pearson correlation coefficient between price data and a linear time index over a customizable lookback period. It measures linear trend strength and direction, outputting values bounded between -1.0 and +1.0. The script uses an optimized increm

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Correlation Trend Indicator (CTI)

Bands

by be-thomas
65 stars

Bands is a Pine Script v4 overlay indicator from a TradingView arrays example. It stores a base level equal to the lowest average OHLC of the prior 50 bars, taken 10 bars back, in a one-element array. A function multiplies that stored value by one and then by

Indicator v4 Support & resistance
Updated 5 days ago · GPL-3.0 GitHub repository of Bands

Inertia

by mihakralj
47 stars

The Inertia oscillator measures trend deviation by calculating the distance between the current price and a linear regression line endpoint. It computes a linear regression fit across the specified lookback period and subtracts the projected line value from th

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Inertia
46 stars

This indicator plots the New York 5-minute and 15-minute Opening Ranges (ORB) directly on the main price chart. It projects opening range boxes along with midlines and median extensions to identify intraday key levels. Additionally, it can draw custom lower ti

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 weeks ago · None stated GitHub repository of NY Opening Range (Enhanced with LTF)

Engulfing - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies and labels bearish engulfing candlestick patterns directly on the price chart. It checks for a small bullish candle followed by a large bearish candle that engulfs the previous body. Pattern detection can be filtered using moving aver

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Engulfing - Bearish
16 stars

This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Accelerated Pyramid

This strategy trades long and short on the price chart using a multi-timeframe TradingLatino setup. It requires EMA 10 to cross or sit above or below EMA 55 on the one-hour, four-hour, and daily charts, together with a positive ADX slope, a directional monitor

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard ABCBitcoin TradingLatino A010
9 stars

This indicator plots an anchored MIDAS support and resistance curve from launch-anchored volume-weighted price on the price chart. It adds two configurable volume-weighted standard-deviation, ATR, or hybrid bands and a topfinder or bottomfinder accelerated exh

Indicator v6 Mean reversionSupport & resistance Repaints
Updated 2 days ago · MIT GitHub repository of MIDAS 2.0 [WavesUnchained]
7 stars

This price-chart overlay compares market effort with price result and does not generate buy or sell signals. Effort combines current volume divided by a moving average of volume with true range divided by ATR. Result uses absolute net progress over a lookback

Indicator v6 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of Effort vs Result Context Overlay
6 stars

Apex Protocol - The SMC Engine is a comprehensive Smart Money Concepts indicator that overlays key market structure levels directly on the main price chart. It calculates internal and external market structures (BOS and MSS), Order Blocks, Fair Value Gaps (FVG

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.4 - The SMC Engine

This strategy evaluates bullish trend strength by calculating three Exponential Moving Averages (50, 100, and 150 periods) alongside their average slope angles in degrees. It plots the EMAs on the price chart and triggers long entries when the moving averages

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Triple EMA + Sloping Trend Long Strategy
4 stars

This strategy trades momentum breakouts based on the alignment of three exponential moving averages. It enters a long position when all three EMAs align in ascending order and enters short when they align in descending order. Positions are managed with ATR-bas

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Triple EMA Strategy [trugurpala]

DTEK Candles

by g-moe
3 stars

This indicator calculates dual trend filters by combining a custom SuperTrend with a Commodity Channel Index ATR trailing stop. The SuperTrend component utilizes customizable moving average types, including Hull, Exponential, and Simple Moving Averages. When p

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of DTEK Candles

Xpert Algo

by IAMATOMIC001
3 stars

Xpert Algo is a multi-feature technical indicator that plots trend-following and contrarian trade signals on the price chart. It calculates adaptive entry signals, trend clouds, reversal dots, and market structure swing points. The indicator features dynamic t

Indicator v5 TrendSupport & resistance
Updated 12 months ago · None stated GitHub repository of Xpert Algo

Order-Block Detector

by alvinng214
2 stars

Order-Block Detector identifies bullish and bearish order blocks based on candle direction changes and draws them on the price chart. It also detects fair value gaps (FVGs) and generates signals for potential entries when these levels are respected. The script

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Order-Block Detector

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