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

LunarTick Trend

by lunarticktrading
7 stars

LunarTick Trend plots a cloud between a fast and a slow moving average on the price chart. The user chooses SMA or EMA and the two lengths, and both averages can be requested from a selected timeframe. Bullish and bearish colors mark the cloud, and optional re

Indicator v6 TrendMoving averages Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick Trend
7 stars

This indicator compares the price movement of the current chart symbol against up to forty user-specified tickers across a configurable correlation window. It identifies the highest-correlated asset and projects its scaled or rotated price path directly onto t

Indicator v6 Screeners & dashboards
Updated 3 months ago · None stated GitHub repository of Match Finder [theUltimator5]

Supertrend + ADX

by muammeryldrm42
7 stars

This strategy combines Supertrend direction with an ADX strength filter. It enters long when Supertrend flips to an uptrend and ADX is above the threshold, and enters short on a downtrend flip under the same filter, only while the position is flat. The Supertr

Strategy v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Supertrend + ADX
7 stars

This indicator calculates and displays the aggregated profit and loss (PnL) for manual positions in EUR/USD, USD/JPY, and BTC/USDT. It requests hourly market close prices for each asset and computes individual and total returns based on user-entered entry pric

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of My Position and PnL

Impulse MACD

by s4mn0v
7 stars

The Impulse MACD indicator calculates a modified Moving Average Convergence Divergence to measure price momentum in a smoother and less noisy way than traditional MACD. It uses special moving averages with default lengths of 34 for the fast period and 9 for th

Indicator v6 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Impulse MACD
7 stars

This strategy calculates standard Ichimoku Kinko Hyo components including the Tenkan-Sen, Kijun-Sen, Chikou-Span, and Senkou Spans A and B to plot the Ichimoku cloud directly on the price chart. It enters long positions when price and Kijun-Sen are above the K

Strategy v5 TrendMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo: Basic Strategy
7 stars

This indicator calculates the ratio of bar volume to the absolute relative price change between the open and close prices. It plots the resulting values as a histogram column chart in a separate pane to help identify bars where high trading volume occurred alo

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Volume / Abs(Close/Open - 1)

SuperTrend

by trsdn
6 stars

This indicator plots the classic SuperTrend line on the price chart. It builds upper and lower bands from an ATR of the chosen source, then trails the band that stays active for the current direction. Direction turns up when price closes above the lower band a

Indicator v5 TrendVolatility & bands
Updated 5 days ago · MIT GitHub repository of SuperTrend
6 stars

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Oscillator v3

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price action indicator implementing Rob Smith's TheStrat methodology. It calculates bar classifications for inside bars, hammers, shooters, failed 2s and outside bars across configurable timeframes. The indicator detects sig

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 2 days ago · MPL-2.0 GitHub repository of TheStrat Suite
5 stars

The Quick Scan for Signal indicator calculates a custom market efficiency ratio by comparing net price displacement against total price movement over a specified lookback period or cumulatively from the chart start. It calculates statistical boundaries based o

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Quick Scan for Signal

Stochastic

by SiegerTerpstra
5 stars

This indicator plots a Stochastic oscillator in a separate pane. It compares the selected source with the high-low range over the %K length, then applies separate smoothing to the %K line and the %D signal line. Adjustable lower and upper bands default to 20 a

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Stochastic
5 stars

Atraxis' Linear Regression calculates and plots linear regression channels directly on the price chart. It determines the channel slope, intercept, and deviation bands around a specified price source across a user-defined length. Key settings allow traders to

Indicator v4 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Atraxis' Linear Regression

This short-only trading strategy combines a 200-period Exponential Moving Average, a Stochastic RSI oscillator, and three distinct Supertrend indicators on the price chart. It evaluates price trend relative to the 200 EMA alongside Stochastic RSI crossunder co

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 200 EMA + Stochastic + Triple Supertrend Short Strategy

AG TrendPullback Short

by eltonaguiar
4 stars

The AG TrendPullback Short strategy identifies short pullback opportunities in downtrending markets. It calculates EMA50 and EMA200 crossovers, RSI2 overbought signals above 90, and ADX trend strength above 20. When these align, it enters a short position size

Strategy v6 TrendOscillators & momentum
Updated today · None stated GitHub repository of AG TrendPullback Short

Plot Lib

by InNoobWeTrust
4 stars

This library supplies reusable drawing helpers rather than its own indicator output. It draws take-profit and stop-loss levels around an entry price, with translucent fills between those levels and the close, and it can remove those drawings. It also plots a t

Library v6
Updated today · None stated GitHub repository of Plot Lib

Triple MA Trend

by latentwill
4 stars

This strategy trades alignment of three simple moving averages on the price chart. A long opens when the short average crosses above the middle average while price stays above the long average. The opposite cross closes that long and opens a short. Length, sto

Strategy v5 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Triple MA Trend
4 stars

This strategy trades crude oil futures only during the New York session from 09:00 to 14:30. It enters long when a fast EMA crosses above a slow EMA and short on the opposite cross, and only while that session is open. Each entry sets an ATR-based stop loss an

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Crude Oil CL Strategy [trugurpala]

Market Structure Tool [Lab]

by mitchell-917
4 stars

Calculates swing highs and lows using pivot point detection to map market structure on the price chart. It categorizes pivots as Higher Highs, Lower Highs, Higher Lows, or Lower Lows, while connecting swing points with trend lines. A top-left dashboard label d

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 11 months ago · Custom licence GitHub repository of Market Structure Tool [Lab]
4 stars

This indicator scans up to ten user-selected symbols for regular RSI divergence and for RSI extremes. It compares confirmed pivot lows and highs in price and a 14-period RSI, then sends a bullish alert on a price lower low with an RSI higher low and a bearish

Indicator v5 Oscillators & momentumDivergence

MUSLUCA-V2

by Kalumur
4 stars

MUSLUCA-V2 is an overlay indicator that plots higher-timeframe moving averages on the price chart. It draws an 8-period and a 55-period exponential moving average from the four-hour timeframe, an 8-period daily exponential moving average, and 9-period and 15-p

Indicator v5 Moving averagesSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of MUSLUCA-V2

My Custom Strategy 2

by might-tree
4 stars

This strategy calculates a 20-period volume-weighted moving average of the low, a 200-period Hull moving average of the high, and 25-period highest close values. It enters a long position when the high breaks above the previous highest close while the close re

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of My Custom Strategy 2
4 stars

An overlay indicator that calculates multi-timeframe market conditions and displays them in an information panel on the price chart. It evaluates timeframe metrics such as 15-minute and 1-hour periods to monitor RSI values, support and resistance levels, and r

Indicator v5 Screeners & dashboardsOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 15M 1H

EMA 14 Haf-Aylık

by gocaman
3 stars

This indicator overlays multi-timeframe exponential moving averages and channel zones directly on the price chart. It calculates a weekly 14-period EMA, monthly 9-period and 14-period EMAs, along with a configurable 233-period high-low EMA channel with a shade

Indicator v5 Moving averagesTrend Repaints
Updated today · None stated GitHub repository of EMA 14 Haf-Aylık

This indicator plots an average daily range from hourly high-low ranges stored for each hour across a selectable number of days. It highlights time sessions on the price chart and can show a timeline and the current range box. Optional filters use a volatility

Indicator v5 Volatility & bandsSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Average Daily Range with Time Session Highlighter
3 stars

This overlay indicator is a Phase 3 debug demonstration. It exposes toggles for memory profiling, code coverage, test-data collection, and benchmarking, plus a debug level and a maximum bar count. Minimal helper functions estimate memory use, count function ca

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Phase 3 Comprehensive Test

Stella's Trend Strength

by stella-entry
3 stars

This indicator calculates and plots ADX values on a separate pane to gauge overall trend strength from 0 to 100. It combines ADX with DI+ and DI- to classify trends as Strong, Moderate, or Weak based on input thresholds. The script identifies bullish and beari

Indicator v5 Trend
Updated 8 months ago · MIT GitHub repository of Stella's Trend Strength

Gold Digger AI

by IAMATOMIC001
3 stars

This strategy executes gap breakout entries directly on the price chart, opening long positions when the current open exceeds the prior high and short positions when the open drops below the prior low. It overlays a custom Supertrend filter, an EMA cloud, a Pa

Strategy v5 BreakoutMoving averages
Updated 12 months ago · None stated GitHub repository of Gold Digger AI

BTMM Master Dashboard

by jcortes254
3 stars

BTMM Master Dashboard displays a comprehensive monitoring interface on the main price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It aggregates system status, a market clock, key price levels, and signal fusion confluence metrics int

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

PSAR Lib

by augustoerni
3 stars

This Pine Script library provides a custom calculation of the Parabolic Stop and Reverse indicator. The exported function accepts parameters for the starting acceleration factor, increment step, and maximum acceleration limit. It evaluates bar highs, lows, and

Library v5
Updated 2 years ago · None stated GitHub repository of PSAR Lib

J's Composite Index

by jawauntb
3 stars

J's Composite Index combines RSI momentum with simple moving averages in a separate pane. It calculates an unbounded momentum RSI value by adding the bar-over-bar change of a 14-period RSI to a 3-period simple moving average of a 3-period RSI. The indicator pl

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of J's Composite Index

Currency Strength Chart

by itmakesyousick
3 stars

The script calculates and plots relative currency strengths for major pairs including EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD in a separate pane. Strength is derived from RSI, CCI, Stochastics or raw Price source, optionally smoothed and filtered by length.

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

Hourly Seasonality

by piecioshka
2 stars

This indicator colors the chart background on intraday timeframes based on the current hour of the day. It applies a continuous 24-color daily gradient transitioning across dawn, day, dusk, and night to help traders visually track time progression. Users can f

Indicator v6 Sessions & time
Updated 10 days ago · MIT GitHub repository of Hourly Seasonality
2 stars

This trend-following strategy plots on the price chart and identifies continuation trades during established trends. It calculates dual exponential moving averages alongside an average directional index filter. Entries trigger when price pulls back into the mo

Strategy v6 TrendMoving averages
Updated 4 weeks ago · Custom licence GitHub repository of MP EMA 9/21 Pullback Continuation

Oscillator

by TamTH-Dev
2 stars

This indicator calculates price midpoints derived from the highest high and lowest low over a customizable base period. It evaluates these range boundaries across the current chart timeframe as well as dynamically scaled 2x and 4x higher timeframes via multi-t

Indicator v6 Oscillators & momentumSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Oscillator
2 stars

Squeeze Momentum Pro plots a TTM-style volatility squeeze in a separate pane. It compares Bollinger Bands with three Keltner Channel widths to mark wide, normal, and tight compression, and it flags the bar when a normal squeeze releases. A linear-regression mo

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Squeeze Momentum Pro [Vantrade]

MirPapa_Handler_HTF

by alvinng214
2 stars

MirPapa_Handler_HTF is a Pine Script v6 utility library designed for handling higher timeframe conversions and multi-timeframe data retrieval. It converts standard timeframe strings into minute counts, computes the numerical ratio between higher and lower time

Library v6
Updated 2 months ago · None stated GitHub repository of MirPapa_Handler_HTF

Zeguela Dematron

by danielvm-git
2 stars

This strategy plots up to three double exponential moving averages on the price chart and looks for crossovers and crossunders between them. With the default lengths, the fastest DEMA crossing the second DEMA is the signal; a third length of zero is ignored, a

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Zeguela Dematron

The Market Tail Risk Detector evaluates market fragility and compression to identify environments preceding volatile price moves. It calculates a composite tail risk score ranging from 0 to 100 based on realized volatility percentiles, volatility of volatility

Indicator v6 Volatility & bandsBreakout Repaints
Updated 3 months ago · Apache-2.0 GitHub repository of Market Tail Risk Detector (Quiet → Explosive)

Lakshmi Zones v1

by voletiramu
2 stars

Lakshmi Zones v1 is an indicator that plots demand and supply zones on the price chart. It calculates volume profile zones with user-defined bin counts and lookback periods, fair value gaps from the 4H timeframe, and equal highs and lows using tolerance percen

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v1

WaveTrend with Crosses [LazyBear]

by avatar-lavventura
2 stars

This strategy calculates the WaveTrend oscillator using exponential moving averages of typical price and plots two signal lines alongside overbought and oversold thresholds in a separate pane. It enters long positions when the primary line crosses above the si

Strategy v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of WaveTrend with Crosses [LazyBear]
2 stars

This Pine Script indicator calculates Z-Score based bands for grid trading using a user-selectable moving average. It computes the MA from chosen type, length and source then derives upper and lower bands offset by stddevs. Grid ranges are set by min and max w

Indicator v6 Support & resistanceMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Z-Score [psyll]

Crowding Model BullVision

by regalouisei
2 stars

This indicator monitors market-wide positioning across major cryptocurrency benchmarks and top altcoins. It calculates the Relative Strength Index and Z-scores across up to 19 assets, mapping them into quadrant zones to identify overbought or oversold crowding

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Crowding Model BullVision

Average True Range (ATR)

by mushroom-men-Trading
2 stars

The Average True Range indicator calculates volatility by averaging the true range over a user-defined length. It plots the ATR value as a line in a separate pane below the price chart. The length input sets the period for the calculation, defaulting to 14 bar

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Average True Range (ATR)

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