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

MNQ Volume Delta Strategy

by rosijay17-cmd
1 stars

An intraday strategy for MNQ futures built around volume delta and cumulative volume delta. Delta comes from either simple bar polarity or lower-timeframe volume. It adds delta z-scores, relative volume, close location, EMA and VWAP alignment filters, plus div

Strategy v6 VolumeDivergence
Updated 7 days ago · GPL-3.0 GitHub repository of MNQ Volume Delta Strategy

DEPV2 DEBUG S15

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols, defaulting to Binance crypto perpetuals, and combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require several classes to agree, require a chosen seque

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

Calculates a volume profile across a user-selected historical time range and projects it forward from a designated mirror timestamp directly onto the price chart. The script collects price and volume data between start and end timestamps, splits the range into

Indicator v6 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of TimeMirrorVol {Morindok}

Volume MAs Oscillator

by vedkanani123
1 stars

A separate-pane oscillator derived from a selectable volume-adjusted moving average, with adaptive bands set by a band length, a smoothing value and separate positive and negative multipliers. A signal type setting picks the reading. Optional oversold and over

Indicator v6 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Volume MAs Oscillator

B2B PUP Combined 4.32

by nishpa800
1 stars

An earlier version of a combined detection indicator that unifies pocket pivot, displacement, VWMA with ATR Supertrend, relative volume, fair value gap and TNT zone engines into numbered signals drawn on the price chart. This release fixes the charge ladder so

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 4.32

This price-chart strategy runs a confirmed-bar state machine that watches MACD line crosses filtered by a 200-period EMA. A lookback audit scores recent candle direction and RSI alignment against the MACD lines, and it enters long or short only when that densi

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TN Causal Backtracking Sovereign

Grimmarty Backtest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a short EMA and the 200 average, and three line strike candle markers for bullish and bearish cases. It also shades a time-zone trading session and holds i

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of Grimmarty Backtest
1 stars

This strategy calculates 12-period and 26-period Exponential Moving Averages (EMA) to identify trend reversals. A custom user-defined function converts the EMA relationship into a numeric signal, outputting positive or negative values based on line positioning

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Typed State Function

A Pine Script v5 indicator in a separate pane that uses Hurst-style bandpass filters on a selectable price source, defaulting to the low, to mark cycle pivots from the 80 day range up to 18 years. Every cycle has its own bandwidth and period setting, plus a ba

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots 80D to 18Y
1 stars

Calculates a reversal confidence score combining Bollinger Band overextension, RSI exhaustion, and price distance from a exponential moving average. The strategy overlays VWAP, EMA, and Bollinger Bands directly on the price chart. Long signals trigger when pri

Strategy v5 Mean reversionOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Reversal Confidence Strategy
1 stars

This overlay indicator builds support and resistance channels from confirmed pivot highs and lows. It groups nearby pivots into channels whose width is limited by a percentage of the recent high-low range, then draws up to a set number of channels on the price

Indicator v4 Support & resistance
Updated 9 months ago · None stated GitHub repository of Support Resistance Channels

Multiple MA

by zhuzp98
1 stars

An indicator that draws three moving averages on the price chart: a base, a slow and a fast line, each selectable as EMA, SMA or Hull type with its own length. The slow line changes colour depending on whether price is above or below it. Labels mark when price

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multiple MA
1 stars

The triple exponentially average indicator computes a triple exponential moving average of the closing price to generate the Trix oscillator. It calculates the successive EMAs and derives the trix as the percentage change of ema3. The script plots the trix val

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Triple Exponentially Average
1 stars

A Pine v4 strategy that plots VWAP in blue and green and red lines for the previous highest high and lowest low over a fast and a slow lookback. It checks for new single or double highs and lows alongside MACD and RSI bottoming patterns. Inputs set the two loo

Strategy v4 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of MACD Please (High-Low Lines)
948 stars

This indicator builds a histogram of percentage gap sizes in a separate pane. It measures each gap as a percentage change, then counts how often those sizes fall into positive and negative bins. Columns show the count in each bin, and optional labels mark the

Indicator v4
Updated 11 days ago · GPL-3.0 GitHub repository of Gaps % Size Distribution

AONE-tracker

by Allen1212
303 stars

AONE-tracker visualizes historical ARK Invest purchase and sale transactions directly on the price chart for the stock. It plots color-coded labels on specific historical trade dates, indicating whether ARK funds bought or sold shares along with the count of p

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

FunctionLinearRegression

by ricardosantos79
261 stars

This library exports a linreg method that fits a straight line through paired sample arrays. It returns fitted Y values plus the largest positive deviation, the largest negative deviation, and the average absolute deviation. Callers pass matching X and Y array

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

Plots three weighted moving averages (periods 13, 48, and 200) directly on the price chart to classify trend transitions and strength. The indicator detects early trend beginnings when the close crosses any of the moving averages, then tracks subsequent moving

Indicator v5 TrendMoving averages
Updated 6 weeks ago · None stated GitHub repository of Snag - Confirm Trend
218 stars

This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m

Strategy v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Strategy Template

SMA Dynamic

by capissimo
114 stars

This indicator plots two weighted moving averages in a separate pane to track price trends with volatility-based adaptation. One moving average uses a fixed user-defined lookback period, while the second adjusts its length dynamically by comparing a 10-period

Indicator v4 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of SMA Dynamic

AI Trend Navigator

by hasnocool
106 stars

This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator
99 stars

This indicator plots the Bull-Bear Power Ratio as two oscillator lines in a separate pane. BR compares the range above the previous close with the range below it, and AR compares the range above the open with the range below it. Both ratios are summed over a r

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bull-Bear Power Ratio (BRAR)

V5 Concepts Colors 00

by be-thomas
65 stars

Calculates and plots five Simple Moving Averages (SMAs) with lengths of 10, 30, 50, 70, and 90 on the main price chart. The script serves as an educational example demonstrating various syntax methods for defining color transparency in Pine Script v5, includin

Indicator v5 Moving averagesTrend
Updated 5 days ago · GPL-3.0 GitHub repository of V5 Concepts Colors 00
55 stars

This indicator automatically identifies swing highs and lows over a 100-bar lookback window on the most recent bar to draw Fibonacci technical overlays. It plots a primary trendline between the detected swing points, alongside extended speed fan lines at stand

Indicator v5 Support & resistance Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Fibonacci Speed Fan & Time Zones

Fisher Transform

by mihakralj
47 stars

Calculates the Fisher Transform oscillator and its signal line to convert price action into a Gaussian probability distribution. It normalizes input prices within a specified lookback window, applies exponential smoothing, and scales the bounded value logarith

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Fisher Transform
46 stars

This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e

Indicator v5 AI / machine learningTrend
Updated 7 weeks ago · None stated GitHub repository of HMM Enhanced: Regime Probability

Coppock Curve

by TWODS-CAPITAL
37 stars

This indicator plots the Coppock Curve in a separate pane. It adds the rate of change of close over a long lookback to the rate of change over a shorter lookback, then smooths that sum with a weighted moving average. The WMA length and the long and short rate-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Coppock Curve
16 stars

This trend-following strategy executes Donchian channel breakout entries combined with Ed Seykota-inspired risk management. It opens long or short positions when price breaks 55-bar highs or lows, provided optional volume and market regime filters align. Posit

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 37: BE + Time

FairValueGap C003

by ruckard
13 stars

FairValueGap C003 is an overlay strategy that identifies Fair Value Gaps (FVG) and opens trades expecting price to return and fill the gap. It calculates the distance between current price levels and recent gap boundaries to aim for partial or full gap fills.

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FairValueGap C003

This indicator maps Stephen Klinger's volume force in a separate pane. It builds a Klinger volume oscillator from fast and slow exponential averages of a volume-force series, then subtracts a signal average to form a histogram. Display normalization keeps zero

Indicator v6 Oscillators & momentumVolume
Updated 2 days ago · MIT GitHub repository of Klinger Volume Force Map [WavesUnchained]
7 stars

Arbitrage Detector [LuxAlgo] compares price and volume data across multiple crypto exchanges or forex brokers against the charted asset. It calculates cross-venue spreads and measures their percentile ranks to highlight market anomalies, plotting a smoothed gr

Indicator v6 Screeners & dashboardsVolume
Updated 3 months ago · None stated GitHub repository of Arbitrage Detector [LuxAlgo]

Stochastic 3

by suyons
7 stars

Stochastic 3 plots three separate Stochastic oscillators stacked vertically in a single indicator pane using vertical offsets. It calculates fast, medium, and slow momentum layers (configured by default to 5-3-3, 10-6-6, and 20-12-12 settings) with customizabl

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of Stochastic 3

714AutoM8tr

by alboogycOdR
6 stars

714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8tr
5 stars

This indicator overlays higher-timeframe candles on the price chart as body and wick boxes. It requests open, high, low, close, and bar times from a chosen higher timeframe, then compares stored wick boxes to mark imbalances above or below price. Settings choo

Indicator v4 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of MTF Order Block and Imbalance

This strategy combines MACD momentum signals with support and resistance levels from pivot points and an EMA100 trend filter for long positions. It plots the 100-period EMA on the price chart and signals when price breaks above the EMA or forms bullish pivot p

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of MACD + Support / Resistance Long Strategy

MTF VİOP Strategy

by trugurpala
4 stars

This overlay strategy combines a higher-timeframe trend filter with chart-timeframe entries. The trend timeframe, default five minutes, uses a fast and slow EMA together with Supertrend. On the chart, recommended at one minute, it looks for an entry EMA cross,

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of MTF VİOP Strategy
3 stars

CSW Sequence Candles Pro calculates 5-period EMA-smoothed Open, High, Low, and Close values to render custom sequence candlesticks directly on the main price chart. It determines trend direction by comparing the smoothed close to a 20-period EMA, dynamically c

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of CSW Sequence Candles Pro

Premium Lux Algo

by IAMATOMIC001
3 stars

Premium Lux Algo is a multi-indicator overlay designed for price charts. It combines components including Supertrend, Parabolic SAR, pivot-based support and resistance levels, moving average bands, and range filters into a single tool. Traders can toggle speci

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

Market Cipher A

by TamTH-Dev
2 stars

Market Cipher A plots an exponential moving average ribbon on the price chart alongside visual trend signals. It computes eight EMAs of varying lengths to construct the ribbon, tracks daily pivot high and low levels, and calculates momentum using internal wave

Indicator v5 TrendMoving averages Repaints
Updated 5 weeks ago · None stated GitHub repository of Market Cipher A

BPR [TFO] - Modified

by alvinng214
2 stars

This indicator draws Balanced Price Range zones on the price chart. It looks for a bullish fair value gap and a bearish fair value gap that form within a set number of bars, then boxes their overlapping range when that range is at least the threshold. Boxes ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of BPR [TFO] - Modified

CM DI Plus Minus V1

by avatar-lavventura
2 stars

CM DI Plus Minus V1 calculates the positive (+DI) and negative (-DI) directional indicators to assist in identifying trend direction and strength. It plots both +DI and -DI lines in a separate pane and offers optional background highlighting based on direction

Indicator v4 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of CM DI Plus Minus V1
2 stars

Calculates Murrey Math Lines support and resistance levels anchored to the largest price impulse found within a rolling lookback window via Kadane's algorithm. It projects fractional Murrey grid lines alongside base and inverse lines with text labels directly

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Rolling Largest Impulse Murreys Lines

Historical Volatility (HV)

by mushroom-men-Trading
2 stars

This indicator calculates and plots Close-to-Close Historical Volatility in a separate chart pane. It measures statistical market volatility by computing the standard deviation of logarithmic price returns over a customizable lookback period. The script utiliz

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Historical Volatility (HV)

ETH 1HR

by wynnforthework
2 stars

This multi-indicator strategy generates trade signals by combining a T3 moving average, Parabolic SAR, ADX trend filter, RSI, and MACD. It executes long or short entries overlaying the price chart based on trend and momentum alignment. Exit logic features a mu

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETH 1HR

Candle Filters

by Web3Degenerate
2 stars

Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Candle Filters

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