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

Index Member Distribution

by TradersPost
218 stars

Calculates and plots a weighted histogram of constituent returns for major market indices (NDX, SPX, DJIA, and RUT) in a separate pane. Each histogram bin reflects the summed weights of members within that percentage return bracket. The script renders vertical

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Index Member Distribution

This indicator applies a k-nearest neighbours (kNN) classification algorithm using Aroon indicator lags and momentum as feature inputs to forecast market direction. It compares current values against historical feature sets to classify bars into buy, hold, or

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (aroon)

@@rp_Indicator

by hasnocool
106 stars

This overlay strategy plots exponential moving averages of length 21, 55, 100, and 200 on the price chart. It is declared as a strategy that sizes orders as a percentage of equity and applies a percent commission and slippage, with pyramiding disabled. The mom

Strategy v5 Moving averages
Updated 2 years ago · GPL-3.0 GitHub repository of @@rp_Indicator
99 stars

This indicator calculates a second-order Bessel lowpass filter on a chosen price source and plots the result on the price chart. It uses a recursive infinite-impulse-response formula with constant work per bar. Length sets the cutoff period linked to the minus

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bessel 2nd Order Filter

Session backgrounds

by be-thomas
65 stars

This indicator paints the price-chart background according to three fixed clock sessions. Bars from 04:00 to 09:30 use the pre-market color, 09:30 to 16:00 use the regular-session color, and 16:00 to 20:00 use the post-market color. Three color inputs change t

Indicator v5 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Session backgrounds
55 stars

The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of VibeTrader Signal System
47 stars

The Dynamic Momentum Index (DYMOI) calculates a volatility-adaptive Relative Strength Index based on price volatility ratios. It measures short-term versus long-term standard deviation to dynamically adjust the RSI lookback period. Higher volatility shortens t

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · MIT GitHub repository of Dynamic Momentum Index (DYMOI)

Bull Bear Power

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the combined Bull Bear Power oscillator in a separate pane. It computes Bull Power as the difference between the high and an exponential moving average, and Bear Power as the difference between the low and the EMA. The sum o

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Bull Bear Power

Zen OOH OOL v3

by Zen-Tim
29 stars

This indicator identifies whether the opening bar of a new trading day opens at its high (Open = High) or low (Open = Low) within a customizable tick tolerance. It marks matching sessions directly on the price chart using directional arrows, text labels, and t

Indicator v5 Sessions & timeCandlestick patterns
Updated 2 weeks ago · MIT GitHub repository of Zen OOH OOL v3

Volume Bar Colors

by benso87
24 stars

This indicator highlights price candles based on unusual volume expansion and directional volume imbalance. It estimates buying and selling volume from the close position relative to the bar range. When total volume exceeds a multiple of its moving average, th

Indicator v5 VolumeCandlestick patterns
Updated 4 years ago · MPL-2.0 GitHub repository of Volume Bar Colors

This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 29: Multi-Stage Scaling

Diverlong A002

by ruckard
13 stars

Diverlong A002 is an automated trading strategy designed for cryptocurrency pairs on intraday timeframes. It detects classic bullish and bearish divergences by comparing price changes against transitions in the Squeeze Momentum Indicator. Positions are exited

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong A002
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 days ago · MIT GitHub repository of Edge Atlas [WavesUnchained]
9 stars

Identifies support and resistance liquidity zones from pivot highs and lows and detects liquidity sweep events on the price chart. A sweep is registered when price wicks beyond a tracked zone but closes back inside it. Optional filters include an exponential m

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Liquidity Sweep Detector [DefinedEdge]

RealOpenClose

by lunarticktrading
7 stars

This indicator plots the actual open and close price values directly on the price chart when viewing Heikin Ashi charts. It retrieves standard bar prices using a security call to display dots representing the true market open and close levels. Users can toggle

Indicator v6
Updated 2 weeks ago · None stated GitHub repository of RealOpenClose

Volume Conviction Index

by eddiebelaval
7 stars

The Volume Conviction Index measures volume conviction by evaluating volume intensity and relative changes against historical medians. It computes a robust median volume and median absolute deviation to derive volume Z-scores while winsorizing extreme outliers

Indicator v6 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Volume Conviction Index

WR-SR + SMC Strategy

by alboogycOdR
6 stars

This overlay strategy looks for wick rejections near support and resistance levels and scores them with smart-money confluence. It can plot fair value gaps, order blocks, change-of-character and break-of-structure labels, higher-timeframe structure lines, and

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of WR-SR + SMC Strategy
5 stars

This diagnostic indicator reconstructs a native-style Fixed Range Volume Profile directly on the price chart using lower-timeframe bar data across a user-defined time range. It allocates bar volume across price rows, calculates the Value Area, and identifies v

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic
5 stars

This indicator plots a rolling simple moving average and a rolling median of a chosen source, plus upper and lower bands at one through five standard deviations from the mean. An optional log-space setting transforms the source with a logarithm before the calc

Indicator v4 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Rolling deviations

EMA Breakout

by jerryinyang
5 stars

This indicator calculates and plots the exponential moving average on the chart, along with Keltner Channel bands. It applies optional filters based on Keltner Channel and Money Flow to identify breakout signals. Breakouts occur when price crosses the EMA with

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of EMA Breakout

Engulfing Candle

by krosenfeld7
5 stars

This indicator marks bullish and bearish engulfing candles on the price chart. A bullish signal requires the current open to be at or below the prior close, below the prior open, and the current close above the prior open. A bearish signal uses the opposite op

Indicator v4 Candlestick patterns
Updated 3 years ago · Apache-2.0 GitHub repository of Engulfing Candle

Ichimoku Cloud STEPFUN

by eltonaguiar
4 stars

This Ichimoku Cloud strategy plots the cloud and price action on the chart for trend analysis. It generates long signals when price is above the cloud with a Tenkan-Kijun bullish crossover and bullish cloud, optionally confirmed by Chikou span. Short signals f

Strategy v5 TrendMoving averages
Updated yesterday · None stated GitHub repository of Ichimoku Cloud STEPFUN
4 stars

This trend-following strategy generates long and short entries when a fast EMA crosses a slow EMA, overlaying directly on the price chart. To reduce false signals, it applies four configurable fakeout filters: volume moving average threshold, consecutive bar c

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Fakeout-Confirmed Strategy
4 stars

This script calculates real-time technical indicators and displays them in a customizable on-chart table dashboard. It measures the Relative Strength Index (RSI), Average True Range (ATR), Simple Moving Average (SMA), volume ratios, daily price changes, trend

Indicator v5 Screeners & dashboards
Updated 11 months ago · Custom licence GitHub repository of Table Dashboard Snippet [Lab]

REG-TREND

by gocaman
3 stars

The REG-TREND indicator plots linear regression trend lines calculated from the selected source over a user-defined length. It determines channel boundaries and deviation to detect trend breaks, marking them with dotted lines in the chosen color. Fibonacci ret

Indicator v5 TrendSupport & resistance
Updated yesterday · None stated GitHub repository of REG-TREND

jash_GGMA_Granville

by jash-git
3 stars

This overlay indicator plots five exponential moving averages with Fibonacci lengths of 3, 13, 34, 55 and 144 on the price chart. Fast lines are red and orange, slower lines blue and purple, and the 144-period line is a black filter. It marks reset events when

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of jash_GGMA_Granville

CPL

by g-moe
3 stars

Plots an external symbol's closing price as a horizontal dotted line extended to the right of the latest bar. By default, it requests the price of the ETHUSDTPERP contract using a configurable exchange prefix. It can also display a label showing the chart's ro

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of CPL

ALGOX

by IAMATOMIC001
3 stars

ALGOX is a multi-indicator trend-following strategy plotted directly on the main chart. It generates trade entries based on configurable setups, moving average trends, and higher-timeframe inputs. Users can apply sideways market filters using customizable RSI

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of ALGOX

TWAP VWAP EMA MACD

by jawauntb
3 stars

The TWAP VWAP EMA MACD indicator calculates two exponential moving averages: one based on the time-weighted average price (TWAP) and another on the volume-weighted average price (VWAP). It subtracts the VWAP EMA from the TWAP EMA to form the MACD line and appl

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of TWAP VWAP EMA MACD

Volume Delta Table

by piecioshka
2 stars

Volume Delta Table is an indicator that displays a customizable table with volume, buy, sell, delta, and cumulative volume delta (CVD) values. It uses request.footprint data to split volume by aggressor side. Options allow showing session start, bar count, ses

Indicator v6 Volume
Updated 11 days ago · MIT GitHub repository of Volume Delta Table

Oscillator

by TamTH-Dev
2 stars

Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), custom VWAP tracking, and volume breakout analysis into a single separate-pane indicator. It calculates oscillator wave values along with moving average smoothing to highlight overbought

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of Oscillator

Mirpapa Lib Struct

by alvinng214
2 stars

This Pine Script v6 library provides custom exported data types and initialization functions for tracking Smart Money Concepts and ICT market structure shifts. It defines structures to manage states for Break of Structure, Change of Character, Market Structure

Library v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Struct

Alpy Spot

by avatar-lavventura
2 stars

Alpy Spot is an oscillator and trend strategy that calculates a WaveTrend indicator alongside a multi-timeframe 60-minute Volume Weighted Moving Average (VWMA) with percentage band offsets. It plots WaveTrend lines, overbought and oversold threshold levels, an

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Spot

Log-Normal Price Forecast

by regalouisei
2 stars

Log-Normal Price Forecast calculates historical log returns and volatility to project theoretical future price movements on the main chart overlay. Using a normal distribution inverse function, it computes statistical drift and standard deviation to plot dynam

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Log-Normal Price Forecast
2 stars

This strategy detects adaptive market regimes by combining ATR volatility with fast and slow EMA moving averages to determine trend direction. It applies multi-timeframe confirmation using RSI and MACD on a higher timeframe. Signals appear as buy and sell arro

Strategy v6 Volatility & bandsMoving averages Repaints

超级趋势RSI

by wynnforthework
2 stars

This strategy applies a Supertrend calculation directly to Relative Strength Index values rather than raw price, plotting the result in a separate pane. Traders can enable optional RSI smoothing via a Hull Moving Average and overlay a secondary moving average

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 超级趋势RSI

RSI Superstack

by Web3Degenerate
2 stars

RSI Superstack plots the relative strength index from three user-selected timeframes in a separate pane. Each series uses the same RSI length and turns purple when it reaches the overbought or oversold threshold. A red background marks when all three readings

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of RSI Superstack

ZigZag reSampled

by WISEPLAT
2 stars

ZigZag reSampled draws one purple swing line on the price chart. It tracks the highest high and lowest low over a depth window, then flips between an upward and a downward leg when a bar a set number of backsteps ago makes a new extreme. Depth controls that lo

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag reSampled

Trendsignal Strategy

by DaniilOkrug
2 stars

The Trendsignal Strategy identifies trend flips using dynamic channel boundaries derived from high and low price ranges over a set lookback period. It calculates upper and lower thresholds based on a customizable risk setting. When price closes above the upper

Strategy v4 TrendBreakout
Updated 4 years ago · MIT GitHub repository of Trendsignal Strategy
1 stars

This multi-model strategy combines kinematic price modeling, Bayesian inference forecasts, volume profile consolidation zones, and automated pattern recognition directly on the price chart. It evaluates market trajectory using weighted kinematic regression, un

Strategy v5 AI / machine learningSupport & resistance
Updated yesterday · None stated GitHub repository of JAT+BSM Pro v13 Extended

Risk Managed Strategy

by jayadevrana
1 stars

This strategy executes long trades when the closing price crosses above an Exponential Moving Average (EMA) and displays the EMA trend line directly on the price chart. Position sizing is calculated dynamically to risk a fixed percentage of current equity base

Strategy v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of Risk Managed Strategy
1 stars

This Pine Script library provides reusable helper functions for composing and formatting Smart Money Concepts (SMC) debug text strings and observability data. It builds structured labels and diagnostic lines containing setup sources, zone quality metrics, touc

Library v6 SMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Observability Private

Elder Ray Index

by pineforge-4pass
1 stars

Calculates Elder Ray Bull Power and Bear Power by measuring differences between price extremes and an exponential moving average. It takes long entries during an uptrend when Bear Power is negative but rising, and short entries during a downtrend when Bull Pow

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Elder Ray Index

P_err_indent_2spaces

by GammaExpansion
1 stars

A minimal Pine Script v6 test fixture script used for validating parser error handling and indentation rules. It evaluates if the current bar close is higher than the open using a two-space indented code block, then plots the closing price in a separate pane.

Indicator v6
Updated 6 days ago · MIT GitHub repository of P_err_indent_2spaces
1 stars

A strategy that builds a structural delta volume profile with point of control, value area and high-delta liquidity zones, plus a rolling P0 equilibrium and an acceptance and rejection scoring dashboard. Entries come from the flip of an adaptive ATR band that

Strategy v6 VolumeSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta Profile Strategy v1.0.4

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