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

An indicator in a separate pane that measures how far the average of open and close has moved from the day's opening price. The difference is plotted as an area, green above the open and red below, and the day open is drawn on the price chart. Percentile lines

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of DayOpen Delta Volatility
1 stars

An indicator that measures historical volatility from the standard deviation of log returns, annualised, then compares it with its own EMA. The result is normalised by a Bollinger-style deviation multiplier and plotted in a separate pane against dashed hot-mar

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Historical Volatility

Vortex Indicator

by amico1234
1 stars

The Vortex Indicator calculates positive (VI+) and negative (VI-) directional movement lines to help identify trend direction and momentum. It measures the sum of upward and downward price movements relative to the true range over a specified lookback period.

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Vortex Indicator

A Pine v4 overlay that plots three simple moving averages of 50, 100 and 200 periods on a chosen source. The 50 and 100 lines turn green when rising and red when falling, while the 200 line changes colour depending on whether the close is above it. An optional

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of QS Institutional Moving Averages

MTM Metric EMA

by JohnsonHsiao
1 stars

This indicator plots momentum bias metrics using three exponential moving averages (EMAs) of periods 20, 60, and 180. It calculates short_bias as the difference between the fast and mid EMAs, and mid_bias as the difference between the mid and long EMAs. These

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric EMA

TMA RSI Divergence

by rajatjpatel
1 stars

A separate-pane RSI divergence tool written in Pine v4. It plots a 14-period RSI in yellow with a 50-period smoothed average and a 50 midline, then detects pivot lows and highs of the RSI within a lookback range of 5 to 60 bars. Labels mark regular bullish, hi

Indicator v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of TMA RSI Divergence
1 stars

A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of LINKBTC EMA Cross Strategy

This indicator calculates the distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist

Indicator v4 Volatility & bands
Updated 11 days ago · GPL-3.0 GitHub repository of Close-to-Close % Change Distribution

This indicator scans a pasted list of symbols and shows matching long and short setups in a table in a separate pane. It uses a Supertrend crossover, then applies an ATR or fixed-point volatility range so quiet, sideways conditions can be skipped. Optional fil

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper Scanner
330 stars

Improvising [Alorse] is a price-chart strategy that looks for a one-bar candle reversal filtered by a 10-period EMA, a 14-period RSI, and a rising or falling MACD. Longs require a bearish bar followed by a bullish close above the EMA, RSI below 65, and a risin

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of Improvising [Alorse]

ALLT Tracker

by Allen1212
303 stars

ALLT Tracker is an overlay indicator that plots historical buying and selling transactions from ARK Invest directly onto the price chart. It uses color-coded labels placed relative to price bars to display trade actions and the count of participating ETFs on s

Indicator v4
Updated 2 years ago · None stated GitHub repository of ALLT Tracker
261 stars

This script provides a collection of utility functions to handle complex numbers and compute a Discrete Fourier Transform (DFT) in Pine Script. It implements array-based mathematical structures to perform operations on real and imaginary components, facilitati

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function Discrete Fourier Transform
257 stars

This is a futures trading strategy for instruments like ES. It plots an Ichimoku Cloud using Tenkan, Kijun, Senkou A, Senkou B and Chikou lines along with pivot highs and lows to mark resistance and support levels directly on the price chart. Inputs let users

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of Futures No Repain ES

Liquidity Zones - ICT

by TradersPost
218 stars

The Liquidity Zones - ICT indicator identifies and highlights potential buyside and sellside liquidity areas directly on the price chart. It tracks recurring price levels within a specified lookback period, grouping price touches that fall within a configurabl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Liquidity Zones - ICT
114 stars

This indicator applies a logistic regression binary classification model trained via gradient descent directly on chart data. On every bar, the model updates weights over a configurable number of training iterations and passes them through a sigmoid function t

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: Logistic Regression

AC- MY SCRIPT1

by hasnocool
106 stars

This strategy plots an Optimized Trend Tracker and a selectable moving-average support line on the price chart. It builds the average as SMA, EMA, WMA, TMA, VAR, WWMA, ZLEMA, or TSF, then offsets long and short stops by a percent of that average. Optional mark

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of AC- MY SCRIPT1

Beta Function (BETA)

by mihakralj
99 stars

This indicator calculates a rolling financial beta that compares percentage returns of a selected source with percentage returns of a second symbol, defaulting to SPY. It keeps a circular buffer of returns over a user-set period and plots the result as a yello

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Beta Function (BETA)

Smoothed candles

by be-thomas
65 stars

This indicator draws smoothed candlesticks on the price chart. It applies a simple moving average of a user-set length, defaulting to nine, separately to open, high, low, and close, then plots those four values with plotcandle. Wick color is green when the raw

Indicator v5 Moving averagesCandlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of Smoothed candles
55 stars

Calculates dynamic trendlines and horizontal support and resistance levels using pivot highs and pivot lows with a fixed length of 10 bars. When a new pivot high or low is confirmed, the script updates extended trendlines connecting the two most recent pivots,

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Dynamic Line Analysis
47 stars

This indicator calculates John Ehlers' Autocorrelation Periodogram to estimate the dominant cycle length of a market. It pre-filters price data using high-pass and smoothing filters, then computes Pearson correlation coefficients across a spectrum of lag perio

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Autocorrelation Periodogram

Session Stat Map

by TamaraKGreen
46 stars

This indicator maps session ranges, opening prices, and derived projections directly onto the price chart. It calculates high and low boundaries during a defined reference session, such as pre-market hours, and overlays session open lines, range boxes, standar

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Stat Map

Chaikin Oscillator

by TWODS-CAPITAL
37 stars

This script is a momentum indicator that calculates the Chaikin Oscillator. It measures the difference between the short and long period exponential moving averages of the Accumulation Distribution Oscillator. The indicator plots the oscillator values in a sep

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Chaikin Oscillator

This indicator implements swing chart construction rules based on Perry Kaufman's Trading Systems and Methods. It runs up to three swing models simultaneously across two, three, and four-bar reversal thresholds, plotting swing lines directly on the price chart

Indicator v5 Support & resistanceTrend
Updated 2 weeks ago · MIT GitHub repository of Zen TSaM Swing Chart Multi-Mode 2/3/4
16 stars

This strategy enters long or short when a fast exponential moving average crosses a slow one, then sizes each unit from a percentage of equity and an ATR-based initial stop. It can add positions as price moves by a multiple of ATR, up to a set unit limit, and

Strategy v6 TrendMoving averages
Updated 12 months ago · None stated GitHub repository of Seykota Alt 2: EMA Crossover

Diverlong C002

by ruckard
13 stars

Diverlong C002 is a trading strategy designed to identify entries using Squeeze Momentum Indicator divergences and execute exits based on Curie Closing Lines. Long and short signals trigger when price movements contradict Squeeze Momentum values across indicat

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

Elliott Wave Radar identifies and validates Elliott Wave impulse (1-5) and corrective (A-B-C) patterns using a dual-degree ZigZag pivot engine with an ATR noise filter. It checks structural rules and Fibonacci guidelines, scoring counts and projecting price ta

Indicator v6 TrendSupport & resistance
Updated 2 days ago · MIT GitHub repository of Elliott Wave Radar [WavesUnchained]
9 stars

VSA Pro: Trend and Rejection is an overlay strategy combining SuperTrend trend filtering with Volume Spread Analysis principles. It calculates SuperTrend direction to enter long positions when a new bullish trend starts and exits all positions when the trend t

Strategy v5 TrendVolume
Updated 4 months ago · MIT GitHub repository of VSA Pro: Trend and Rejection

Multi Timeframe MA

by suyons
7 stars

Calculates and overlays up to ten moving averages from custom timeframes directly onto the main price chart. Each moving average line allows individual configuration of its timeframe, period length, and average type, supporting Simple Moving Average (SMA), Exp

Indicator v5 Moving averagesTrend Repaints
Updated 4 months ago · None stated GitHub repository of Multi Timeframe MA

WR-SR + SMC Strategy v4.0

by alboogycOdR
6 stars

The WR-SR + SMC Strategy v4.0 combines wick rejection for support and resistance level detection with Smart Money Concepts including CHoCH and BOS structure changes, fair value gap zones and order blocks. It signals trading entries and exits on the price chart

Strategy v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of WR-SR + SMC Strategy v4.0

VP Source Bundle Exporter

by 345-strategies
5 stars

This overlay indicator is a headless export aid for a frozen Volume Profile source bundle. It performs no profile calculation and draws no chart objects. It checks that the chart is a standard ES or MES futures contract matching a typed ticker and a 0.25 minti

Indicator v6
Updated 3 days ago · MPL-2.0 GitHub repository of VP Source Bundle Exporter

Rolling summary

by gorx1
5 stars

Rolling summary calculates a rolling statistical box over a chosen source and plots it on the price chart. It shows the simple moving average, median, first and third quartiles, interquartile range whiskers, and four extra percentiles. A log-space option trans

Indicator v4 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Rolling summary

Kenny's Strategy

by jerryinyang
5 stars

Kenny's Strategy combines multiple exponential moving averages to identify trend changes and generate entry signals. It calculates short, medium, and long EMAs from a user-selected source and checks for alignment within specific zones. A long-term EMA filter r

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Kenny's Strategy

This strategy identifies bearish engulfing candlestick formations to execute short positions. A short entry triggers when the current bar opens at or above the previous bar's open and close, then closes below the previous open. Position exits are managed eithe

Strategy v4 Candlestick patterns
Updated 3 years ago · Apache-2.0 GitHub repository of Engulfing Candle Short Strategy (Not Good)

RSI2 Optimized STEPFUN

by eltonaguiar
4 stars

This strategy draws on the price chart and trades a two-period RSI. It enters long when RSI crosses above the oversold level and short when RSI crosses below the overbought level. An optional SMA trend filter, volume confirmation, and cooldown can block entrie

Strategy v5 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of RSI2 Optimized STEPFUN

This strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of GBP/USD Market Structure [trugurpala]

Volume Profile Lite [Lab]

by mitchell-917
4 stars

This indicator calculates an approximate volume profile over a specified lookback period or current intraday session. It divides the high-low range into a configured number of price bins, assigns each bar's volume to the corresponding bin based on its closing

Indicator v5 VolumeSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Volume Profile Lite [Lab]

Jash_test

by jash-git
3 stars

Jash_test is a price-chart overlay that plots five exponential moving averages using Fibonacci lengths: 3 and 13 as the fast pair, 34 and 55 as the slow pair, and 144 as a longer filter. It colors them red, orange, blue, purple, and black. On the current bar a

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of Jash_test
3 stars

CSW Breakout Signals plots breakout buy and sell labels on the price chart when price breaks support or resistance after a trend change. Each signal can show a numbered confirmation score built from a moving-average cross, momentum, opening-range alignment, re

Indicator v5 BreakoutTrend
Updated 5 months ago · None stated GitHub repository of CSW Breakout Signals

Version Kappa: Composite Momo + Volume + Price Strategy evaluates trend, momentum, and volume dynamics to generate trading signals on the price chart. It calculates a composite RSI wrapped in Starc Bands, tracking momentum across both current and higher timefr

Strategy v5 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Kappa: Composite Momo + Volume + Price Strategy

SSL Oscillator

by TamTH-Dev
2 stars

The SSL Oscillator is a separate pane indicator that combines momentum channel calculations with Quantitative Qualitative Estimation (QQE) logic. It evaluates moving average differences, standard deviation channels, and smoothed RSI values across multiple conf

Indicator v5 Oscillators & momentumMoving averages
Updated 5 weeks ago · None stated GitHub repository of SSL Oscillator

MirPapa Library ICT

by alvinng214
2 stars

MirPapa Library ICT is a Pine Script utility library designed to support Inner Circle Trader (ICT) analysis across trading scripts. It exports custom data structures, including BoxData and HTFCache, to manage higher-timeframe historical price data and track zo

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

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots a Williams Vix Fix histogram in a separate pane and compares price with a volume-weighted moving average of HLC3. It buys when the histogram turns from lime to gray, price is below the VWMA by the long offset, and the close ticks down. It s

Strategy v4 Volatility & bandsMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

Market Cap Landscape 3D

by regalouisei
2 stars

This indicator projects a three-dimensional surface map and wireframe landscape representing cryptocurrency market capitalization directly onto the price chart. It renders a customizable grid with gradient surface strips, wireframe lines, markers, peak volume

Indicator v6 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Market Cap Landscape 3D

Ease of Movement (EOM)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Ease of Movement (EOM) oscillator in a separate chart pane. It evaluates the relationship between price midpoint changes and trading volume relative to the bar's high-low range to quantify how easily price moves. The raw

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ease of Movement (EOM)

0.35 Hedging Strategy

by wynnforthework
2 stars

This strategy executes a recovery zone hedging system directly on the price chart. It initiates an initial position at periodic bar intervals when flat, setting a target take profit and an adverse recovery boundary. If the market moves against the position int

Strategy v5 Mean reversion
Updated 1 year ago · None stated GitHub repository of 0.35 Hedging Strategy

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