Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 60)

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

Session Stat Map

by TamaraKGreen
46 stars

This indicator maps session ranges, opening prices, and derived projections directly onto the price chart. It calculates high and low boundaries during a defined reference session, such as pre-market hours, and overlays session open lines, range boxes, standar

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Stat Map
16 stars

This strategy enters long or short when a fast exponential moving average crosses a slow one, then sizes each unit from a percentage of equity and an ATR-based initial stop. It can add positions as price moves by a multiple of ATR, up to a set unit limit, and

Strategy v6 TrendMoving averages
Updated 12 months ago · None stated GitHub repository of Seykota Alt 2: EMA Crossover

Elliott Wave Radar identifies and validates Elliott Wave impulse (1-5) and corrective (A-B-C) patterns using a dual-degree ZigZag pivot engine with an ATR noise filter. It checks structural rules and Fibonacci guidelines, scoring counts and projecting price ta

Indicator v6 TrendSupport & resistance
Updated 3 days ago · MIT GitHub repository of Elliott Wave Radar [WavesUnchained]

VP Source Bundle Exporter

by 345-strategies
5 stars

This overlay indicator is a headless export aid for a frozen Volume Profile source bundle. It performs no profile calculation and draws no chart objects. It checks that the chart is a standard ES or MES futures contract matching a typed ticker and a 0.25 minti

Indicator v6
Updated 4 days ago · MPL-2.0 GitHub repository of VP Source Bundle Exporter

This strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of GBP/USD Market Structure [trugurpala]

MirPapa Library ICT

by alvinng214
2 stars

MirPapa Library ICT is a Pine Script utility library designed to support Inner Circle Trader (ICT) analysis across trading scripts. It exports custom data structures, including BoxData and HTFCache, to manage higher-timeframe historical price data and track zo

Library v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of MirPapa Library ICT

Market Cap Landscape 3D

by regalouisei
2 stars

This indicator projects a three-dimensional surface map and wireframe landscape representing cryptocurrency market capitalization directly onto the price chart. It renders a customizable grid with gradient surface strips, wireframe lines, markers, peak volume

Indicator v6 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Market Cap Landscape 3D

Ease of Movement (EOM)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Ease of Movement (EOM) oscillator in a separate chart pane. It evaluates the relationship between price midpoint changes and trading volume relative to the bar's high-low range to quantify how easily price moves. The raw

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ease of Movement (EOM)
1 stars

This mean-reversion strategy implements Larry Connors' 2-period RSI system. It enters long positions when price trades above a long-term simple moving average (default 200) and the 2-period RSI drops below 10. Optional short positions enter below the trend ave

Strategy v6 Mean reversionOscillators & momentum
Updated 4 days ago · MPL-2.0 GitHub repository of RSI-2 (Larry Connors) [JR]

SMC Profile Context

by skipp-dev
1 stars

SMC Profile Context is an indicator that operates as a decision-support companion overlay in a separate pane. It imports pre-calculated fields from an external micro-profiles library to display ticker quality metrics and market context. The indicator visualize

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 days ago · None stated GitHub repository of SMC Profile Context

ES point-value 9/21 SMA cross

by pineforge-4pass
1 stars

This strategy isolates ES futures point-value PnL scaling using a nine-period and twenty-one-period simple moving average cross. It enters one long contract when the fast average crosses above the slow average and closes that long when the fast average crosses

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of ES point-value 9/21 SMA cross

P_err_input_in_function

by GammaExpansion
1 stars

This v6 indicator defines a function f that accepts an integer input and plots the function result. The plot appears on a separate pane. No trading signals or position rules exist. The script tests input handling inside functions and draws a constant value on

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

A strategy that uses ADX to decide between two sub-strategies. In ranging conditions it fades asymmetric Bollinger Band extremes with a 200 EMA trend filter. In trending conditions it trades Donchian channel breakouts, protected by optional volume, candle rang

Strategy v6 Mean reversionBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Hierarchical Trading System v6 Fakeout Protected

DEPV2 DEBUG S0

by YuceSezar89
1 stars

DEPV2 DEBUG S0 monitors 20 major cryptocurrencies on Binance including BTC, ETH, SOL, XRP, DOGE and others. It generates signals using four methods: TREND, MOMENTUM, VOLATILITY and VOLUME. Users choose from same-time confirmation, sequential confirmation or au

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S0
1 stars

This indicator plots mirrored price and parallel lines on the chart. It defines a base line using two input points and calculates the maximum deviation for a price channel by reflecting the close price around the base line. Users can apply the reflection to th

Indicator v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirrored Price & Parallel Lines

Terminal Velocity Stop

by vedkanani123
1 stars

An ATR trailing stop drawn on the price chart. The stop chases a target set at a multiple of ATR below price in an uptrend and above price in a downtrend, but its travel per bar is capped at a terminal velocity setting measured in ATR, 0.3 by default. This kee

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Terminal Velocity Stop
1 stars

Finds volume order blocks, zones where heavy volume built up around a moving average crossover, and draws them on the price chart as support or resistance areas. Six sensitivity tiers each produce buy and sell tier signals with mutually exclusive handling, plu

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Full HW Coincidence

Support and Resistance

by rubbermetal
1 stars

Support and Resistance finds pivot highs and lows using configurable left and right bar counts and keeps the most recent levels, merging nearby pivots into one zone and counting touches. Zones are drawn as boxes and lines with optional labels, plus break and t

Indicator v6 Support & resistance
Updated 4 months ago · MPL-2.0 GitHub repository of Support and Resistance

Supertrend

by shubhamtaywade82
1 stars

Plots the built-in Supertrend line on the price chart as a single blue line. It has two settings, the ATR length with a default of 10 and the ATR multiplier with a default of 3. The line trails price and flips side when price closes through it. There are no al

Indicator v6 TrendVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Supertrend

Rainbow EMA & SMMA

by ymlee1104
1 stars

This script plots a rainbow ribbon overlay composed of eight Exponential Moving Averages ranging from 10 to 50 periods alongside two Smoothed Moving Averages on the main price chart. It evaluates complete moving average alignment across all calculated lengths

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Rainbow EMA & SMMA

Elder Force Index

by ivansoft
1 stars

Plots the Elder Force Index in a separate pane: the change in close multiplied by volume, smoothed with an exponential moving average of 13 bars by default. A zero line separates positive from negative readings. The script raises an error when the data vendor

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Elder Force Index
228 stars

This strategy enters long when a faster moving average crosses above a slower one and short when it crosses below, unless long-only mode is on. An optional volume filter requires volume above a 20-bar average times a multiplier. Exits use a percentage stop los

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of MA Cross Strategy Template

Bias (BIAS)

by mihakralj
99 stars

This indicator calculates Bias as the relative deviation of a chosen source from its simple moving average, using (source minus average) divided by the average. It maintains a circular buffer and running sum so the average updates bar by bar, and it refuses a

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bias (BIAS)
47 stars

Ehlers Phasor Analysis calculates the phasor angle, derived cycle period, and market trend state using John Ehlers' cycle analysis techniques. It uses correlation against cosine and sine waveforms over a customizable lookback period to extract in-phase and qua

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Phasor Analysis (PHASOR)
16 stars

This strategy enters long or short on Donchian channel breakouts and adds units only while RSI remains beyond its momentum thresholds. Size is based on a percentage of equity per unit, up to a set maximum. An ATR initial stop and a chandelier trail manage open

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 30: Momentum Pyramid

Exhaustion Scanner is an overlay indicator that measures overextension and reversal risk by evaluating price stretch, momentum exhaustion, and candle triggers. It combines distance from moving averages and Bollinger Bands with momentum oscillators, divergence

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Exhaustion Scanner [WavesUnchained]
7 stars

The 7M Multi-Factor Momentum Scoreboard evaluates real-time market momentum across multiple criteria and displays the results in an overlay dashboard panel on the price chart. It tracks anchored percentage price moves based on pre-market, regular open, or post

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of 7M Multi-Factor Momentum Scoreboard

VP Sparse Visual Fixture

by 345-strategies
5 stars

This indicator is a visual-design fixture that does not calculate a volume profile. It draws one manually entered, already validated value-area edge, either VAH or VAL, as a thin price zone four ticks wide on the chart. The fixture stays off until enabled, and

Indicator v6 Support & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP Sparse Visual Fixture
4 stars

This strategy evaluates EMA crossovers filtered by a long-term 200-period EMA trend filter designed for Gold futures and XAUUSD. It enters a long position when a fast EMA crosses above a slow EMA while price is above the 200 EMA. If long-only mode is turned of

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Gold GC/XAUUSD Strategy [trugurpala]

This indicator plots Fair Value Gaps, Order Blocks and Threeple patterns on the price chart based on ICT concepts. It draws boxes and lines for potential supply and demand zones using higher-timeframe data across multiple charts. Users set box size (open/close

Indicator v6 SMC / ICT / price actionSupport & resistance

Market Sessions & Viewer Panel tracks and visualizes major global trading sessions, such as Tokyo, London, New York, and Sydney, on the main price chart. It highlights active market intervals using customizable box shapes, background colors, and labels, while

Indicator v6 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Market Sessions & Viewer Panel [MUQWISHI]

Elder's Force Index (EFI)

by mushroom-men-Trading
2 stars

The Elder's Force Index indicator calculates buying and selling pressure using price changes and volume. It computes a raw force as the difference in price multiplied by volume, then applies exponential moving average smoothing. The primary input is the length

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Elder's Force Index (EFI)

Session Filter

by jayadevrana
1 stars

Session Filter is an overlay indicator that plots a fast and a slow exponential moving average on the price chart. It marks a buy when the fast average crosses above the slow average only during a user-defined trading session, and it marks crossovers outside t

Indicator v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Session Filter

SMC Profile Engine

by skipp-dev
1 stars

SMC Profile Engine is a Pine Script library designed to build custom volume profiles on TradingView. It provides structured data types including Bucket, ProfileConfig, and Profile to manage volume calculations across price levels. The library facilitates track

Library v6 VolumeSupport & resistance Repaints
Updated 4 days ago · None stated GitHub repository of SMC Profile Engine

Gyroscope CMO Median

by pineforge-4pass
1 stars

A long-only strategy that pairs a rolling median line with the Chande Momentum Oscillator. It enters long when price crosses above the median while the oscillator is above an entry level. It exits when price drops below the median, the oscillator falls under a

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Gyroscope CMO Median

P_err_positional_after_named

by GammaExpansion
1 stars

This indicator serves as a minimal syntax test fixture designed for parser validation in Pine Script version 6. It executes in a separate pane and plots the current close price using a named argument structure. Because it is a basic test script, it does not ca

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_positional_after_named
1 stars

A long-only strategy adapted from an academic study of intraday reversal. It measures the return over a ranking period given in minutes, skips a bar, and buys when that return falls in the lowest percentile of its own recent history, then holds for a set numbe

Strategy v6 Mean reversionScreeners & dashboards
Updated 8 days ago · GPL-3.0 GitHub repository of Intraday Reversal Feasibility Check

DEPV2 DEBUG S1

by YuceSezar89
1 stars

This multi-asset crypto indicator monitors up to twenty symbols using four distinct analytical pillars: trend, momentum, volatility, and volume. It generates trade signals based on configurable modes including single-pillar execution, simultaneous confluence,

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S1
1 stars

This indicator plots a dynamic trend level on the main price chart based on an interactively chosen anchor time and price level. It calculates the vertical offset between the selected price level and a moving average at the anchor time, projecting this dynamic

Indicator v6 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Moving Average Trend Line
1 stars

A simple exponential moving average crossover indicator drawn on the price chart. It plots a fast EMA and a slow EMA, 20 and 50 periods by default, and colors the fast line green when it is above the slow one and red when below. BUY and SELL labels mark the cr

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Trend Direction Buy/Sell Signals
1 stars

Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Multiples HW Coincidence

Swing Trade ATR

by rubbermetal
1 stars

Swing Trade ATR is an indicator that marks Swing L and Swing S labels when a 9-period EMA crosses a 21-period EMA, with a fill between them. After each signal it draws stop loss and take profit lines at ATR multiples from the signal close and clears them when

Indicator v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of Swing Trade ATR
1 stars

A Supertrend strategy that enters on the trend direction, filtered by a 4-hour Supertrend, relative volume and ADX strength. It exits at a percentage profit target, with an optional trailing offset, and a time-based exit that closes at breakeven after a maximu

Strategy v6 Trend Repaints Archived
Updated 5 months ago · None stated GitHub repository of Supertrend2 Target No-SL Dashboard
1 stars

Educational example based on the Pine documentation that estimates an empirical cumulative distribution of a source over a rolling window. It keeps a queue of recent values, computes the share of values below each of a chosen number of steps, and shows the res

Indicator v6
Updated 1 year ago · None stated GitHub repository of Empirical Distribution

MACD Strategy

by TradersPost
228 stars

This overlay strategy is built around MACD inputs for a fast average, a slow average, and a signal line. Comments say the script keeps MACD values available and can draw a histogram and zero line in a separate pane, with an optional overlay on price. Settings

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

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