Synced with GitHub · updated today

Free TradingView Pine Scripts

8,340 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
8,340 scripts
13 stars

BitLa Microtendencias A002 is a TradingView strategy that enters long when a 10-period EMA crosses above a 120-period EMA and enters short on the opposite cross. It draws on the price chart and can limit trading to a start and stop date. Risk controls include

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BitLa Microtendencias A002

Extrema

by CMYKSCRIPTS
13 stars

Extrema is an overlay strategy that evaluates lowest low price points across exponentially scaled lookback periods. It calculates period lengths using exponential math controlled by base, factor, and crop settings, then tracks falling price extremes across mul

Strategy v4 Support & resistanceBreakout
Updated 4 years ago · None stated GitHub repository of Extrema

Chartex2

by KuSi833
13 stars

This indicator overlays static chart annotations generated from fixed timestamps and prices. It draws a red fill between two hidden price plots during a limited time window, plus vertical and horizontal arrow lines and text labels that describe a measured pric

Indicator v4 Support & resistance
Updated 5 years ago · None stated GitHub repository of Chartex2

Not MCB (crexalbo)

by ReidLitkauo
13 stars

Not MCB draws a zero line and dotted overbought and oversold levels in a separate pane. It builds an RSI-MFI series from each candle’s close-to-open change divided by its high-to-low range, then smooths that value with a chosen moving average and a scale setti

Indicator v4 Oscillators & momentumVolume
Updated 5 years ago · Unlicense GitHub repository of Not MCB (crexalbo)

Fractal Reclaim Strength

by selimgrsoy0-commits
12 stars

The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fractal Reclaim Strength
12 stars

This strategy is titled for Bitcoin on the four-hour chart and is set to draw on the price chart. It detects three-candle fair value gaps and inverted gaps, and it defines a check for price near a gap midpoint within a percentage tolerance. An optional filter

Strategy v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Automated Strategy

ICT HTF Candles (fadi)

by dbruce1990
12 stars

ICT HTF Candles displays higher timeframe candle structures directly on the price chart using customized boxes and lines. It tracks up to six user-defined higher timeframes, plotting historical body, wick, and imbalance zones alongside optional price level tra

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · None stated GitHub repository of ICT HTF Candles (fadi)
12 stars

This indicator calculates 12-period and 26-period Exponential Moving Averages (EMAs) and plots them directly on the main price chart. It identifies bullish crossovers and bearish crossunders between the two moving averages, displaying visual buy and sell marke

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Crossover with Area Fill

RS: Footprint

by agejevasv
12 stars

RS: Footprint is an overlay indicator that draws a footprint-style view of volume inside each candle on the price chart. It accumulates up and down volume across price levels spaced by the ticks-per-step setting and can display either bid versus ask or delta.

Indicator v5 Volume Repaints
Updated 2 years ago · None stated GitHub repository of RS: Footprint

Buy and Sell

by azamiftikhar1000
12 stars

This indicator calculates a smoothed average range filter and combines it with a Relative Strength Index framed by Bollinger Bands. It projects range levels, breakout boundaries, and buy or sell signals directly onto the price chart. A custom 20-step color gra

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Buy and Sell

AwesomeADX

by koradiyakaushal
12 stars

AwesomeADX is a Pine Script v4 strategy that combines an Awesome Oscillator, ADX directional movement, and Bollinger percent B with an optional four-length moving-average trend filter. It sizes each position as a percentage of equity and can limit trades to a

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of AwesomeADX

Pattern Trade Levels

by zachisit
11 stars

Pattern Trade Levels is a price-chart overlay that plots levels typed in by the user for a chart pattern. It draws the breakout boundary, a confirmation level and a negation stop from a percentage buffer, a measured-move target using either a log formula or an

Indicator v5 Support & resistanceBreakout
Updated 4 days ago · MIT GitHub repository of Pattern Trade Levels
11 stars

This indicator identifies and visualizes key support and resistance zones directly on the price chart using historical 1-hour bar evidence. It calculates zone strength by weighting price rejections, support-resistance flips, relative volume spikes, price gaps,

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · MIT GitHub repository of 1-Hour Key Level Heatmap
11 stars

This overlay indicator marks volume-driven buying and selling pressure on the price chart. It compares volume with a simple moving average scaled by a volatility-based multiplier, and it uses a trend simple moving average plus RSI thresholds to color bars. Swi

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Apache-2.0 GitHub repository of Institutional Insight Indicator
11 stars

This overlay indicator identifies Smart Money Concepts (SMC) and Inner Circle Trader (ICT) market structure elements directly on the price chart. It detects higher highs, lower lows, Break of Structure (BOS), and Change of Character (CHoCH) labels alongside st

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Pro Trading V6 - ICT/SMC + MACRO

This indicator implements a full Chanlun pipeline on the price chart. It merges contained bars, marks top and bottom fractals, and connects alternating fractals into strokes. Overlapping strokes form pivot boxes, and MACD area ratios flag trend or consolidatio

Indicator v6 Support & resistanceDivergence
Updated 2 months ago · GPL-3.0 GitHub repository of 缠论 - 分型与笔 [Chanlun Core]

Breakout Strategy

by JoelPasapera
11 stars

This strategy implements a channel breakout system directly on the main price chart. It calculates highest highs and lowest lows over configurable entry and exit periods using historical candles. A long entry triggers when the close breaks above the entry chan

Strategy v6 BreakoutTrend
Updated 5 months ago · Apache-2.0 GitHub repository of Breakout Strategy

iHotel Index

by hirawatt
11 stars

The iHotel Index indicator tracks Indian hotel sector equities listed on the National Stock Exchange (NSE). It uses security functions to fetch closing prices for multiple hospitality stocks, including Indian Hotels Company, EIH, Royal Orchid Hotels, Chalet Ho

Indicator v5
Updated 2 years ago · MIT GitHub repository of iHotel Index

Pinbar strategy

by samgozman
11 stars

This strategy detects bullish and bearish pinbar candles on the price chart and opens a long or short position when the pattern appears and no trade is open. Take profit and stop loss are set from the signal candle's range using separate multipliers, and trail

Strategy v5 Candlestick patterns Repaints
Updated 3 years ago · None stated GitHub repository of Pinbar strategy
11 stars

This indicator framework backtests trading strategies and generates execution alerts directly from an overlay chart study. It simulates trade entries, fills, stop losses, and take-profit targets across custom or built-in rules, including moving average filters

Indicator v5 TrendMoving averages
Updated 4 years ago · MPL-2.0 GitHub repository of Backtesting-Trading Engine [PineCoders]

LqEMABB

by idrode
10 stars

This indicator estimates cryptocurrency liquidation levels and liquidation density using open interest delta data fetched from Binance USDT perpetual futures. It identifies spikes in open interest relative to a simple moving average and plots estimated liquida

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 5 weeks ago · AGPL-3.0 GitHub repository of LqEMABB

This overlay indicator marks Wyckoff-style buying and selling climaxes on the price chart. It filters trend with an exponential moving average and a higher-timeframe EMA, then flags accumulation or distribution when price and ATR sit relative to their swing av

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Ultimate Wyckoff Indicator V3 (Refined)

SMC Strategy

by tsunafire
10 stars

SMC Strategy is a Pine Script v5 overlay strategy based on smart money concepts. It flags market structure shifts from ten-bar highs and lows, draws bullish and bearish order blocks as rectangles when that option is on, and marks liquidity sweeps with short li

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of SMC Strategy

MarketCipher B

by 2b260adc4a7
10 stars

MarketCipher B plots a wave oscillator in a separate pane. It builds two smoothed waves from the typical price, draws their difference as a VWAP-style area, and marks wave crosses with buy and sell dots, including larger dots below a lower threshold. Optional

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketCipher B

Investor Ninja

by the-up
10 stars

This strategy places repeated long entries of a fixed cash amount on a chosen weekday at a selected weekly interval inside a user-defined start and end date. It draws on the price chart. Settings choose the calendar window, the starting week, whether buys occu

Strategy v5
Updated 2 years ago · MIT GitHub repository of Investor Ninja

1BullBear

by KweeBoss
10 stars

The 1BullBear indicator is an all-in-one chart utility that displays key trading sessions, reference levels, and market structure helpers directly on the price chart. It highlights Asian, London, and New York sessions with customizable background ranges, label

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of 1BullBear
10 stars

The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju

Strategy v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of Strategy - Reverse RSI
10 stars

This indicator combines SuperGuppy exponential moving average ribbons with SuperTrend pivot points in a separate pane screener. It classifies up to twenty assets as neutral, long, strong long, short, or strong short. Fast and slow EMA stacks define trend align

Indicator v4 TrendMoving averages
Updated 4 years ago · MIT GitHub repository of SuperGuppySTPPScreener
10 stars

Accumulation Zones identifies macro accumulation periods specifically geared toward Bitcoin by measuring elapsed time since the genesis block. It calculates a historical bar offset based on the Feigenbaum constant, comparing current closing prices against hist

Indicator v4 Trend
Updated 5 years ago · None stated GitHub repository of Accumulation Zones
10 stars

This indicator calculates three Simple Moving Averages (SMAs) sourced from a user-defined higher timeframe resolution, defaulting to Daily. Intended for 1-hour charts, it plots all three SMAs directly on the price chart and includes built-in alerts for moving

Indicator v4 Moving averagesTrend Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of Alert SMAs 1h (@tradeprophet)

Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize

Indicator v6 TrendCandlestick patterns
Updated yesterday · MIT GitHub repository of Adaptive Arithmetic Candles + Quality Score [WavesUnchained]

Nexural Flow Pro

by JasonTeixeira
9 stars

Nexural Flow Pro plots real order flow data in a separate pane as stacked buy and sell volume columns. It highlights imbalances at 3:1 ratios with glow effects, detects absorption patterns, and marks unfinished auction continuations. Session filtering optional

Indicator v6 VolumeSessions & time
Updated 12 days ago · Custom licence GitHub repository of Nexural Flow Pro

RSI Divergence

by paulieb89
9 stars

This indicator plots RSI in a separate pane and marks regular divergences between confirmed price pivots and RSI pivots. A bullish signal requires a lower price low, a higher RSI low, and an RSI reading in the oversold zone, within a set bar gap. Bearish detec

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of RSI Divergence

3D MACD Bar Plot [LuxAlgo]

by MeridianAlgo
9 stars

This indicator projects a three-dimensional surface plot of multiple MACD calculations in a separate indicator pane. It calculates exponential moving averages across ranges of fast and slow periods defined by user-selected minimum, maximum, and step parameters

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of 3D MACD Bar Plot [LuxAlgo]

ADX Trend Strength - Eterna

by EternaHybridExchange
9 stars

Calculates the Average Directional Index (ADX), Directional Movement Index (DMI), and an Exponential Moving Average to trade strong directional momentum. It enters long when the DI+ line crosses above DI- while ADX exceeds a threshold and price is above the EM

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · MIT GitHub repository of ADX Trend Strength - Eterna

This indicator detects and visualizes Smart Money Concepts (SMC) and Inner Circle Trader (ICT) structures directly on the price chart. It performs multi-timeframe analysis across customizable trend (H1), entry (M15), and micro (M5) timeframes to identify bulli

Indicator v6 SMC / ICT / price actionSupport & resistance
9 stars

This indicator implements Chanlun (Zen Theory) structural concepts directly on the main price chart. It identifies top and bottom fractals using five-bar pivot conditions and dynamically tracks high and low arrays to plot strokes (Bi) and segments. Traders can

Indicator v5 Support & resistanceCandlestick patterns
Updated 11 months ago · None stated GitHub repository of Chanlun Buy Sell Points Indicator

Markov Strategy

by Rohanom
9 stars

Markov Strategy is a mean-reversion quantitative strategy inspired by streak-based Markov chain analysis. Applied directly to the price chart, it monitors price action for consecutive downward closes. The strategy enters a long position after detecting six con

Strategy v5 Mean reversionCandlestick patterns
Updated 1 year ago · MIT GitHub repository of Markov Strategy

DC Hacendado A

by crissrocca
9 stars

DC Hacendado A is an overlay indicator inspired by Market Cipher A and VuManChu Cipher A. It calculates an eight-line exponential moving average ribbon alongside WaveTrend oscillator conditions, Relative Strength Index measurements, and a custom RSI plus Money

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · MPL-2.0 GitHub repository of DC Hacendado A

Calculates the Stochastic Momentum Index (SMI) Ergodic oscillator in a separate pane. Users can choose from nine different moving average types for both the SMI line and signal line calculations, including SMA, EMA, DEMA, TEMA, WMA, SSMA, LSMA, Hull, and ALMA.

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Stochastic Momentum Index (SMI) Ergodic [andre_007]

HiLo Activator

by rodrigo-brito
9 stars

This indicator plots a HiLo Activator on the price chart. It computes a simple moving average of highs and a simple moving average of lows, each shifted by a user-set number of bars. Direction starts from whether price is below the lower average, then flips do

Indicator v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of HiLo Activator
9 stars

This indicator calculates relative currency strength across major foreign exchange currencies and gold by pulling multi-symbol price data via security calls. Users can select specific currency pair sets (such as GBP, EUR, USD, or XAU) or a global strength over

Indicator v4 Screeners & dashboards
Updated 5 years ago · None stated GitHub repository of 4th Dimension Currency Strength

RePaNoCHa V4

by wocclyl
9 stars

RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si

Indicator v4 TrendOscillators & momentum
Updated 7 years ago · MIT GitHub repository of RePaNoCHa V4
8 stars

This indicator analyzes Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) across hourly and multi-hour intraday trading sessions. It plots session open baselines, historical excursion boundaries, custom probability target zones, and time hi

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 days ago · None stated GitHub repository of Hourly Time and Price [JerryG & Smitty]

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