Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 34)

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

1 stars

This indicator clusters confirmed pivots into support and resistance levels, scoring each by touch count and keeping the strongest per side. A signal appears when price tests a level that has held before, closes back away from it with a rejection candle, and a

Indicator v6 Support & resistanceTrend
Updated 2 months ago · Custom licence GitHub repository of Reactive Levels Signal Engine
1 stars

This indicator implements an ICT and SMC decision engine directly on the price chart. It calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through prem

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow - FVG CE + TP Tiers

Buddha Money Flow Classic

by DarthBuddha
1 stars

A separate-pane volume indicator that reads TradingView footprint data to plot buy, sell and total volume per bar. Columns can be kept above zero for readability, and a cumulative volume delta line can run continuously or over a chosen window. A summary table

Indicator v6 Volume
Updated 3 months ago · MIT GitHub repository of Buddha Money Flow Classic

Range Detect Breakout

by tthanhvu002sgu
1 stars

Detects compressed ranges on the price chart and marks breakout points with triangles at the range high and low. A range is flagged when the recent high-low span is small against its longer average and the bars overlap enough. A daily EMA, default 100 periods,

Indicator v6 BreakoutSessions & time
Updated 3 months ago · None stated GitHub repository of Range Detect Breakout

Fusion Cipher Strategy

by shahzaib-574
1 stars

Fusion Cipher Strategy is an overlay strategy that scores wave momentum, money flow, VWAP, RSI, Stochastic RSI, ADX, and divergence conditions before opening trades. It enters long when the composite score meets a minimum and the wave is below a pullback thres

Strategy v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Fusion Cipher Strategy

GEKO Strategy

by grzegorzkowalskigk-jpg
1 stars

This strategy backtests a Candle Range Theory model on the price chart, with variants that also require a CVD divergence, an absorption candle, or both. Entries can be taken on a midline retest, with the stop placed using an ATR buffer. Risk is sized as a perc

Strategy v6 SMC / ICT / price action
Updated 3 months ago · Custom licence GitHub repository of GEKO Strategy

Session Extension Bands

by abhinaynatraj
1 stars

An indicator that projects how far price has typically extended beyond the prior session's close, using a rolling lookback of up to 500 days. The London projection is anchored to the Asia close and the New York projection to the London close, with boxes and pr

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Extension Bands

Keltner Channels

by majohnst
1 stars

This indicator calculates and plots multi-band Keltner Channels directly on the price chart. It projects a central moving average alongside four upper and four lower channel bands spaced at incremental multipliers of the selected volatility range. Users can to

Indicator v6 Volatility & bandsMoving averages
Updated 4 months ago · None stated GitHub repository of Keltner Channels
1 stars

This indicator identifies market structure and price imbalances directly on the price chart using smart money concepts. It tracks pivot points to label higher highs, higher lows, lower highs, and lower lows, while plotting break of structure and change of char

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator

Swing OTE

by jchi18
1 stars

An overlay that detects swing points on a chosen structure timeframe and plots them on any chart. Major and minor swings are independent, each with its own strength setting, structure labels (higher high, higher low and so on) and optional zig-zag. Swings prin

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Swing OTE

TTM Squeeze Box

by riegodavid-git
1 stars

An overlay indicator that draws a box around each squeeze period. A squeeze starts when the Bollinger Bands move fully inside the Keltner Channel. While it lasts, a border-only box grows to follow the highest high and lowest low, and it is left on the chart wh

Indicator v6 Volatility & bandsBreakout
Updated 4 months ago · None stated GitHub repository of TTM Squeeze Box
1 stars

An indicator for the price chart that draws intraday levels for Nasdaq futures by combining a volatility-index implied one-day move from the cash open with an initial balance extension. The blend can be a midpoint, maximum extension or minimum conservative mod

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Intraday Hold Levels (VIX + IB)

Dynamic Support Line

by rubbermetal
1 stars

Dynamic Support Line plots a composite moving average built by averaging six moving average types, then smoothing the result, with upper and lower bands set by a standard deviation multiplier. The fill turns green when price is above the mid line and red below

Indicator v6 Moving averagesVolatility & bands
Updated 4 months ago · MPL-2.0 GitHub repository of Dynamic Support Line

This short-only scalping strategy combines multi-timeframe analysis to identify panic selling opportunities. It uses higher-timeframe data (15-minute by default) to establish a downtrend context characterized by strong bearish candles with minimal lower wicks.

Strategy v6 TrendCandlestick patterns
Updated 4 months ago · MIT GitHub repository of Doc04 Greed Panic Scalper - Project Adapted
1 stars

Draws a customisable horizontal price line on the chart that follows the current price, with an optional secondary line. Colour can be fixed or follow rising and falling candles, and style, thickness, length and extension are adjustable. An optional synthetic

Indicator v6 Repaints Archived
Updated 5 months ago · None stated GitHub repository of Custom Synthetic Smooth Price Line

NFP Open Price Levels

by kvmafthab-pixel
1 stars

NFP Open Price Levels plots price levels associated with Non-Farm Payroll (NFP) news releases directly on the main price chart. The indicator draws horizontal lines and text labels at designated NFP open prices, allowing traders to track key macroeconomic even

Indicator v6 Support & resistanceSessions & time
Updated 5 months ago · Custom licence GitHub repository of NFP Open Price Levels
1 stars

An overlay toolkit for crypto charts that combines a volume profile with value area, an anchored VWAP with deviation bands, EMA 50 and 200 trend lines, a higher-timeframe EMA bias, and an order flow proxy built from lower-timeframe delta, relative volume and c

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v3 Precision

Renko MACD Futures Long Only

by PETERSAMUELOPS12
1 stars

A long-only futures strategy that simulates Renko bricks on a normal time chart and calculates MACD on the brick closes, which filters out time-based noise. A bullish MACD crossover on the bricks opens a long when price is above a trend SMA by a buffer. Exits

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of Renko MACD Futures Long Only

BVortex XAUUSD 1H

by Alberto082544
1 stars

This strategy trades XAUUSD on the one-hour chart. It builds a scaled Vortex oscillator from directional movement and flags bars that leave an upper or lower extreme with a matching candle. Entries also need ADX at or above a set minimum and a swing-pivot tren

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex XAUUSD 1H

Trend Pullback Indicator

by Chovy-King
1 stars

An overlay that looks for pullbacks within an established trend using three EMAs (20, 60 and 144) that must be stacked in order and spread apart by an ATR multiple, with a rising or falling fast EMA and no recent crossover between the fast and middle lines. A

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Trend Pullback Indicator
1 stars

A futures strategy for 30-minute charts that fades extreme moves away from a daily-reset VWAP. It looks for price beyond a configurable number of standard deviations from VWAP, a short RSI in oversold or overbought territory, and an ADX reading below a maximum

Strategy v6 Mean reversionSupport & resistance
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Mean Reversion Strategy

A separate-pane indicator that combines DMI, ADX, MACD and a squeeze signal. It plots plus and minus directional indicators with a selectable smoothing type (RMA by default) and an ADX line with an adjustable key level, and shades the background by trend direc

Indicator v6 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Directional Movement Index and ADX

Fair Value Gaps 2026-2

by mikeyhu70
1 stars

This indicator finds Fair Value Gaps, the price gaps left between three consecutive candles, and draws them as zones on the price chart. Up to three sets can be shown: two on the chart or a higher timeframe and one from a lower timeframe. Each set has its own

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Fair Value Gaps 2026-2

Helion Trend Weave

by Focal-QuantAI
1 stars

An indicator on the price chart that draws a ribbon of moving averages, 8 by default, starting at a fast period and spaced by a fixed step. A volatility option compares a fast and slow ATR to stretch or shrink the periods between a floor and ceiling. It shades

Indicator v6 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of Helion Trend Weave
1 stars

A long-only calendar strategy for Bitcoin. At a chosen hour on Sunday it compares price with the price recorded at a chosen hour the previous Friday, and enters long when the weekend gain exceeds a minimum percentage. The position is closed at the Friday hour.

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of BTC Weekend Strategy

This indicator identifies Hammer and Inverted Hammer candlestick patterns overlaid directly on the price chart. It evaluates body proportions, upper wick lengths, and lower wick ratios against user-defined thresholds. To filter out low-volatility noise, candle

Indicator v6 Candlestick patternsVolatility & bands

Energy Block V11 Balanced

by shawnwong84
1 stars

The balanced preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected inde

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Balanced

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays technical indicators and staged dip-buying logic designed for Bitcoin market cycles. It incorporates a geometric mean indicator, multi-timeframe EMA bands, a customizable range filter, and supply and demand zones directly onto the price

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle

ORB Pullback

by Prat617
1 stars

This strategy identifies an Opening Range based on user-defined Eastern Time session parameters and waits for a breakout. Rather than chasing the initial move, it enters positions when price pulls back to retest the Opening Range boundary with volume and EMA t

Strategy v6 BreakoutMoving averages
Updated 7 months ago · MIT GitHub repository of ORB Pullback

This Pine Script is a strategy that performs tactical dollar cost averaging with periodic cash top-ups. It accumulates a fixed cash amount each bar and deploys the full pile at a bullish crossover above a simple moving average, provided the date is within the

Strategy v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Tactical DCA with Cash Top-up (Date Filter)

Supertrend 18/4.3

by trustdan
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It uses the built-in Supertrend with an ATR period of 18 and a multiplier of 4.3. It buys when the Supertrend turns to an uptrend and closes the position when it turns

Strategy v6 TrendVolatility & bands
Updated 9 months ago · MIT GitHub repository of Supertrend 18/4.3

Sweep + MSS

by Ahmed1926
1 stars

An overlay indicator that detects liquidity sweeps of recent pivot highs and lows and then looks for a market structure shift. A sweep is marked in a chosen colour, optionally filtered by ATR or percentage size, by a trend condition or by a wick-versus-cross r

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Sweep + MSS
1 stars

A chart-overlay trend filter that blends a slower smoothed moving average and a faster TEMA into one baseline, smooths it again with an EMA, and builds ATR bands around it. A close above the upper band sets a long regime, a close below the lower band sets a sh

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of TwinSmooth ATR Bands

SFA Structural Breaker v1

by genesisgrubio39
1 stars

A Pine library that imports the SFA Core library and exports one function returning ten values: upward and downward structure break flags, break zone top, bottom and middle, the origin zone top and bottom, whether the origin is bullish, an origin state and a w

Library v6
Updated 10 months ago · None stated GitHub repository of SFA Structural Breaker v1
1 stars

This strategy executes trades based on VuManChu-inspired WaveTrend signals combined with a 200 EMA trend filter and multi-timeframe confirmation from H1 and H4 charts. Entries are evaluated using WaveTrend oversold conditions, RSI, MFI, and an optional ADX fil

Strategy v6 Oscillators & momentumTrend
Updated 10 months ago · None stated GitHub repository of VMC Strat M15 Ultimate (ADX + Div)

CVD Strategy Export

by turnupdigital
1 stars

An indicator that plots cumulative volume delta as candles in a separate pane, using lower timeframe volume over a configurable anchor period. It draws dashed horizontal threshold lines at a set level above and below zero and adds hidden plots that keep the ch

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of CVD Strategy Export

Relative Strength Index

by yagyesh-bobde
1 stars

Calculates and plots the Relative Strength Index (RSI) oscillator in a separate pane with overbought and oversold visual fills. It includes an optional smoothing moving average supporting SMA, EMA, SMMA, WMA, VWMA, or SMA with Bollinger Bands. Additionally, it

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Relative Strength Index

Lab-Doi-03

by theteelek
1 stars

Lab-Doi-03 is a price-chart strategy that compares a 12-period and a 26-period exponential moving average requested from the daily timeframe. While the chart time is inside the start and end dates and the fast average is above the slow average, it records an i

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-03

MACD Crossover

by Studentcodee
1 stars

This strategy executes automated trades based on the interaction between the MACD line and its signal line. It calculates the difference between two exponential moving averages and a signal line to monitor momentum shifts. The strategy enters a long position w

Strategy v6 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of MACD Crossover
1 stars

A long-only strategy that enters when a fast simple moving average crosses a slow one, using the cross function so either direction of crossing can trigger the entry. This version uses shorter default lengths than its sibling script. Each open position gets a

Strategy v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Profit and Stop Loss Strategy
1 stars

This strategy uses 10, 50, and 200 period EMAs on the price chart to filter for bullish and bearish trend signals with a confirmation candle. It calculates position size based on a user-set risk percentage of equity divided by the distance to a stop price deri

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Reg T Margin Stock Strategy

蜡烛图形态

by fuyuanyuan
1 stars

This overlay indicator classifies candlestick shapes using body, wick, and range sizes, then filters them with volume, RSI, MACD, and exponential moving averages. A hammer needs a long lower wick, a small bearish body, RSI below 30, and elevated prior volume.

Indicator v6 Candlestick patternsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 蜡烛图形态

Forex Heatmap

by ivansoft
1 stars

An indicator that shows a table of currency pair data in a separate pane for a list of currency codes, such as EUR, USD, AUD and GBP. In cross rates mode it shows exchange rates between the currencies, coloured by the direction of the latest change. In heat ma

Indicator v6 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Forex Heatmap

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