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

Pro Pattern Al-Sat

by MeridianAlgo
9 stars

This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin

Indicator v6 Candlestick patternsTrend
Updated 4 months ago · MIT GitHub repository of Pro Pattern Al-Sat

SMA Crossover (50/200) - Eterna

by EternaHybridExchange
9 stars

This strategy plots a fast and a slow simple moving average on the price chart and enters long when the fast average crosses above the slow average, or short when it crosses below. Opposite crosses reverse the position. Inputs change the two lengths, leverage,

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of SMA Crossover (50/200) - Eterna
9 stars

This separate-pane indicator compares selected forex and gold pairs. It requests the current close and the previous daily close from a chosen broker feed and maps numeric values onto a blue-to-red gradient. The pair-set input switches between overall currency

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

MA+ATR+ADX+PP Strategy is a trend-following system that plots a simple moving average with an ATR-based envelope directly on the main price chart. It changes trend state to bullish when the low exceeds the upper envelope, and bearish when the high breaks below

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of MA+ATR+ADX+PP Strategy

Swing Levels

by lunarticktrading
7 stars

Swing Levels is a Pine Script indicator designed to replicate a popular pivot-based swing indicator from NinjaTrader directly on the price chart. It calculates swing high and swing low points using a user-definable length parameter and plots them with circles

Indicator v6 Support & resistance
Updated 2 weeks ago · None stated GitHub repository of Swing Levels

This indicator projects a dual-asset momentum matrix visualizer directly onto the price chart overlay. It calculates normalized momentum for the chart symbol using either RSI or Stochastic inputs adjusted by ATR volatility, and compares it against a benchmark

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Pro Grid Elite: Advanced Dual-Asset Momentum Matrix

VWAP + Volume

by muammeryldrm42
7 stars

The VWAP + Volume strategy trades crossovers of the Volume Weighted Average Price confirmed by volume surges. It enters long or short positions when the closing price crosses above or below the VWAP line while volume exceeds its 20-period simple moving average

Strategy v5 VolumeBreakout
Updated 3 months ago · MIT GitHub repository of VWAP + Volume

USDKRW Table

by suyons
7 stars

This indicator draws a one-cell table at the bottom left of the price chart. It requests the close of FX_IDC:USDKRW on the one-minute timeframe and formats that value with a Korean won symbol. Text is green when the chart bar open is at or below its close, and

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of USDKRW Table

RSI + MFI Combined

by s4mn0v
7 stars

This indicator plots a custom RSI and an optional Money Flow Index in a separate pane so price momentum can be compared with volume-weighted momentum. It draws RSI bands at 30, 50, and 70 with gradient fills above and below the midline, plus dashed MFI levels

Indicator v6 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of RSI + MFI Combined

Moving Average Cross

by SynergOps
7 stars

This strategy plots a short and a long exponential moving average on the price chart and compares them. It enters long after the short average stays above the long average for ten bars, and enters short after the opposite holds for ten bars. It tries to close

Strategy v5 TrendMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Moving Average Cross
6 stars

This overlay indicator maps an opening drive for a chosen session, using the first 30 or 60 minutes. It tracks drive high, low, midpoint, range, pace, and volume versus a multi-session average, then projects continuation lines from the drive edge and fade line

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · MIT GitHub repository of Capital41 Opening Drive Playbook

Volume Profile Phase 0 Probe

by 345-strategies
5 stars

Volume Profile Phase 0 Probe is a non-visual diagnostic tool designed to perform parity testing and internal backend validation for volume profile calculations. It deliberately features no chart plots, signals, alerts, or visual drawings. The script computes i

Indicator v6 Volume
Updated 2 days ago · MPL-2.0 GitHub repository of Volume Profile Phase 0 Probe

This indicator calculates a volatility signal-to-noise ratio based on the absolute bar-to-bar price change. It estimates the mean and second moment using an exponential weighting scheme to evaluate relative noise in price movement. The resulting ratio is plott

Indicator v6 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Volatility Signal-to-Noise Ratio

Williams %R

by SiegerTerpstra
5 stars

This indicator calculates Williams %R, a momentum oscillator that places the selected source inside the highest-high to lowest-low range over a chosen length and scales the result from 0 to -100. It draws the oscillator in a separate pane, colors it according

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Williams %R

Cerebr

by jerryinyang
5 stars

This strategy combines optional Hull moving average, SuperTrend, and MACD conditions in a separate pane. It marks HMA rising or falling over a chosen period and SuperTrend long or short direction, and it treats MACD above or below its signal line as buy or sel

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Cerebr

This strategy executes short trades based on trend confirmation and momentum exhaustion. It calculates a 50-period and 200-period EMA, requiring price to trade below the 200 EMA with a recent upward pullback through the 50 EMA. Short entries are further filter

Strategy v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 50 EMA + 200 EMA + VMC Cipher Short Strategy
4 stars

This multi-mode trading strategy executes trades on the price chart using selectable technical models, including RSI-2 mean reversion, SuperTrend, MACD crossovers, Triple EMA, Bollinger Bands, or a combined multi-indicator approach. It filters trade entries us

Strategy v6 TrendOscillators & momentum
4 stars

This indicator calculates both a standard Relative Strength Index and a Relative Liquidity Index, which applies an RSI calculation to Average True Range values. It plots these oscillators in a separate pane alongside overbought and oversold threshold levels. I

Indicator v6 Oscillators & momentumVolatility & bands
Updated today · None stated GitHub repository of RSI + Relative Liquidity Index
4 stars

This strategy calculates fast and slow exponential moving averages alongside an Average True Range value. It enters a long position when the fast EMA crosses above the slow EMA, and enters a short position on a cross under unless long-only mode is active. Stop

Strategy v6 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of EMA Cross Strategy [trugurpala]

My Strategy Name [Lab]

by mitchell-917
4 stars

This Pine Script v5 strategy calculates a simple moving average of a configurable source over a user-defined length. It generates long entries when close crosses above the moving average and short entries when close crosses below it. The strategy draws on the

Strategy v5 Moving averagesTrend
Updated 11 months ago · Custom licence GitHub repository of My Strategy Name [Lab]
4 stars

This strategy plots a fast, a slow and a derived average moving average on the price chart, each selectable as an EMA or SMA. A long entry requires a recent fast-over-slow cross outside the last four bars, price above the fast and the longer trend average, and

Strategy v4 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of 3 EMA/SMA + Cross Strategy
4 stars

This indicator plots an exponential moving average ribbon consisting of 5, 8, and 13-period EMAs alongside dual Bollinger Bands (narrow and wide bands). It plots buy and sell shapes on the price chart whenever the 5 EMA crosses above or below the 13 EMA. In ad

Indicator v5 Moving averagesVolatility & bands
Updated 2 years ago · None stated GitHub repository of UMURLU 5-8-13 Tarama
4 stars

SnagProfit Trending is a multi-timeframe dashboard indicator that monitors trend direction across multiple resolutions using exponential moving average alignments. It calculates EMA relationships across timeframes starting from lower intervals like the one-min

Indicator v5 TrendScreeners & dashboards Repaints
Updated 4 years ago · None stated GitHub repository of SnagProfit Trending

ODIE AT-DDT

by gocaman
3 stars

ODIE AT-DDT combines an Arnaud Legoux Moving Average (ALMA) and an AlphaTrend indicator into a single price chart overlay. It calculates trend direction using ALMA smoothing alongside an ATR-based AlphaTrend that utilizes MFI or RSI. Visual buy and sell signal

Indicator v5 TrendMoving averages
Updated today · None stated GitHub repository of ODIE AT-DDT

jash GGMA Granville

by jash-git
3 stars

This indicator combines modified Guppy Multiple Moving Average (GMMA) concepts with Granville's rules using Fibonacci-based exponential moving averages. It plots five EMAs on the price chart (3, 13, 34, 55, and 144 periods) to track short-term momentum, interm

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of jash GGMA Granville

The BB Keltner Squeeze Oscillator combines Bollinger Bands and Keltner Channels to identify market volatility squeezes alongside dual moving average momentum oscillators. It plots two column histograms and zero-line squeeze dots in a separate pane below the pr

Indicator v5 Volatility & bandsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BB Keltner Squeeze Oscillator
3 stars

This indicator plots a fast and a slow simple moving average of the close on the price chart. It marks a bullish signal when the fast average crosses above the slow average and a bearish signal when it crosses below, using small triangles at the bar. A faint b

Indicator v5 Moving averagesTrend
Updated 7 months ago · None stated GitHub repository of Simple Moving Average Crossover

Lune Algo Premium

by IAMATOMIC001
3 stars

This multi-component overlay indicator plots algorithmic trading signals, trend clouds, and reversal bands directly on the price chart. Users can choose between multiple signal models tailored for scalping, momentum, or swing trading, adjusted via sensitivity

Indicator v5 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Lune Algo Premium

BTMM Performance Tracker

by jcortes254
3 stars

BTMM Performance Tracker is a trade analytics indicator designed for Steve Mauro's Beat The Market Maker methodology. It tracks simulated trade executions driven by automated, manual, or external signal inputs to compute account performance, win rates, and ris

Indicator v5 Screeners & dashboardsSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of BTMM Performance Tracker

Simple Alert Strategy

by augustoerni
3 stars

Simple Alert Strategy is a moving-average crossover system designed for automated webhook alerting. It computes a 3-period simple moving average on closing prices directly on the main chart. The strategy enters a long position when the price crosses above the

Strategy v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Simple Alert Strategy

Normalized Advanced Decomposition Oscillator decomposes price action into three distinct components: a trend component based on a simple moving average, a noise component based on standard deviation, and a transient component derived from significant rate-of-c

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Normalized Advanced Decomposition Oscillator

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of selected major currencies on a separate pane. Users choose currencies to display along with their colors and line widths. The script calculates strength based on price, RSI, CCI, or Stochastics with adjust

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Monthly Seasonality

by piecioshka
2 stars

Monthly Seasonality colors the price chart background according to the calendar month using an HSV color wheel gradient spanning winter through autumn. Primarily designed for monthly timeframes, it helps identify recurring seasonal cycles across markets, such

Indicator v6 Sessions & time
Updated 10 days ago · MIT GitHub repository of Monthly Seasonality

SMC

by TamTH-Dev
2 stars

SMC is a multi-timeframe indicator that detects and plots Fair Value Gaps (FVGs) directly on the price chart. It scans across up to six user-selected higher timeframes—ranging from intraday minutes to daily and weekly intervals—to identify bullish and bearish

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 weeks ago · None stated GitHub repository of SMC

PriceAction

by alvinng214
2 stars

PriceAction is a Pine Script v6 library designed to calculate and track market structure elements based on customizable pivot lengths. It exports custom data structures for pivots, structure breaks, and market trends, categorizing price movement into internal

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

Lakshmi Zones v6

by voletiramu
2 stars

This indicator calculates daily candidate supply and demand zones and confirms them using 4-hour volume profile high-volume nodes. It overlays dynamic zone boxes, a Magic Line volatility channel, weekly close levels, and volume-price analysis signals directly

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v6

Alper

by avatar-lavventura
2 stars

Alper is a Pine Script v4 strategy that plots a WaveTrend oscillator in a separate pane and colors bars when the two WaveTrend lines cross. It requests one-minute Binance DOGE perpetual prices, builds fast and slow RSI values, and enters long or short only ins

Strategy v4 Oscillators & momentumScalping
Updated 7 months ago · None stated GitHub repository of Alper

Elastic Volume-Weighted Student-T Tension is an oscillator that calculates location and dispersion parameters based on a Student-T distribution model. It uses volume or ATR as a weighting factor to estimate market tension relative to historical distribution le

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 months ago · None stated GitHub repository of Elastic Volume-Weighted Student-T Tension

NEODCA

by wynnforthework
2 stars

NEODCA is a Dollar Cost Averaging (DCA) strategy that combines MACD oscillators with volume-weighted moving average (VWMA) filters to execute trades. It supports long and short modes, placing base orders followed by up to eight safety orders scaled by multipli

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of NEODCA

Position Sizes

by etnt
2 stars

Position Sizes is an overlay indicator that calculates risk-managed trade sizing based on account size and risk percentage parameters. It calculates position values, required share quantities, stop-loss levels, and 1R take-profit targets across four customizab

Indicator v5 Screeners & dashboardsVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Position Sizes

Momentum

by Electrified-Trading
2 stars

This Pine Script library calculates various momentum metrics and oscillator values for other scripts to use. It provides functions for standard-deviation-normalized price change, dual-moving-average momentum, Stochastic RSI, and a customizable MACD. Function p

Library v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum

Monthly Performance Table

by Web3Degenerate
2 stars

This strategy combines an example trend pullback trading model with a modular monthly performance table displayed directly on the price chart. It buys when price is above a long-term moving average but below a short-term moving average, and exits when price cl

Strategy v5 Screeners & dashboardsMoving averages
Updated 2 years ago · None stated GitHub repository of Monthly Performance Table

HTF Candles & Pivots

by itmakesyousick
2 stars

HTF Candles & Pivots overlays higher-timeframe candlestick bars, pivot points, and price structure directly onto the main price chart. It renders customizable higher-timeframe candle bodies, wicks, and time division separators while calculating classic pivot l

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This Pine Script strategy uses pivot points to calculate a dynamic center line, around which ATR-based bands are drawn to form upper and lower limits. A trailing line follows the center line, changing color based on trend direction. Buy and sell signals appear

Strategy v4 TrendVolatility & bands
Updated 4 years ago · MIT GitHub repository of Pivot Point SuperTrend 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