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

This indicator marks ICT liquidity voids on the price chart. It requests open, high, low, close, time, and ATR from a chosen timeframe with lookahead enabled, then draws bullish and bearish voids as boxes and lines. The source can be the high and low, an OTE l

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Multi-timeframe
330 stars

This strategy plots a multi-timeframe exponential moving average on the price chart while evaluating momentum using the Relative Strength Index. It enters long positions when price exceeds the moving average by at least one percent and RSI crosses above the ov

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of RSI + 1200 Strategy [Alose]

Vol Cone

by namuan
318 stars

This overlay indicator estimates annualized realized volatility from an exponential moving average of squared log returns. It plots lagged upper and lower price bounds and, on the last bar, draws a forward cone of projected prices using an interest-rate drift

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Vol Cone

9923-Tracker

by Allen1212
303 stars

This indicator visualizes historical ARK Invest transactions by plotting buy and sell labels directly on the price chart. It marks specific trade dates using timestamp coordinates, displaying trade direction and fund count beneath relevant bars. The ETF settin

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

ColorExtension

by ricardosantos79
261 stars

This utility library provides color conversion and manipulation functions for Pine Script v5 scripts. It calculates RGB color values from Hue, Saturation, Lightness, and transparency inputs, validating ranges and returning native color objects. It also include

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

Donald SPX - Options Trading is an indicator designed to assist SPX index option traders by tracking session benchmarks and multi-timeframe moving average data. It calculates a 200-period weighted moving average (WMA) and requests multi-timeframe bar data from

Indicator v5 Moving averagesScreeners & dashboards Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

ADX Histogram

by harryguiacorn
219 stars

This indicator calculates and displays the Average Directional Index (ADX) as a column histogram in a separate pane. It evaluates market trend strength by calculating directional movement metrics based on specified smoothing and DI length inputs. When the ADX

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Histogram
218 stars

This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago · None stated GitHub repository of Breakout Strategy Template

Acceleration Bands

by capissimo
114 stars

Acceleration Bands is an overlay indicator that plots a volatility envelope around a central simple moving average. It calculates upper and lower boundary bands scaled by the high-to-low bar range relative to the midpoint price, smoothed by an SMA over a user-

Indicator v4 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Acceleration Bands

5 Minute EMA Strategy

by hasnocool
106 stars

5 Minute EMA Strategy is a trend-following system designed for short timeframes that executes trades around moving average crossovers. It plots fast and slow moving averages (supporting EMA, SMA, RMA, or WMA) directly on the price chart. Users can enable an op

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute EMA Strategy

Aroon Oscillator

by mihakralj
99 stars

Aroon Oscillator calculates the difference between Aroon Up and Aroon Down across a user-defined lookback period. It plots the resulting oscillator line between -100 and +100 in a separate pane, alongside horizontal reference levels at 0 and plus or minus 50,

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Aroon Oscillator
92 stars

This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof

Indicator v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Rainbow MA Ribbon 10-50

Color Picker Showcase

by be-thomas
65 stars

Color Picker Showcase is a basic demonstration script from the TradingView Pine Script documentation illustrating dynamic color assignment for plots. It plots the closing price in a separate pane, applying conditional logic to change the line color based on ca

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of Color Picker Showcase

MS+MACD Enhanced Tests

by iamrichardD
57 stars

This script implements an enhanced testing framework for the Market Structure MACD 4H strategy. It defines test cases with pass rates and includes mock functions simulating advanced market structure detection, MACD sensitivity analysis across trending and chop

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of MS+MACD Enhanced Tests

Power Of Index with Trendline Pivots, EMA, and RSI overlays Smart Money Concepts market structure analysis directly on the price chart. It identifies internal and swing market structure shifts, such as Break of Structure and Change of Character patterns. The s

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
55 stars

The script calculates and plots Parabolic SAR with default parameters on the price chart. It also computes Stochastic RSI using a 14-period RSI and 14-period Stoch with 3-period smoothing. Buy signals occur when Stochastic RSI crosses above its signal line fro

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Parabolic SAR + Stoch RSI

This Pine Script indicator identifies liquidity sweeps and confirms signals using a close-back candle pattern directly on the price chart. It tracks recent swing highs and lows over a customizable lookback period. A bullish signal forms when a prior bar sweeps

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Liquidity Sweep + Close-Back Confirmation

Center of Gravity (CG)

by mihakralj
47 stars

This indicator calculates John Ehlers' Center of Gravity oscillator, which measures the balance point of price over a lookback window to identify cycle turning points with low lag. It computes a weighted price distribution ratio normalized around a zero center

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Center of Gravity (CG)
46 stars

The OHLC StatMap indicator calculates and plots statistical price levels based on historical open, high, low, and close data across up to four higher timeframes. It overlays statistical anchor lines, period open prices, manipulation levels, and distribution qu

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of OHLC StatMap (Multi-Timeframe)

Stochastic

by Zettt
43 stars

This indicator plots a smoothed stochastic oscillator in a separate pane. It calculates percent K from the high, low, and close, smooths that value, and derives percent D as a moving average of percent K. Lines draw thicker when a value is above the upper thre

Indicator v4 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Stochastic

V1 Binancash - Futures Strategy 1M Candles is an intraday trading strategy designed for 1-minute cryptocurrency futures charts. It calculates dynamic support and resistance levels using pivot highs and lows, combined with a custom smoothed trend filter and a 3

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of V1 Binancash - Futures Strategy 1M Candles
42 stars

This indicator draws a doubled numbered Square of Nine from a user-selected high or low. It fills cells by a chosen price step across several rotations and can show bar counts from that pivot. Pivot highs and lows that form after the anchor are marked on the c

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Doubled Numbered So9 Progression | Regression

30 min Pivot

by ChartsLector
41 stars

30 min Pivot is an overlay indicator that plots an exponential moving average (EMA) calculated from a specified timeframe (default 30 minutes) and flags specific multi-bar candle setups. It checks the relative distance between price and the higher-timeframe EM

Indicator v5 Moving averagesCandlestick patterns
Updated 3 days ago · None stated GitHub repository of 30 min Pivot

Average Day Range

by TWODS-CAPITAL
37 stars

The Average Day Range indicator calculates market volatility by taking the difference between the simple moving averages of high and low prices over a specified lookback period. Plotted in a separate pane, it gives traders a measure of average price movement t

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Average Day Range
29 stars

This indicator detects swing highs and lows to plot bull and bear trendlines directly on the main price chart. It projects valid trendlines forward while applying rules for maximum slope, bar span, and average bar range tolerance to filter out invalid or broke

Indicator v6 TrendSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Swing Trendlines

Harness Trivial SMA

by heyphat
26 stars

Harness Trivial SMA is a basic test indicator that calculates and plots a Simple Moving Average (SMA) of the closing price over a user-defined length. Plotted in a separate pane below the chart, it provides a straightforward visual representation of average pr

Indicator v6 Moving averages
Updated 2 months ago · AGPL-3.0 GitHub repository of Harness Trivial SMA

VWMA Band

by tistaharahap
25 stars

The VWMA Band indicator calculates volume-weighted moving averages based on high, low, median (HL2), and close prices over a specified period. It plots an upper band, lower band, median line, and close VWMA directly on the main price chart with a translucent c

Indicator v4 Moving averagesVolatility & bands
Updated 6 years ago · None stated GitHub repository of VWMA Band

HG Strat

by benso87
24 stars

This strategy implements an ADX trend-following system with moving average pullbacks. It identifies strong market momentum when the Average Directional Index exceeds a chosen threshold, then monitors price retests of an exponential or simple moving average. Lo

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of HG Strat

This indicator modifies Perry Kaufman's Adaptive Moving Average by integrating John Ehlers' dominant cycle detection. It filters the selected price source with a high-pass filter and a super smoother, then evaluates Pearson correlation across multiple lags to

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Perry J. Kaufman - Adaptive Moving Average - Modified

RSI/BB 1minute Study

by SammyEnigma
18 stars

This 1-minute strategy combines the Relative Strength Index (RSI), Bollinger Bands, and Bollinger Band Width to trigger trades. It plots the RSI curve and custom buy or sell threshold lines in a separate pane. Long entries trigger when price and RSI drop below

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB 1minute Study
16 stars

This strategy implements Turtle System 1 fast trend following directly on the price chart. It opens long or short positions upon 20-bar Donchian channel breakouts and exits on opposing 10-bar Donchian extremes. Position sizing is calculated dynamically from AT

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Fast Breakout (S1)

Trend Compass 4H

by chris-c-thomas
14 stars

Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 4H

Divergenced B004

by ruckard
13 stars

Divergenced B004 is a Pine Script strategy that plots on the price chart and looks for divergences in the Squeeze Momentum Indicator. It shorts when a green-section squeeze value falls while price rises, and longs when a red-section squeeze value rises while p

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced B004

Renko Acceleration

by f-cksociety
11 stars

Calculates the time elapsed between consecutive bars to measure market speed and volatility, designed primarily for Renko chart blocks where bar duration varies. In Momentum mode, it contrasts the current duration against a 100-period moving average baseline,

Indicator v4 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Renko Acceleration

WE-Angels

by davro
10 stars

WE-Angels is an overlay indicator that plots optional exponential and simple moving averages, including 111-day and yearly angel averages, on the price chart. It can show Pi Cycle and inverse Pi Cycle crosses with labels, a dollar-cost averaging view, long or

Indicator v4 Moving averagesSupport & resistance
Updated 5 years ago · None stated GitHub repository of WE-Angels

TPCharts Daily Opens

by TPCharts
10 stars

This indicator draws horizontal open-price levels on the price chart for the current day. It plots a New York midnight open, the daily standard open, a Tuesday 04:00 entry, and a Monday 04:00 OSOK entry, each as a time-anchored line with an optional price labe

Indicator v4 Support & resistanceSessions & time Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Daily Opens

The Candle Story Engine evaluates multi-candle price action dynamics, analyzing pressure, sequence persistence, deceleration, and structural exhaustion across a customizable lookback window. Incorporating optional trend context via exponential moving averages,

Indicator v6 Candlestick patternsBreakout
Updated 2 days ago · MIT GitHub repository of Candle Story Engine [WavesUnchained]
9 stars

This separate-pane indicator calculates multi-period volatility regimes by analyzing fast, medium, and slow Average True Range (ATR) metrics alongside volume integration, gap adjustments, and session weighting. It visualizes volatility states using a heat map

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 13 days ago · Custom licence GitHub repository of QVS Pro - Raw Volatility Edition
9 stars

This indicator estimates net buying pressure from footprint buy and sell volume and plots it in a separate pane. It subtracts sell volume from buy volume, then accumulates that difference as net volume or as dollar volume using a user-selected price. A third m

Indicator v6 Volume
Updated 4 months ago · MIT GitHub repository of Net Buy Volume [theUltimator5]

Parabolic SAR - Eterna

by EternaHybridExchange
9 stars

Calculates the Parabolic Stop and Reverse (SAR) indicator paired with an optional Exponential Moving Average (EMA) trend filter. A long position is triggered when price crosses above the SAR while remaining above the trend EMA. A short position is entered when

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Parabolic SAR - Eterna
9 stars

This indicator draws a currency-strength view in a separate pane. It requests the current close and the previous daily close for major forex pairs plus gold crosses, using a broker prefix of OANDA, FX, or FOREXCOM. The pair-set input switches between an overal

Indicator v4 Screeners & dashboardsOscillators & momentum
Updated 5 years ago · None stated GitHub repository of |AG| 4th Dimension Currency Strength

CM MacD Ult MTF

by PipC
8 stars

This indicator plots a multi-timeframe Moving Average Convergence Divergence (MACD) oscillator with a signal line and customizable histogram in a separate pane. It features a four-color histogram that reflects whether momentum is accelerating or decelerating a

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of CM MacD Ult MTF

Signals MA

by lunarticktrading
7 stars

The Signals MA indicator calculates a moving average of the close price using either SMA or EMA based on a user-defined length. It plots this average on the price chart. Breakout signals occur when the close crosses above the moving average from below, and bre

Indicator v6 Moving averagesBreakout
Updated 2 weeks ago · None stated GitHub repository of Signals MA
7 stars

Multi-Ticker Anchored Candles overlays up to three user-selected symbols on the price chart as candles anchored to a chosen period, which defaults to the daily timeframe. Each symbol has its own color and an on or off toggle. Optional drawings mark session bre

Indicator v6 Candlestick patternsSessions & time
Updated 3 months ago · None stated GitHub repository of Multi-Ticker Anchored Candles
7 stars

This strategy generates trading signals based on a triple confluence of Exponential Moving Averages (EMA), the Relative Strength Index (RSI), and MACD histogram momentum. Long entries require a fast EMA above a slow EMA, price above the fast EMA, RSI between 5

Strategy v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Triple Confluence (EMA+RSI+MACD)

RSI Strategy

by suyons
7 stars

Calculates relative strength index values across up to four configurable timeframes to compare short-term and long-term momentum. Generates long and short entry signals when lower-timeframe RSI crosses key thresholds, conditioned on higher-timeframe RSI levels

Strategy v5 Oscillators & momentumTrend Repaints
Updated 4 months ago · None stated GitHub repository of RSI Strategy

This indicator plots On Balance Volume in a separate pane and can overlay a smoothing average of that series. By default it draws a 20-period SMA of OBV with Bollinger Bands set two standard deviations away, plus a fixed 10-period EMA of OBV. A fill between th

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · None stated GitHub repository of On Balance Volume & Bolliner Bands

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