Synced with GitHub · updated yesterday

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

Bollinger Squeeze STEPFUN

by eltonaguiar
4 stars

This strategy detects Bollinger Band squeezes by measuring band width against a threshold. It waits for a confirmed breakout in either direction when bands expand, using optional volume confirmation. Long and short signals trigger on breakout after squeeze. Po

Strategy v5 Volatility & bandsBreakout
Updated yesterday · None stated GitHub repository of Bollinger Squeeze STEPFUN

Noob's MTF EMA Clouds

by InNoobWeTrust
4 stars

Noob's MTF EMA Clouds computes and overlays multi-timeframe Exponential Moving Average (EMA) pairs across up to five user-selected timeframes directly on the price chart. It calculates fast and slow EMAs to render shaded clouds that visualize trend direction a

Indicator v5 Moving averagesTrend
Updated yesterday · None stated GitHub repository of Noob's MTF EMA Clouds
4 stars

This strategy identifies breakout entries confirmed by elevated trading volume and trend direction. It triggers long entries when the close crosses above the recent highest high, provided volume exceeds its moving average by a multiplier and price remains abov

Strategy v6 BreakoutVolume
Updated 2 months ago · MIT GitHub repository of ETH Momentum Breakout [trugurpala]
4 stars

This strategy executes mean-reversion trades based on RSI overbought and oversold levels directly on the price chart. It generates long signals when the RSI crosses back above the oversold boundary and short signals when it crosses below the overbought boundar

Strategy v5 Mean reversionOscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of RSI Mean Reversion Strategy [Lab]

Snagprofit WMA MA

by dearvn
4 stars

Snagprofit WMA MA calculates and plots weighted moving averages across multiple timeframes (1-minute, 5-minute, 15-minute, and 1-hour) alongside a chart-period simple moving average. It evaluates directional alignment between these moving averages and checks f

Indicator v5 Moving averagesTrend Repaints
Updated 4 years ago · None stated GitHub repository of Snagprofit WMA MA

P-Erik Tarama

by gocaman
3 stars

P-Erik Tarama is a multi-symbol scanner indicator that displays technical screening results directly on the price chart. It evaluates assets against a composite bullish condition combining price position relative to the Ichimoku conversion line and weekly base

Indicator v5 Screeners & dashboardsTrend
Updated yesterday · None stated GitHub repository of P-Erik Tarama

Jash Test

by jash-git
3 stars

This indicator plots five Fibonacci-based exponential moving averages with periods 3, 13, 34, 55, and 144 directly on the price chart. Built around modified Guppy Multiple Moving Average (GMMA) concepts and Granville's rules, it tracks moving average alignment

Indicator v5 Moving averagesTrend
Updated 4 weeks ago · None stated GitHub repository of Jash Test

Candles In a Row

by g-moe
3 stars

This indicator tracks consecutive bullish and bearish candles on the main price chart. It counts consecutive closes relative to opens and plots a green triangle below the bar or a red triangle above the bar once a streak reaches the chosen target length on a c

Indicator v5 Candlestick patterns
Updated 5 months ago · None stated GitHub repository of Candles In a Row
3 stars

This indicator calculates volume-weighted price movement over a set period and normalizes it using standard deviation. It offers optional Hull Moving Average (HMA) smoothing and measures order flow velocity through customizable moving averages. Displayed in a

Indicator v5 VolumeOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Standardized Orderflow [AlgoAlpha]

BTMM-Sessions

by jcortes254
3 stars

BTMM Session Analysis is an indicator that draws session background boxes on the price chart for Asian, London and NY sessions. It tracks Asian session range with midpoint, extension and statistics display. The script detects liquidity sweep levels, stop hunts

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM-Sessions

A Pine Script library providing helper functions to evaluate local trend conditions across a user-defined lookback period. It exports functions that check if the current candle's low price is strictly higher or lower than all preceding lows within the specifie

Library v5
Updated 2 years ago · None stated GitHub repository of Uptrend Downtrend Loopback Candle Identification Lib
3 stars

Short Term Alpha Indicator calculates a weighted alpha from price change multiplied by volume, then derives EMAs at fast, medium, and slow lengths. It computes ROC values for the EMAs and applies percentile rank functions to identify deviations. These deviatio

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Short Term Alpha Indicator

Session Open Line

by piecioshka
2 stars

This indicator draws a horizontal line across each session on the main price chart, anchoring to either the previous session close or the current session open. It displays session price performance through customizable labels showing percentage change, currenc

Indicator v6 Sessions & timeSupport & resistance
Updated 11 days ago · MIT GitHub repository of Session Open Line

Algo

by TamTH-Dev
2 stars

The Algo indicator calculates and plots two Dynamic Simple Moving Averages on the price chart. It uses a custom DSMA function that applies a filter derived from exponential smoothing coefficients, scales the result by RMS, and smooths with alpha. DSMA1 applies

Indicator v6 Moving averagesTrend
Updated 5 weeks ago · None stated GitHub repository of Algo
2 stars

IFVG Signals Realtime identifies inverted fair value gaps combined with a moving average trend filter to plot trading signals and zone boxes directly on the price chart. It scans lookback bars for bullish and bearish fair value gaps and triggers real-time sign

Indicator v6 SMC / ICT / price actionMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of IFVG Signals Realtime (No Wait)

Alpy

by avatar-lavventura
2 stars

This strategy overlays a 60-minute Volume Weighted Moving Average with percentage-based upper and lower bands, combined with an RSI oscillator and Williams Fractals. It triggers long entries when price pierces below the lower band and short entries when price

Strategy v4 Moving averagesOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy
2 stars

Footprint IQ Pro draws a volume footprint on the price chart from lower-timeframe bars. It aggregates buy volume, sell volume, total volume, and delta at price levels using one-minute, one-second, or one-tick granularity, with automatic or manual tick spacing.

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Footprint IQ Pro [TradingIQ]

Chaikin's Volatility (CVI)

by mushroom-men-Trading
2 stars

Chaikin's Volatility (CVI) indicator calculates volatility based on the high-low range of the price and the rate of change of an exponential moving average. The script plots the CVI value in a separate pane below the price chart. Users can adjust the ROC lengt

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Chaikin's Volatility (CVI)

Super 8 - 30m BTCUSDT.P

by wynnforthework
2 stars

Super 8 is a trend-following and momentum strategy designed for 30-minute cryptocurrency charts. It evaluates entries using dual EMAs, ADX strength filtering, Parabolic SAR direction, MACD or Z-VWAP calculations, and Bollinger Band width expansion alongside vo

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Super 8 - 30m BTCUSDT.P

SessionInfo

by Electrified-Trading
2 stars

SessionInfo is a Pine Script utility library providing functions for session-specific state tracking and calculations. It exports routines to determine whether the current intraday bar falls within a specified session, before the session begins, or after it co

Library v5 Sessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of SessionInfo

Pinbar Strategy

by Web3Degenerate
2 stars

Pinbar Strategy identifies pinbar candlestick patterns (hammers and shooting stars) via the imported ZenLibrary and trades reversals or continuations on confirmed bars. Entries are filtered by an optional exponential moving average and candle range thresholds

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · None stated GitHub repository of Pinbar Strategy

HTF Candles & Pivots

by itmakesyousick
2 stars

Plots higher-timeframe candle overlays and pivot point levels directly onto the main price chart. It renders higher-timeframe open, high, low, and close levels as custom boxes with optional wicks, alongside traditional pivot points, support and resistance leve

Indicator v5 Support & resistanceCandlestick patterns
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This indicator plots a zigzag line formed from pivot highs and lows on the price chart. It identifies higher highs, lower lows, higher lows and lower highs by comparing previous points. Support and resistance levels are drawn and updated according to trend dir

Indicator v4 TrendSupport & resistance Repaints
Updated 3 years ago · None stated GitHub repository of PharshK RSI and Zigzag with H/L
2 stars

This overlay indicator identifies pivot highs and pivot lows based on customizable left and right bar lookback settings. It calculates trend slopes and y-intercepts to project dynamic support and resistance trend lines directly onto the price chart. Users can

Indicator v4 Support & resistanceTrend Repaints
Updated 4 years ago · MIT GitHub repository of Trend Levels Indicator (my)

Monte Carlo Lab

by jayadevrana
1 stars

Monte Carlo Lab calculates and visualizes simulated performance variations for an Exponential Moving Average crossover strategy directly on the price chart. It records trade outcomes using ATR-based stop-loss and target levels in terms of R-multiples. On the f

Indicator v6 Moving averagesTrend
Updated 3 days ago · MPL-2.0 GitHub repository of Monte Carlo Lab

SMC Lifecycle Private

by skipp-dev
1 stars

SMC Lifecycle Private is a Pine Script library that provides modular helper functions to manage setup lifecycle states and market environment gating for Smart Money Concepts calculations. It evaluates market regime, volatility, and event risk conditions, compu

Library v6
Updated 3 days ago · None stated GitHub repository of SMC Lifecycle Private

Linear Regression Channel

by pineforge-4pass
1 stars

This strategy builds a linear-regression midline of close and places upper and lower bands at a multiple of close standard deviation. It enters long when price is below the lower band and the close rises versus the prior bar, and short when price is above the

Strategy v6 Mean reversionVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Linear Regression Channel

P Ver History Literal

by GammaExpansion
1 stars

The P Ver History Literal script is a Pine Script v6 indicator that assigns the constant value 5 to a variable x delayed by one bar and plots this value in a separate pane. It demonstrates history literal syntax for testing parsing and execution of delayed val

Indicator v6
Updated 6 days ago · MIT GitHub repository of P Ver History Literal
1 stars

This indicator tracks relative divergence among five user-selected crypto perpetual symbols and plots the result in a separate pane. It scores each symbol from a twelve-bar log return scaled by ATR, assigns long or short direction, and requires RSI above 40 be

Indicator v6 DivergenceOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 C4 · Ayrışma Takibi
1 stars

US Momentum Swing Screener is a daily chart overlay indicator for US equities and ETFs. It plots a composite score based on an EMA ribbon (9/21/50/200), RSI and StochRSI momentum, MACD confluence, volume surge detection, ADX trend strength, Bollinger Band posi

Indicator v5 Oscillators & momentumMoving averages
Updated 4 months ago · None stated GitHub repository of US Momentum Swing Screener
1 stars

Corpus Correlation Rotation is a cross-asset quantitative strategy that compares the price performance of the chart symbol against a user-selected benchmark asset. It measures five-bar price changes for both symbols, computes a 20-period statistical correlatio

Strategy v5 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Correlation Rotation

Simple MA Crossover Strategy

by gabriel-klettur
1 stars

The Simple MA Crossover Strategy calculates and plots a 55-period EMA and a 200-period EMA directly on the main price chart. It generates long entry signals when the 55 EMA crosses above the 200 EMA and short entry signals when it crosses below. Positions are

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Simple MA Crossover Strategy
1 stars

This overlay indicator combines three optional modules on the price chart. Volume weighted bands plot a smoothed trend and ATR-scaled envelopes in cloud or line-only form. The Keltner Hull suite calculates a Hull moving average and Keltner channels from a chos

Indicator v6 Moving averagesVolatility & bands
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

Gap and Go

by Basant1Saini
1 stars

This strategy trades opening gap continuation on the price chart. It measures the gap between the daily open and the prior daily close, then enters long after a qualifying gap up or short after a qualifying gap down when price stays beyond the open and a trend

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Gap and Go

ES Professional Fade

by knectardev
1 stars

ES Professional Fade is an intraday mean-reversion strategy designed for fading opening gaps on ES futures. It identifies market opening gaps using defined percentage and ATR thresholds, then places stop orders to fade the move while utilizing market breadth e

Strategy v5 Mean reversionSessions & time
Updated 9 months ago · None stated GitHub repository of ES Professional Fade

Indicators

by fiji-solutions
1 stars

This basic script demonstrates how to calculate and plot a simple technical indicator in Pine Script. It computes a 14-period Exponential Moving Average (EMA) using the closing price of each bar and renders the line in a separate pane. Designed as an education

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of Indicators

Harmonic Osc

by JohnsonHsiao
1 stars

The Harmonic Osc indicator plots a z-score oscillator derived from kinetic and potential energy. Kinetic energy uses ROC of price over roc_p while potential energy ratios close to EMA over ema_p. These combine into total energy with weighting factors then stan

Indicator v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of Harmonic Osc

The Alpha-Decreasing Exponential Moving Average (ADEMA) calculates an exponential moving average where the smoothing factor decreases dynamically relative to the bar index. On early bars, the weight given to new price data is larger, making the calculation rea

Indicator v4 Moving averagesTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Alpha-Decreasing Exponential Moving Average
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
330 stars

This indicator plots three moving averages taken from separate timeframes onto the price chart. The user chooses either exponential or simple averages, then sets a timeframe and period for each of the three lines, defaulting to 15-minute, 60-minute, and 240-mi

Indicator v5 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of 3 Multi Timeframe EMA/SMA

ADYEN Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell transactions for ADYEN directly onto the main price chart. It reads hardcoded timestamp data to plot green buy labels below bars and red sell labels above bars on specific dates. A user setting allows

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

Function - HSL color

by ricardosantos79
261 stars

This script provides two color helpers: one converts red, green and blue channels into hue, saturation and lightness, and the other builds a Pine color from hue, saturation, lightness and transparency. Integer inputs set those four values within fixed ranges.

Indicator v5
Updated 4 years ago · None stated GitHub repository of Function - HSL color

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