Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 33)

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

This indicator detects significant volume-driven market moves to serve as a controller plugin for the Grid Bot system. It calculates a normalized Volume Rate of Change based on a simple moving average of volume and compares it against historical maximums. When

Indicator v6 VolumeVolatility & bands
Updated 8 months ago · MIT GitHub repository of Grid Bot Controler Plugin Big Move [psyll]
2 stars

This indicator divides the lookback range between the highest and lowest close into ten equal price bins and plots each bin’s average close as a support or resistance level on the price chart. It counts bullish and bearish rejections of those levels over the s

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of BIN Based Support and Resistance [SS]

Reverse RSI Signals [AlgoAlpha]

by mushroom-men-Trading
2 stars

This indicator projects reverse RSI price levels directly onto the main price chart to generate dynamic upper and lower bands alongside a Supertrend envelope midline. It detects bullish and bearish divergences by tracking RSI pivots with a configurable left lo

Indicator v6 Oscillators & momentumTrend
Updated 9 months ago · None stated GitHub repository of Reverse RSI Signals [AlgoAlpha]

QQE + AK Trend Combined

by realanthonyc
2 stars

This indicator combines a Qualitative Quantitative Estimation oscillator with an AK Trend line in a separate pane. It computes a smoothed Relative Strength Index and builds QQE bands using Wilder's smoothed average true range of the RSI. Additionally, it integ

Indicator v6 Oscillators & momentumTrend
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend Combined
2 stars

This indicator displays an on-chart comparison table tracking eleven major industry sector ETFs against a benchmark index, typically SPY. It calculates percentage price changes over a selectable timeframe, evaluates relative strength versus the benchmark, prov

Indicator v6 Screeners & dashboardsTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Industry Indices Comparison

Position

by Electrified-Trading
2 stars

The Position library defines types and functions for simulating trades and managing positions in Pine Script. It provides Trade objects for individual trades and Position objects that track size, average price, value, start time, net gains, and trade history.

Library v6
Updated 1 year ago · MPL-2.0 GitHub repository of Position
2 stars

PriceCatch Stock Range Binning calculates the distribution of daily percentage price changes over a configurable historical lookback period, up to 2,000 trading days. It categorizes daily rate-of-change values into specific positive and negative percentage bin

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Stock Range Binning
1 stars

An indicator on the price chart exported from an optimiser, with a long list of switchable entry patterns, all off by default in the visible settings. Options include pivot points, engulfing and pin bar candles, Bollinger, Donchian and ATR channel breakouts, m

Indicator v6 BreakoutCandlestick patterns
Updated 2 days ago · None stated GitHub repository of USE Optimizer Export

Ichimoku Cloud

by mydcc
1 stars

This indicator plots the standard Ichimoku Kinko Hyo components directly on the price chart. It calculates the Conversion Line, Base Line, Leading Span A, Leading Span B, and Lagging Span using Donchian midpoint logic over configurable periods. The script shad

Indicator v6 TrendMoving averages
Updated 2 days ago · Custom licence GitHub repository of Ichimoku Cloud

An indicator that finds swing structure with pivots, draws a Fibonacci cloud and levels, and runs an adaptive trailing line that changes with a trend, range or volatile regime from ADX and ATR. Signals come from a trailing flip or from a cross of the 0.5 level

Indicator v6 TrendSupport & resistance
1 stars

Compares a smoothed FX price trend with a smoothed government yield spread trend, z-scores both over a normalisation window and plots them in a separate pane along with their difference. Threshold bands mark when the two are aligned and when they diverge, usin

Indicator v6 Oscillators & momentumDivergence
Updated 2 days ago · None stated GitHub repository of FX Price vs Yield Spread

Leveraged Perp Arm

by nvolpe2007-cell
1 stars

A simulated leveraged perpetual futures strategy with three modes in one script. Direction comes from a 50-bar SMA or a 21 and 55 EMA cross, and exits use either a fixed take profit and hard stop or an ATR chandelier trail. Leverage is capped, with maintenance

Strategy v6 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of Leveraged Perp Arm
1 stars

A separate-pane diagnostic that measures downside effort as the average of down-bar moves divided by ATR, drawn as inverted heat-coloured columns. It flags absorption and climax bars when price sits below a weekly midline built from an EMA and SMA and effort e

Indicator v6 Volatility & bandsVolume Repaints
Updated 3 days ago · None stated GitHub repository of V6.0-Down (Right Diagnostic)

Ghost Alpha Strategy

by mphinance
1 stars

A strategy version of the Ghost Alpha overlay, using the same Hull band, TRAMA, Keltner bands, moving averages, swing structure, Williams %R exhaustion and squeeze components with a minimum grade filter. The strategy settings use percent-of-equity sizing at th

Strategy v6 TrendVolatility & bands
Updated 3 days ago · Custom licence GitHub repository of Ghost Alpha Strategy
1 stars

Correlation Matrix & Effective Bets is an indicator that computes pairwise correlations of log returns across six user-defined symbols over a configurable length and displays the results as a colored table in a separate pane. It also calculates an effective be

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of Correlation Matrix & Effective Bets

skipp_indicators

by skipp-dev
1 stars

This Pine Script library provides reusable calculation functions for zero-lag exponential moving average variants and logarithmic regression slope analysis. It features mathematical models for calculating double-EMA zero-lag series, zero-lag with lead percenta

Library v6
Updated 4 days ago · None stated GitHub repository of skipp_indicators

Week 01

by moonyroy
1 stars

This overlay indicator draws line segments that follow swing highs and lows, building a zigzag-style map of price structure. It tracks a running high and low, starts a segment from the first bars, and extends or flips the current leg when price breaks only the

Indicator v6 Support & resistance
Updated 6 days ago · None stated GitHub repository of Week 01

BB Squeeze Breakout

by pineforge-4pass
1 stars

A strategy that detects a volatility squeeze when Bollinger Bands sit inside Keltner Channels. After a squeeze, it waits for the bands to expand outside the channels, then enters long if a linear regression momentum value is positive or short if it is negative

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of BB Squeeze Breakout

I_collections

by GammaExpansion
1 stars

This indicator acts as a test fixture to evaluate Pine Script array, matrix, and map collection operations. It maintains rolling 20-bar arrays of close prices and volumes to calculate statistical properties such as mean, standard deviation, percentile, mode, a

Indicator v6
Updated 7 days ago · MIT GitHub repository of I_collections

EMA-Volume

by engtuncay
1 stars

The EMA-Volume indicator plots two Exponential Moving Averages (EMA 50 and EMA 200 by default) directly on the main price chart to track trend directions and crossover signals. It concurrently evaluates trading volume using 30-period and 120-period moving aver

Indicator v6 Moving averagesVolume
Updated 7 days ago · None stated GitHub repository of EMA-Volume

Hash Momentum Strategy

by kanylbullen
1 stars

Calculates normalized momentum against a threshold and combines it with an exponential moving average trend filter. It triggers trades in the direction of the EMA trend when momentum surges, subject to optional session, weekend, and cooldown filters. Exits are

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of Hash Momentum Strategy

A strategy that classifies each bar as bull or bear trend, bull or bear expansion, chop or neutral using EMA slope, ADX and an ATR ratio, with an optional higher timeframe EMA bias. Depending on the regime it uses trend pullback entries, expansion breakout ent

Strategy v6 TrendBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Adaptive Market Regime Hierarchy Strategy v1
1 stars

A separate-pane scanner that checks up to 25 user-chosen symbols, covering stocks, ETFs, futures and crypto, and records whether each is in a buy or sell regime based on a SuperTrend with adjustable ATR length and factor. A single alert reports which symbols f

Indicator v6 Screeners & dashboardsTrend
Updated 8 days ago · Custom licence GitHub repository of Watchlist Flip Scanner

A Pine v6 strategy for crypto charts that looks for an RSI oversold setup together with a Fibonacci-spaced Bollinger Band setup, then waits for a reclaim as confirmation. Optional filters include a trend moving average on the chart and a higher timeframe, a vo

Strategy v6 Mean reversionOscillators & momentum
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro RSI + Fibonacci BB Regime

DEPV2 A3 MOMENTUM

by YuceSezar89
1 stars

This indicator calculates a momentum z-score using the rate of change of log returns over a specified period, normalized by the standard deviation of log returns over a longer window. It plots the z-score, the momentum state (positive, neutral, or negative), a

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A3 MOMENTUM

MTF Confluence Lean

by MuhammadMuhamid
1 stars

A long-only spot strategy that enters when all enabled gates agree, each on its own timeframe, 15 minutes by default: Supertrend bullish, RSI above a threshold and below a cap, Volume Flow Indicator above a level, and a support check. One reward-to-risk stop a

Strategy v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of MTF Confluence Lean

This indicator classifies each bar into a low, middle, or high volatility regime by comparing ATR as a percentage of close with the 33rd and 67th percentiles of that measure over a rolling sample window. It overlays optional background shading on the price cha

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Regime Tercile Dashboard

Key Levels

by Just-beyond-z
1 stars

An overlay that draws reference levels from several timeframes. It can show previous high and low levels, session levels, opening prices, swing lines and fair value gaps for 30-minute, 2-hour, 4-hour and daily frames, each with its own color and a maximum coun

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 2 weeks ago · None stated GitHub repository of Key Levels
1 stars

A research indicator, with no trade signals, that finds unusually large candles on the 5 and 15 minute timeframes and the chart timeframe, and studies how price returns to the other end of each one. A news candle must exceed a multiple of the largest recent ra

Indicator v6 Candlestick patternsVolatility & bands
Updated 2 weeks ago · None stated GitHub repository of News Candle Research

Visible Average Price

by AkashSasikumar47
1 stars

Calculates and plots the average price of all bars currently visible on the chart window. It collects price source values between the leftmost and rightmost visible bars and displays a single horizontal line representing the arithmetic mean. The plotted level

Indicator v6 Support & resistance Repaints
Updated 2 weeks ago · MIT GitHub repository of Visible Average Price

Parabolic SAR

by AkashSasikumar47
1 stars

A Pine v6 indicator that draws the Parabolic SAR as green circles on the price chart, using the built-in stop-and-reverse calculation. Three inputs set the starting acceleration factor, the increment and the maximum. The dots sit below price in an uptrend and

Indicator v6 Trend
Updated 2 weeks ago · MIT GitHub repository of Parabolic SAR

J 8

by moonyroy
1 stars

This strategy detects pin bars within an EMA volatility channel using custom user-defined types. It determines market direction based on price action relative to a 21-period EMA and a body-based ATR range. When a qualifying bullish or bearish pin bar prints in

Strategy v6 Candlestick patternsMoving averages
Updated 3 weeks ago · None stated GitHub repository of J 8

Overnight Range Breakout

by JACKZHOU0521
1 stars

This script tracks high and low levels established during a defined overnight trading session in exchange time. Once the overnight session completes, the indicator plots frozen horizontal high and low boundary lines on the price chart. When price closes above

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Overnight Range Breakout

SMC Sessions

by mccallister-dev
1 stars

The SMC Sessions indicator plots higher-timeframe context labels, swing structure breaks, confirmed sweeps, order-block proxies and fair value gap zones directly on the price chart for forex SMC and ICT analysis. It draws HTF pullback-continuation and reversal

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 5 weeks ago · None stated GitHub repository of SMC Sessions

Kernal Cipher Strategy

by kdricha0602
1 stars

Kernal Cipher Strategy is a price-chart overlay that backtests the Kernal Cipher confirmed-bar signal engine. It enters long or short at the next bar's open when trend, regime, and oscillator filters agree, then exits on an adaptive ATR stop or an opposite sig

Strategy v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher Strategy

Moving Average (SMA)

by DEVfancybear
1 stars

The Moving Average (SMA) indicator calculates the simple moving average of close prices and plots it directly on the price chart. The length input sets the number of periods averaged, defaulting to 50 and ranging from 1 to 500. The lineColor input allows custo

Indicator v6 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of Moving Average (SMA)
1 stars

This indicator calculates a dynamic spine midline and adaptive cycles based on user-selected time intervals, dynamic step changes, or fractal distances. It processes price source movements against configured percentage thresholds to project adaptive cloud boun

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Golden Cloud

PineToolkit

by MoDarK-MK
1 stars

This library supplies shared pure helper functions for Pine Script indicators and strategies in the Pine Script Skill repository. It exports theme-aware color functions that return primary text, muted text, and panel background colors based on selected dark or

Library v6
Updated 8 weeks ago · MPL-2.0 GitHub repository of PineToolkit

TRAMA Cloud SIGIL

by dwightspitz
1 stars

A long-only strategy built on two TRAMA adaptive averages, a short one of 20 bars and a long one of 50 bars, each with its own source and optional timeframe. It buys when price crosses above the short average while that average is below the long one, or when t

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of TRAMA Cloud SIGIL

Webby RSI

by peterdmv
1 stars

The Webby RSI indicator calculates a momentum oscillator by measuring price distance to a 21 EMA in 50 ATR units. The value smooths into a 10 SMA histogram MA. It plots the absolute value as colored columns and the MA as a line in a separate pane. Inputs adjus

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of Webby RSI

Close On Chart

by Alaamo7
1 stars

Close On Chart is an introductory educational indicator that plots the closing price as a line overlay directly on the main price chart. Created as a basic Pine Script v6 exercise, it illustrates fundamental script declaration, overlay configuration, and price

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Close On Chart

Dynamic MAs ZSCORE

by vedkanani123
1 stars

A separate-pane indicator that takes a selectable moving average of price, converts it to a Z-score over a lookback, and draws it against dynamic standard deviation bands with separate positive and negative multipliers. It can be read as a trend-following sign

Indicator v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of Dynamic MAs ZSCORE
1 stars

A trend strategy on the price chart based on an ATR chandelier trailing line with a five-level trend state that marks warning and danger zones as price nears the line. A flip needs a minimum candle body. The multiplier can stay fixed or adapt using a simple me

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Chandelier Flip Radar

v39b Live Adapt

by syrilj
1 stars

A long strategy for one-hour or two-hour charts based on structure and volume-price analysis. Side is set by price being inside the value area and at or above the point of control, with an optional higher-timeframe Heikin-Ashi MACD filter. Position size comes

Strategy v6 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of v39b Live Adapt

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