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

Trend Dashboard

by jayadevrana
1 stars

This indicator plots an EMA line with length 50 on the price chart to show the trend direction. It evaluates whether price sits above the EMA for three custom timeframes and displays the results as UP or DOWN labels in a table at the top right. The table color

Indicator v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of Trend Dashboard

smc_core_types

by skipp-dev
1 stars

This Pine Script library provides core enumeration types used across the SMC script ecosystem. It exports standardized definitions for moving average options including SMA, EMA, RMA, WMA, VWMA, Hull, and Zero Lag variations. Additionally, it defines break mode

Library v6
Updated 3 days ago · None stated GitHub repository of smc_core_types

LTF_p02_BOOL

by pineforge-4pass
1 stars

This strategy computes bullish flags for 1-minute bars using request.security_lower_tf on a 15-minute chart. It tallies the number of bullish sub-bars and enters a long position when the count reaches at least 9 and the 9-period EMA crosses above the 21-period

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of LTF_p02_BOOL

P_err_type_string_to_float

by GammaExpansion
1 stars

This test script is a fixture designed to verify type conversion error handling in Pine Script. It assigns a string value to a float variable and plots the resulting variable in a separate indicator pane. The script contains no user-configurable settings, tech

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

An indicator that watches for shifts in volatility in a separate pane. Each bar it ranks the last N log returns and computes a rank-based Mood scale statistic over all candidate split points, taking the largest standardized value. When that value passes a thre

Indicator v6 Volatility & bands
Updated 7 days ago · GPL-3.0 GitHub repository of Mood Test Change-Point Detector

DEPV2 DEBUG S16

by YuceSezar89
1 stars

DEPV2 DEBUG S16 is a multi-symbol indicator that plots trading signals for 20 major Binance cryptocurrency pairs including BTCUSDT, ETHUSDT, SOLUSDT and others. It applies four distinct methods: TREND, MOMENTUM, VOLATILITY and VOLUME to generate signals. Three

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S16
1 stars

This indicator analyzes order flow, dollar volume changes, and price movement across up to five configurable currency symbols in a separate pane. It calculates volume flow scores using normalized metrics such as percent change or Z-scores, integrated with Chai

Indicator v6 VolumeOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Volume Multi Currency Analyzer

Volume MAs Supertrend

by vedkanani123
1 stars

An overlay Supertrend that is built on a volume-weighted moving average instead of raw price, with a choice of nine average types and a length. It uses an ATR period with separate long and short multipliers, so the two band sides can sit at different distances

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Volume MAs Supertrend

B2B PUP Combined 5.4

by nishpa800
1 stars

Large overlay indicator that merges many detections into numbered signals on the price chart. It includes pocket pivot volume tests, standard deviation displacement, a VWMA with ATR Supertrend and PBJ filter, relative volume, high-volume and opening-drive zone

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 5.4

GrimmHAbacktest

by GreyssonEnterprises
1 stars

This indicator plots four smoothed moving averages of lengths 21, 50, 100 and 200 on the price chart. It fills the area between a two-period EMA and the 200-period SMMA to highlight trend direction. It marks bullish and bearish 3-line strike patterns with arro

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmHAbacktest
1 stars

Utility State Series is an EMA crossover strategy that tracks state variables and past event prices. It calculates 12-period and 26-period exponential moving averages, plotting the close price at the most recent crossover with a color reflecting whether a bull

Strategy v5 Moving averagesTrend
Updated 4 months ago · MIT GitHub repository of Utility State Series

Hurst Peak Marker

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane that runs a bank of Hurst bandpass filters, from 1 day to 18 year cycles, over the hl2 price and marks cycle peaks with labels and lines. Auto or manual modes control cycle selection, peak selection, composite line

Indicator v5 Oscillators & momentumSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker

Trend Lines v2

by webcrack4
1 stars

This indicator automatically draws trend lines on the price chart based on detected pivot points. It identifies pivot highs and lows using a user-specified period and checks combinations of these points to determine valid trend lines that do not get violated b

Indicator v4 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Trend Lines v2

LQDT Monitor

by ivansoft
1 stars

An indicator on the price chart that tracks the day's opening price, high and low and marks bars where the bar range moves away from the previous bar, as pressure. A small down character above the bar marks downward pressure, a small up character below the bar

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of LQDT Monitor

Net Position

by zhuzp98
1 stars

This indicator plots aggregated net long and short positions from selected crypto perpetual markets in a separate pane. It can show net longs, shorts, delta, and ratio as candles, a line, or columns, and it can switch to a position RSI view. Users choose Binan

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Net Position

Vertical Horizontal Filter

by JohnsonHsiao
1 stars

The Vertical Horizontal Filter indicator determines whether an asset is trending or consolidating. It calculates the ratio between the highest-lowest price range over a set lookback period and the sum of absolute price changes over the same period. The script

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Vertical Horizontal Filter
1 stars

A Pine v4 strategy that goes long when a MACD bottoming pattern or an RSI bottoming pattern below 30 appears while price trades under a VWAP band set half a percent below the close. It can add to longs on further RSI bottoms up to a maximum, reopen longs, and

Strategy v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of MACD Please (RSI Bottoms)

Gaussian Filter

by everget
948 stars

Gaussian Filter is a trend-following indicator that overlays a smoothed moving average line on the main price chart. It uses a multi-pole Gaussian filter equation derived from a specified cycle period to reduce noise with minimal lag. Users can set the filter

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Gaussian Filter
330 stars

This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Multi MACD + BB + RSI [Alorse]

API Tracker

by Allen1212
303 stars

API Tracker visualizes historical buy and sell activity by ARK Invest funds directly on the main price chart. It plots date-specific chart labels indicating transaction dates, trade direction, and the count of participating funds for a specific equity. Users c

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

FunctionNNetwork

by ricardosantos79
261 stars

This Pine Script v5 library exposes methods for a generalized neural network. It builds random weight arrays, runs a forward pass through stacked layers using an imported layer function, and begins a backward pass that compares output nodes with targets. Calle

Library v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of FunctionNNetwork
257 stars

Snag - ES 1m Strategy Candle Bar is an overlay strategy designed for 1-minute index futures charts like the S&P 500 E-mini. It plots dynamic support and resistance levels derived from pivot highs and lows alongside a custom smoothed filter line and a 3-period

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - ES 1m Strategy Candle Bar
218 stars

Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Analysis Suite
114 stars

This indicator identifies standard deviation breakout signals by comparing standard deviation against its simple moving average. A long signal triggers when standard deviation crosses above its moving average during a bullish candle, while a short signal occur

Indicator v4 Volatility & bandsBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Stdev Breakout Strategy

ALMA/EMA Strategy

by hasnocool
106 stars

This strategy executes trades based on Exponential Moving Average (EMA) crossovers filtered by an Arnaud Legoux Moving Average (ALMA) baseline. It enters long positions when the moving averages cross while price remains above the ALMA, and enters short positio

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of ALMA/EMA Strategy
99 stars

The Bulls Bears Index (BBI) calculates a composite moving average by taking the arithmetic mean of four separate Simple Moving Averages (SMAs) with distinct lookback periods: ultra-short, short, medium, and long. Optimized for streaming efficiency using circul

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bulls Bears Index (BBI)

V5 Concepts Colors 11

by be-thomas
65 stars

This demonstration script plots the high, median (hl2), and low price values using multiple overlapping line plots with distinct transparency levels and line widths. Designed to showcase color styling in Pine Script v5, it illustrates how using color.new with

Indicator v5
Updated 5 days ago · GPL-3.0 GitHub repository of V5 Concepts Colors 11

Major Buy Setup

by dcaoyuan
55 stars

Major Buy Setup plots a 20-period and a 50-period simple moving average on the price chart. It marks a buy when the current bar is both a bullish engulfing candle and a bald bull candle, defined as a green candle whose upper shadow is no more than five percent

Indicator v5 Moving averagesCandlestick patterns Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Major Buy Setup

Fisher04 is an oscillator that implements John Ehlers' 2004 Fisher transform from Cybernetic Analysis. It normalizes the midpoint of high and low against the highest and lowest values over the length input, then applies a recursive smoothing step and clamps th

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Fisher04 - Ehlers 2004 Cybernetic Analysis

Hour Stats with Levels

by TamaraKGreen
46 stars

This indicator draws hourly statistics and reference levels on the price chart. It plots optional target lines for the previous hour open, high, low, and midpoint, plus the current hour open. Dashed reversal lines mark the 25th, median, and 75th percentile swe

Indicator v5 Support & resistanceScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of Hour Stats with Levels

Cumulative Volume Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Cumulative Volume Index (CVI) by measuring market breadth across major US exchanges. It requests advancing volume and declining volume data for a chosen exchange, computes their net difference, and tracks the cumulative sum over t

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Cumulative Volume Index
16 stars

This trend-following strategy identifies breakout entries using Donchian channels and plots signals directly on the price chart. It executes long and short trades, adding fractional units when relative strength index values confirm momentum. Exits rely on aver

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 38: Triple Combo

FairValueGap D003

by ruckard
13 stars

This strategy measures the distance between the current price and the opposite end of the latest fair value gap, entering trades on the expectation that price will fill the gap. It plots signals and execution levels directly on the price chart. Users can confi

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FairValueGap D003

Calculates and plots a three-tiered moving average framework consisting of Fast, Base, and Anchor curves directly on the price chart. It evaluates moving average slopes, curvature, separation, and price extension to categorize market conditions into states suc

Indicator v6 Moving averagesTrend
Updated 2 days ago · MIT GitHub repository of MA Cascade Engine [WavesUnchained]

Assistant

by eddiebelaval
7 stars

Assistant is an overlay indicator that marks candles with small or missing upper and lower wicks, using a threshold relative to body size. It plots three-candle and five-candle swing fractals as triangles two bars back, and fires alerts when a bullish or beari

Indicator v6 Candlestick patternsSupport & resistance
Updated 3 months ago · None stated GitHub repository of Assistant

Volume Details

by suyons
7 stars

Volume Details calculates estimated buy and sell volume based on intraday price location relative to the high-low bar range. It fetches daily volume history to derive a 30-day daily average volume and compares current volume against this metric. An on-screen t

Indicator v5 VolumeScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of Volume Details

714AutoM8trDST

by alboogycOdR
6 stars

Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8trDST

VuManChu B Divergences

by jerryinyang
5 stars

VuManChu B Divergences is a momentum indicator that plots WaveTrend oscillator values and an MFI area in a separate pane. It calculates signals for long entries on bullish crosses below zero levels and short entries on bearish crosses above zero levels. The sc

Indicator v4 Oscillators & momentumSupport & resistance
Updated 2 years ago · None stated GitHub repository of VuManChu B Divergences

The MACD + Support / Resistance Short Strategy is a Pine Script v4 strategy that generates short signals on the price chart. It plots the 100-period EMA as a trend filter, the MACD line and histogram, and pivot highs and lows as support and resistance levels.

Strategy v4 Oscillators & momentumTrend
Updated 3 years ago · Apache-2.0 GitHub repository of MACD + Support / Resistance Short Strategy
4 stars

This intraday strategy executes trades on the Nikkei 225 index based on exponential moving average crossovers restricted to Tokyo Stock Exchange trading hours (09:00 to 15:30 JST). Long and short positions are taken on fast and slow EMA crossovers during activ

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Nikkei Japan Strategy [trugurpala]
3 stars

This indicator overlays smart-money structure on the price chart. It draws supply and demand zones from swing highs and lows, labels those swings as higher or lower highs and lows, and marks zones broken by a close as break-of-structure lines. Fair-value gaps

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of CSW Smart-Money-Concepts
3 stars

Price Action Concepts [StratifyTrade] identifies smart money concepts directly on the price chart. It plots swing and internal market structure breaks, changes of character, order blocks with volume activity metrics, and equal highs or lows. In addition, it di

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Price Action Concepts [StratifyTrade]

Market Cipher SR

by TamTH-Dev
2 stars

This indicator plots daily support and resistance levels, volume-filtered fractal levels, and an optional VWAP overlay on the price chart. It calculates daily pivot highs, lows, and their midpoint, alongside fractal support and resistance based on candle swing

Indicator v5 Support & resistanceVolume Repaints
Updated 5 weeks ago · None stated GitHub repository of Market Cipher SR

cd_sweep&cisd_Cx

by alvinng214
2 stars

This indicator overlays higher-timeframe structure on the price chart. It draws HTF range boxes, an HTF candle, remaining time, and optional bias from a chosen higher timeframe. Sweep boxes mark swept ranges, CISD lines mark delivery shifts, and an SMT view ca

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of cd_sweep&cisd_Cx

RSI Divergence

by avatar-lavventura
2 stars

The RSI Divergence indicator calculates the difference between a fast and a slow Relative Strength Index. It plots this divergence value as a colored line in a separate pane, shifting to lime green above zero and red below zero. The primary settings control th

Indicator v4 DivergenceOscillators & momentum
Updated 7 months ago · None stated GitHub repository of RSI Divergence

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