Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 47)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

SR+Trend v12 (backup)

by MuhammadMuhamid
1 stars

A backup copy of a long-only crypto spot strategy built on multi-timeframe pivot support and resistance. It enters when price retests a support zone and holds, with an option to flip broken resistance into support. Further switches add moving average, SuperTre

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR+Trend v12 (backup)

This indicator scans and ranks a custom watchlist of up to nine symbols alongside a benchmark reference symbol by daily ATR percentage. It computes the Average True Range as a percentage of the close using daily timeframe security calls without lookahead bias.

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade — Volatility Scanner (ATR%)

Bmoon System Signals

by morindok
1 stars

Bmoon System Signals is a fractal-based mirror indicator that overlays on the price chart. It calculates mirrored price levels using two user-defined mirror levels (P1 and P2) with options for logarithmic or arithmetic mirroring. The indicator detects multi-ba

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Signals

MM Trap Pro

by Alaamo7
1 stars

MM Trap Pro is an overlay indicator that detects volume-backed bull and bear trap patterns on the price chart. It calculates a simple moving average of volume and identifies high-volume candles with significant body percentages that fail to break previous high

Indicator v6 VolumeCandlestick patterns
Updated 2 months ago · Custom licence GitHub repository of MM Trap Pro

MA Suite

by vedkanani123
1 stars

An overlay indicator built around one selectable moving average, with an optional extra smoothing step. It reads trend from price above or below the average or from a rising average, and marks support and resistance touches within a percentage tolerance, plus

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of MA Suite
1 stars

This Pine Script v6 strategy detects classic divergences between price action and the Stochastic oscillator in a separate pane. Bullish divergences trigger long entries when price forms lower lows while %D forms higher lows. Bearish divergences trigger short e

Strategy v6 DivergenceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Stochastic Divergence Strategy
1 stars

This indicator merges the Quantum Flow v19.1 gold smart money engine with an RSI cross module on the price chart. The RSI module shows faded buy and sell marks on a normal cross and stronger high probability marks when the cross occurs inside a Quantum Flow zo

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Quantum Flow v19.1 + RSI Edge
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, Support and Resistance filters (such as Daily Pivots, Anchored VWAP, and 5-day moving averages), and volume or percentage gain criteria. Exits are driven by specific session time

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of STT SR TMA Scale ExitOnly Plan

Strategy Template

by mrdungx2603
1 stars

This is a Pine Script v6 strategy template that sets up a trading strategy drawing on the price chart. It includes inputs for data source, fast and slow length parameters, take profit and stop loss percentages, and a time-based trading session filter. The stra

Strategy v6 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Strategy Template

RSI XO

by riegodavid-git
1 stars

A minimal overlay indicator that calculates an RSI and marks extremes directly on the price chart. A white O appears above a bar when the RSI is above the overbought level, and a white X appears below a bar when it is below the oversold level. RSI length, over

Indicator v6 Oscillators & momentumMean reversion
Updated 4 months ago · None stated GitHub repository of RSI XO

Intraday Trading

by rubbermetal
1 stars

Intraday Trading is an indicator that combines a fast MACD built from simple moving averages with an EMA structure made of a 50-period EMA of highs, a 50-period EMA of lows and a 15-period EMA of closes. Long and Short labels appear when the MACD crosses its s

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Intraday Trading

While Loop Counter

by Snappni
1 stars

This strategy sums the last len closing prices using a while loop then divides by len to obtain an average. It enters long when close exceeds the average and short when below. Positions close automatically on reversal. No stop loss is applied and entries occur

Strategy v6 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of While Loop Counter

Market Structure BOS & CHoCH

by shubhamtaywade82
1 stars

Labels break of structure and change of character events on the price chart, in a simplified smart money concepts style. It tracks both internal structure with short pivots and swing structure with longer pivots, drawing a line and label for each event. Settin

Indicator v6 SMC / ICT / price action Archived
Updated 5 months ago · None stated GitHub repository of Market Structure BOS & CHoCH

This overlay indicator maps crypto price action with a volume profile, anchored VWAP, and optional trend filters. It builds a lookback profile, value area, and acceptance tests around profile levels, and it can show right-side profile boxes. Anchored VWAP and

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v7.1 Conservative Clean
1 stars

This indicator plots three exponential moving averages and shades London and New York session hours on the price chart. It generates buy and sell signals when the fast EMA crosses the slow EMA in the direction of the 200 EMA trend filter. Entries require confi

Indicator v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD
1 stars

An opening range tool for the price chart. At a set time in a chosen time zone, by default 8:30 in the Bogota zone, it records the high and low of the first five minutes and draws them as a box and lines. During a trading window of 90 minutes it signals a brea

Indicator v6 Sessions & timeBreakout
Updated 6 months ago · None stated GitHub repository of Primera Vela NY - 5m to 1m
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2

VWAP Volatility Bands

by Focal-QuantAI
1 stars

An indicator on the price chart that smooths a VWAP with a T3 moving average cascade and surrounds it with ATR-scaled volatility bands. The VWAP can reset each session, week or month. Optional bounce signals mark reactions from the outer bands in the direction

Indicator v6 Volatility & bandsVolume
Updated 6 months ago · None stated GitHub repository of VWAP Volatility Bands

Dragon Breakout

by AlanGuo
1 stars

A long strategy that plots five moving averages (25, 50, 100, 150 and 300 by default, SMA or EMA) and looks for a bullish candle that opens below and closes above at least a set number of them. The breakout must come on volume above a ratio of its recent avera

Strategy v6 BreakoutMoving averages
Updated 7 months ago · None stated GitHub repository of Dragon Breakout

SQZ+MOM - (Buy/Sell) Indicator

by gabriel-klettur
1 stars

This script calculates squeeze conditions by comparing Bollinger Bands with Keltner Channels and plots linear regression momentum lines directly on the main price chart. It checks whether Bollinger Bands fall inside Keltner Channels to identify volatility sque

Indicator v6 Volatility & bandsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of SQZ+MOM - (Buy/Sell) Indicator
1 stars

This indicator calculates volume distribution across price slices over a lookback period and plots boxes on the price chart to represent high volume nodes. It measures volume in each slice and draws horizontal boxes whose width corresponds to volume intensity,

Indicator v6 VolumeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of High Volume Nodes (HVN)
1 stars

A long-biased signal indicator for the price chart built on a Hull moving average. A buy is shown when price is above a rising HMA, provided volume agrees through a price-volume trend filter or a momentum override based on RSI applies. After a buy, a trailing

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of RAPF v21.0 [Balanced Momentum]

Hull Suite by InSilico

by turnupdigital
1 stars

An indicator that plots a Hull moving average on the price chart, with a choice of Hma, Thma or Ehma variants, an adjustable length and multiplier, and an option to take the average from a higher timeframe. The line is coloured by trend direction and can be dr

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Hull Suite by InSilico

TeeLek CDC Action Zone

by theteelek
1 stars

A multi-timeframe overlay indicator that compares an EMA 12 with an EMA 26 on weekly, daily, 6-hour, 4-hour, 2-hour and 1-hour data and shades the area between them on the chart. The fill is green when the fast average is above the slow one and red otherwise.

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of TeeLek CDC Action Zone
1 stars

This strategy calculates fast and slow simple moving averages to identify trend direction changes on the price chart. It enters a long position when the fast simple moving average crosses above the slow simple moving average and opens a short position when it

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Two Moving Average Crossover

Request

by ivansoft
1 stars

A Pine Script v6 library that wraps data requests for external series. It supports economic series identified by a code, and Commitment of Traders data selected by metric name, direction and an optional CFTC code, building on the LibraryCOT library for the met

Library v6
Updated 1 year ago · None stated GitHub repository of Request
947 stars

This indicator plots a Sharp Modified Moving Average on the price chart. It calculates the line as three times a weighted moving average minus twice a simple moving average of the selected source. The line turns green when it rises and pink when it falls. Opti

Indicator v6 Moving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Sharp Modified Moving Average
228 stars

This indicator detects a Bollinger Band squeeze when the bands sit inside Keltner Channels, marking low volatility. It plots red dots during a squeeze and green dots when the bands are outside, in a separate pane. An optional histogram shows momentum as the cl

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Bollinger Band Squeeze Detector

Aroon (AROON)

by mihakralj
99 stars

This indicator calculates Aroon Up and Aroon Down from the bars since the highest high and the lowest low inside a chosen period. It plots both series in a separate pane with horizontal lines at 30, 50 and 70. The period input sets the lookback used for those

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Aroon (AROON)

MS+MACD Basic Tests

by iamrichardD
57 stars

This script implements an automated unit testing suite for a 4-hour swing trading system based on market structure and MACD. Utilizing a custom PineUnit framework with user-defined types, it validates mock functions for change of character, break of structure,

Strategy v6 SMC / ICT / price actionOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of MS+MACD Basic Tests
55 stars

This indicator plots the Parabolic SAR on the price chart as crosses. It computes SAR with a start of 0.02, an increment of 0.02, and a maximum of 0.2, then colors each point green when the SAR value sits below the close and red otherwise. Those acceleration v

Indicator v6 Trend
Updated 6 months ago · Apache-2.0 GitHub repository of Parabolic SAR & ATR/CMF
53 stars

This strategy implements Larry Connors' 2-period RSI mean-reversion algorithm overlaid on the price chart. It filters trades using a long-term Simple Moving Average (SMA), entering long positions when the price trades above the SMA and the short-term RSI drops

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · MPL-2.0 GitHub repository of Larry Connors 2-Period RSI Strategy

NQ Stats - Initial Balance

by TamaraKGreen
47 stars

NQ Stats - Initial Balance calculates and displays the Initial Balance range, including the session high, low, and midpoint, for a customizable intraday time window. Once the defined calculation period ends, the indicator overlays a shaded box and a midpoint l

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of NQ Stats - Initial Balance

Calculates and plots a second-order Butterworth low-pass infinite impulse response filter on the price chart. It smooths price series data by attenuating high-frequency market noise according to a specified cutoff period. Users can adjust the length setting an

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Butterworth 2nd Order Filter (BUTTER)

Planetary Retrograde Periods

by blueprintresearch-dev
42 stars

Planetary Retrograde Periods calculates and visualizes planetary retrograde motion directly on the price chart using geocentric ephemeris speed algorithms. It supports planets from Mercury through Pluto and divides retrograde cycles into two distinct phases wi

Indicator v6
Updated 2 weeks ago · None stated GitHub repository of Planetary Retrograde Periods

Zen rEMA

by Zen-Tim
29 stars

Zen rEMA is an overlay indicator that calculates an exponential or simple moving average and an ATR-normalized slope angle over a chosen lookback. Optional markers show an always-in state that turns long after two bull bars close above the average and short af

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · MIT GitHub repository of Zen rEMA
26 stars

This indicator tracks intra-bar execution by accumulating ticks using a varip integer variable. It calculates the running count of price updates across bars and plots the total tick count in a separate pane below the chart. The script features no customizable

Indicator v6 Repaints
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - varip
16 stars

This trend-following strategy adapts classic Donchian breakout channels according to market volatility regimes. It calculates an ATR percentile rank across a rolling lookback period, shifting dynamically between tighter breakout channels with smaller stops dur

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 1: Adaptive Volatility

Trend Compass 1H

by chris-c-thomas
14 stars

Trend Compass 1H provides strategic trend assessment and higher-timeframe context for 1-hour price charts. It plots an exponential moving average ribbon along with key structural reference levels from higher timeframes, including 4-hour, daily, and weekly EMAs

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 1H

The Candle Pressure Index measures buying versus selling pressure from candle geometry and relative volume. Each bar combines close location, body ratio, and volume rank into a raw pressure value. An exponential moving average of that pressure forms the CPI os

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Candle Pressure Index [WavesUnchained]

Quant RSI

by JasonTeixeira
9 stars

Quant RSI is an indicator that plots a Laguerre-filtered Relative Strength Index (RSI) in a separate pane. It incorporates Hull Moving Average smoothing to reduce lag, along with ATR-based volatility calculations and ADX trend tracking. The indicator evaluates

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of Quant RSI

Manias, Panics and Crashes

by MeridianAlgo
9 stars

Manias, Panics and Crashes is a separate-pane market regime indicator that quantifies market sentiment and systemic risk. It processes technical metrics including RSI, moving averages, and volume alongside optional intermarket data such as VIX volatility and c

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 months ago · MIT GitHub repository of Manias, Panics and Crashes

Multi-Trend

by lunarticktrading
7 stars

This indicator draws a combined trend overlay on the price chart. It can enable a SuperTrend based on ATR length and a factor, a fast and slow moving-average cloud using SMA or EMA, and a VIDYA line. Separate switches control whether each component is calculat

Indicator v6 TrendMoving averages
Updated 2 weeks ago · None stated GitHub repository of Multi-Trend

Momentum - MOM

by eddiebelaval
7 stars

The Momentum - MOM indicator calculates standard price momentum over a user-defined length and source, then smooths the momentum values using a customizable moving average. Users can choose from multiple moving average types, including EMA, SMA, RMA, WMA, VWMA

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Momentum - MOM
7 stars

This indicator plots a modified MACD-style momentum oscillator in a separate pane. It compares a zero-lag EMA of the typical price with smoothed moving averages of the high and low, then sets the impulse to the distance outside that range or to zero when price

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

Capital41 Fusion Scalp

by damianpitt
6 stars

Capital41 Fusion Scalp is an overlay indicator that identifies high-confluence setups by combining four core conditions: EMA trend direction, RSI momentum, Williams %R levels, and ATR with volume expansion. Bullish and bearish signals are plotted on the chart

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Scalp

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers