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

Wick Hunter VWAP

by avatar-lavventura
2 stars

This indicator calculates the volume-weighted average price using a specified period and plots it on the price chart along with upper and lower bands set at a percentage deviation above and below the VWAP value. The bands serve as reference levels for potentia

Indicator v4 Moving averagesSupport & resistance
Updated 7 months ago · None stated GitHub repository of Wick Hunter VWAP

Modified Moving Average (MMA)

by mushroom-men-Trading
2 stars

This indicator calculates a modified moving average that mixes a simple moving average with a weighted component over a circular buffer. It plots the resulting line on the price chart. The period sets the lookback, which must be at least 2, and the source choo

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of Modified Moving Average (MMA)

Wave Trend Overbought Oversold

by wynnforthework
2 stars

This indicator plots the WaveTrend Oscillator in a separate pane. It computes an EMA of normalized price deviations from the median price divided by standard deviation, then applies an SMA to generate the oscillator line. Signals trigger on overbought conditio

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Wave Trend Overbought Oversold

HMD ATR Trailing Stop Tool

by Web3Degenerate
2 stars

The HMD ATR Trailing Stop Tool calculates and plots a dynamic trailing stop line directly on the price chart. Users select a Long or Short direction, an anchor start time, structure lookback bars, and Average True Range parameters. For long positions, the stop

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of HMD ATR Trailing Stop Tool

SMC Core Types

by skipp-dev
1 stars

This Pine Script v6 library exports core data types, enums, and drawing wrappers designed for Smart Money Concepts tools. It defines structured arguments for drawing lines, labels, boxes, and chart points to simplify visual rendering on price charts for concep

Library v6 Repaints
Updated 3 days ago · None stated GitHub repository of SMC Core Types

OBV EMA Cross

by pineforge-4pass
1 stars

A minimal strategy that compares On Balance Volume with a 21-period EMA of itself. It enters long when OBV crosses above the average and short when it crosses below, reversing the position each time. It has no adjustable inputs, no stop loss and no take profit

Strategy v6 Volume
Updated 6 days ago · Apache-2.0 GitHub repository of OBV EMA Cross

P_fmt_quotes_escapes

by GammaExpansion
1 stars

This indicator is a Pine Script v6 parser fixture that builds five string literals containing escaped double quotes, escaped single quotes, backslashes, a newline escape, hash and slash characters, and Unicode text. It adds the character lengths of those strin

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

An overlay indicator that studies how price approaches, tests and resolves confirmed swing zones, role-reversal levels and CUSUM change-point levels that fade with age. A state machine follows a level, impulse, pullback and higher-low or lower-high sequence an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Structure Physics v4 Rotation Confirmation

DEPV2 DEBUG S30

by YuceSezar89
1 stars

This indicator monitors and analyzes up to twenty cryptocurrency perpetual futures pairs from a separate pane. It evaluates market conditions across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script tests signal confirmat

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S30

This indicator detects higher-timeframe order blocks and fractals to generate scored reversal signals directly on the price chart. It evaluates candidate setups using a multi-factor scoring system incorporating RSI momentum, trend EMAs, midpoint distance, and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

Breakout Pattern Setup

by vedkanani123
1 stars

A pattern indicator on the price chart that looks for converging channels, such as triangles and wedges, from swing pivots. A channel needs a minimum number of touches per boundary, a maximum width, a minimum convergence rate and ATR-based tolerances. Breakout

Indicator v6 BreakoutSupport & resistance
Updated 2 months ago · None stated GitHub repository of Breakout Pattern Setup

Fable Bear HTF v1.4

by nishpa800
1 stars

A bearish-side detection indicator for higher timeframe charts that places numbered signals on the price chart. Its engines cover relative volume tiers, displacement by a standard deviation multiplier, a VWMA with ATR Supertrend latch, pocket pivots, fair valu

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

A liquidity sweep strategy on the price chart. It flags bars that push beyond the recent high or low and close back inside, then scores the setup using volume, a higher-timeframe EMA trend, an ATR noise filter and a lower-timeframe rejection check. The signal

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Liquidity Sovereign

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst spectral oscillator. The hl2 price passes through bandpass filters for cycles from 1 day to 18 years, and the resulting waves are drawn with an optional composite line. Bandwidth and

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

TMA Overlay

by webcrack4
1 stars

TMA Overlay plots four smoothed moving averages of close, with lengths 21, 50, 100 and 200, on the price chart. The 100-period line can be hidden. It fills the area between a two-period EMA and the 200-period smoothed average green or red according to which is

Indicator v4 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of TMA Overlay
1 stars

Plots the Rank Correlation Index of a chosen source over a set length, 10 by default, in a separate pane with bands at plus and minus 80 and a middle line. An optional smoothing line can be added using SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands w

Indicator v6 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Rank Correlation Index
1 stars

A Pine v4 strategy that plots VWAP with upper and lower bands set by percentage inputs. It opens a long when price opens above the upper band and a short when it opens below the lower band, and exits when the open crosses back over VWAP. It offers double entri

Strategy v4 Volume
Updated 4 years ago · None stated GitHub repository of SlimScript VWAP Bands

Range Candles

by everget
948 stars

Plots custom-colored candlesticks directly over the price chart. It determines the direction of each bar by comparing the close price to the open price and colors the candle bodies, borders, and wicks accordingly. The user inputs allow customization of the bul

Indicator v4 Candlestick patterns
Updated 11 days ago · GPL-3.0 GitHub repository of Range Candles
330 stars

This strategy plots Bollinger Bands on the chart timeframe and a second pair from a selectable higher timeframe. It averages the two upper bands and the two lower bands, then shades the space between matching bands. It opens a long when the close falls below t

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

BEKE Tracker

by Allen1212
303 stars

Visualizes historical buy and sell transactions by ARK Invest ETFs for KE Holdings Inc. (BEKE) directly on the price chart. The indicator plots colored labels at specific historical timestamps indicating when ARK funds purchased or sold shares, along with a mu

Indicator v4
Updated 2 years ago · None stated GitHub repository of BEKE Tracker

MathConstantsUniversal

by ricardosantos79
261 stars

This Pine Script library provides exported functions for standard physical and universal mathematical constants. It exports high-precision numerical values including the speed of light, gravitational constant, Planck constant, magnetic permeability, and electr

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

An overlay indicator that combines an ATR-based SuperTrend trailing stop with an integrated RSI-derived midline calculation on the price chart. The SuperTrend uses an ATR period and factor multiplier to plot dynamic green or red trend lines based on price dire

Indicator v5 TrendVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of SuperTrend ATR + RSI
218 stars

Calculates and plots Smart Money Concepts (SMC) elements directly on the price chart, including swing and internal market structure (Break of Structure and Change of Character), order blocks, fair value gaps, and liquidity pools. Features multi-timeframe analy

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Smart Money Concepts - Suite

Aggregate Signal (v.2)

by capissimo
114 stars

Aggregate Signal (v.2) is an oscillator indicator that combines multiple technical factors into a single composite score. It scales OHLCV data using minimax normalization and evaluates indicators such as MACD, RSI, Stochastic, CCI, Momentum, On-Balance Volume,

Indicator v4 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Aggregate Signal (v.2)

This strategy plots automated Fibonacci bands paired with exponential moving averages on the price chart across strong, regular, and sideways trend modes. It triggers entry orders upon price interactions with configured Fibonacci thresholds and bullish signals

Strategy v5 Support & resistanceMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Auto Fib Golden Pocket Band - Autofib Moving Average
99 stars

Calculates the statistical covariance between the current chart instrument and an external symbol over a specified rolling window. The calculation uses an optimized circular buffer to maintain running sums and computes joint variability in a single pass. Users

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Covariance (COVARIANCE)

Bar Count

by be-thomas
65 stars

This indicator plots the number of bars that have elapsed since the start of the loaded chart. It adds one to the built-in bar index and draws that value as a histogram on the price chart. The study uses overlay mode with a none scale, so the histogram does no

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of Bar Count

This indicator calculates the Integral of Linear Regression Slope (ILRS), an overlay trend filter originally described by John Ehlers. It computes the rolling least-squares linear regression slope over a user-defined window using a circular buffer and integrat

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Integral of Linear Regression Slope (ILRS)
46 stars

This overlay indicator maps Asia, London, and New York session ranges on the price chart and compares later price action with the Asia range. It draws optional session boxes, a grid of Asia-range multiples from the New York open, and statistical extension and

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NY vs Asia Statistical Levels

Engulfing - Bullish

by TWODS-CAPITAL
37 stars

This indicator marks a bullish engulfing candlestick on the price chart. It requires a white long-body candle whose body covers the previous black small-body candle, and it can require a downtrend defined by price below a 50-period SMA or by the 50-period SMA

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Engulfing - Bullish

This strategy enters long or short when price closes beyond a Donchian channel and can require a slow moving average, called the tide, to agree with the direction. It sizes each unit from ATR risk, sets an initial ATR stop, and adds units after further ATR mov

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Close-Confirmed + Tide

This strategy enters long or short when eight conditions align over the last two bars. It requires EMA 10 and EMA 55 alignment on the one-hour, four-hour and daily charts, a positive ADX slope, matching monitor direction, and price relative to a 400-bar point

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

Modern Trend Regime classifies price action into trend, range, and transition modes using a score rather than a strict conjunction of conditions. It builds fast, base, and slow structure from a price-range, EMA, WMA, or SMA calculation, then compares ATR-norma

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Modern Trend Regime [WavesUnchained]

EMA System

by eddiebelaval
7 stars

EMA System plots four exponential moving averages on the price chart and marks a long-only pullback setup. It treats price above the 200 EMA and the 21 EMA above the 50 EMA as a valid trend, then flags a buy when price is near the 21 EMA, volume is below its s

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of EMA System

AuthLib

by alboogycOdR
6 stars

AuthLib is a Pine Script utility library providing access control and state management structures for technical indicators. It checks callers against a hardcoded array of authorized TradingView usernames before executing operations. The library exports user-de

Library v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of AuthLib

This strategy plots three exponential moving averages on the price chart and measures their average slope in degrees over a chosen lookback. The visible logic looks for a stacked EMA order and a close that crosses back above the shortest average after dipping

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

This strategy plots a fast and a slow exponential moving average on the price chart and enters when they cross. A long opens when the fast average crosses above the slow average, and a short opens on a cross below unless long-only mode is on. An optional trend

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

This indicator plots custom dual moving average crossovers directly on the price chart to signal potential Call (long) and Put (short) entries. Users can choose from SMA, EMA, WMA, VWMA, or HMA types for both moving averages. Upon a confirmed crossover, the sc

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Dual MA Crossover Call Put Targets
3 stars

This indicator plots trading signals and overlays directly on the price chart. It generates directional buy and sell signals filtered by configurable sensitivity, signal tuning, volume, and trend clouds. The script visualizes reversal dots, market structure sw

Indicator v5 TrendSupport & resistance
Updated 12 months ago · None stated GitHub repository of ZZ Algo | Signals & Overlays
2 stars

This library plots order blocks directly on the price chart. It draws lines connecting distal and proximal points of demand order blocks with a middle 50 percent level line and colored zone fills between them. Breaker blocks appear when demand blocks are mitig

Library v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of OrderBlockDrawing_TradingFinder

Wick Hunter VWAP

by avatar-lavventura
2 stars

Calculates a custom Volume Weighted Average Price (VWAP) over a user-defined rolling period using standard HLC3 price data. It plots the central VWAP value alongside upper and lower percentage bands positioned 0.7 percent above and below the main average line.

Indicator v4 Moving averagesVolume
Updated 7 months ago · None stated GitHub repository of Wick Hunter VWAP
2 stars

The Dynamic Equity Allocation Model is an indicator that calculates and plots dynamic allocation percentages between equity and cash in a separate pane. It weighs five factors including market regime detection, risk metrics, valuation, sentiment, and macro con

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 8 months ago · None stated GitHub repository of Dynamic Equity Allocation Model

Money Flow Index (MFI)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Money Flow Index (MFI) in a separate pane. It measures buying and selling pressure by weighting typical price movements with trading volume over a user-defined lookback window. The implementation uses circular buffers to

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Money Flow Index (MFI)

Weird Renko Strat

by wynnforthework
2 stars

Weird Renko Strat requests a traditional Renko series for the chart symbol and compares the latest Renko close with the prior close. In the default mode it enters long when that close rises and short when it falls, then closes the opposing position when the di

Strategy v5 Trend
Updated 1 year ago · None stated GitHub repository of Weird Renko Strat

HMD Bollinger Band Volatility

by Web3Degenerate
2 stars

This indicator measures volatility changes by tracking the expansion and contraction of Bollinger Bands over time. It calculates standard Bollinger Bands, measures the percentage difference in band width relative to a user-defined lookback period, and identifi

Indicator v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of HMD Bollinger Band Volatility

SMC Hold Manager

by skipp-dev
1 stars

SMC Hold Manager is a visual decision-support overlay for managing Smart Money Concept trade positions. It connects to the SMC Engine BUS v2 system or accepts manual trade inputs to display trade lifecycle levels on the price chart. The indicator tracks entry

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 days ago · None stated GitHub repository of SMC Hold Manager

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