Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 55)

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

Chaikin Money Flow (CMF)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Money Flow (CMF) to measure accumulation and distribution over a user-defined lookback period. It determines the money flow multiplier based on where the close falls within the bar's high-low range, multiplies it by volume

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Chaikin Money Flow (CMF)

Mini Screener

by jayadevrana
1 stars

Mini Screener is a multi-asset monitoring dashboard that displays price data and trend status for five user-selected symbols in an on-chart table. It calculates single-bar percentage price changes and checks whether each asset trades above or below an exponent

Indicator v6 Screeners & dashboardsTrend
Updated 4 days ago · MPL-2.0 GitHub repository of Mini Screener

SMC Imbalance Context

by skipp-dev
1 stars

SMC Imbalance Context is an indicator that overlays FVG zones, BPR zones, liquidity voids, and imbalance state labels on the price chart. It reads active states and mitigation details for bull and bear FVGs along with BPR and liquidity void data from the skipp

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Imbalance Context

Drawing Line Level Breakout

by pineforge-4pass
1 stars

A test strategy that draws a red horizontal line which follows a 20-period moving average by moving about a third of the distance each bar, and extends to the right. It goes long when the close crosses above that smoothed line and closes the long when the clos

Strategy v6 Moving averagesSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing Line Level Breakout

P Synthetic Conditional Calls

by GammaExpansion
1 stars

This indicator in Pine Script v6 calculates and plots three lines on a separate pane. It uses an input to choose between EMA or SMA of close over 10 periods for the main line. The second line applies RSI of close over 14 periods only when close exceeds open. T

Indicator v6 Moving averagesOscillators & momentum
Updated 7 days ago · MIT GitHub repository of P Synthetic Conditional Calls

A strategy meant for a 5-minute chart that detects a break of a delta-based level on a 15-minute context, waits for a retest from the correct side, then enters on a reclaim candle. Gates include estimated pressure rotation, candle body and close location, entr

Strategy v6 VolumeBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 8.0.2 Profile and Entry Fix
1 stars

A long-only strategy for crypto spot that builds support zones from pivot lows on a higher timeframe, 15 minutes by default, and watches the chart timeframe for a liquidity sweep below a swing low followed by a reclaim and a higher low. Reclaim confirmation ca

Strategy v6 Mean reversionSMC / ICT / price action

Pulse RSI

by vedkanani123
1 stars

A separate-pane oscillator built on a long-period RSI-style calculation with a default length of 55. Four selectable signal types are available: two trend variants, an oversold and overbought mode, and a custom long and short threshold mode. Threshold inputs s

Indicator v6 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Pulse RSI

VOB Birth Bar Study v1

by nishpa800
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1
1 stars

Reversal RSI Stochastic ATR is an indicator that prints a reversal label when RSI is beyond its oversold or overbought level and the stochastic K line crosses D inside its own extreme zone. On each signal it draws stop loss and take profit lines at an ATR mult

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Reversal RSI Stochastic ATR

SMC Confluence Engine v5

by shubhamtaywade82
1 stars

Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of SMC Confluence Engine v5
1 stars

Reads candle sequences and labels them as rally, base or drop phases, then flags four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Each pattern can be switched on or off. Bars can be coloured fully, only on detection, or not

Indicator v6 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Rally Base Drop Signals
1 stars

This indicator combines Volume Weighted Bands, a Hull Moving Average with Keltner Channels, and a Swing Profile directly on the price chart. It calculates volume-weighted trend lines, ATR volatility bands, and swing structures to plot dynamic support and resis

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

Bars per Day

by ivansoft
1 stars

This indicator calculates and plots the total number of bars that occurred during the previous day. It tracks daily boundaries by detecting changes in the day of the month, continuously counting bars between transitions. Whenever a new day begins, it stores th

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of Bars per Day
228 stars

This indicator plots dynamic support and resistance levels on the price chart. It detects pivot highs and lows using the pivot length and tracks touches to build strength-based levels. Support and resistance zones appear as colored boxes while lines mark key l

Indicator v6 Support & resistanceBreakout
Updated 3 months ago · None stated GitHub repository of Dynamic Support & Resistance
99 stars

This indicator calculates and plots the bar average price directly on the main price chart. It evaluates the arithmetic mean of each bar's open, high, low, and close values, matching standard TA-Lib average price implementations. The script contains no user-co

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of AVGPRICE: Average Price

SuperTrend & Pivots

by dcaoyuan
55 stars

This overlay indicator plots a SuperTrend line on the price chart using a fixed ATR length of 10 and a factor of 3. When the trend direction is up it draws a green line and a light green fill toward the candle midpoint; when down it draws a red line and a ligh

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of SuperTrend & Pivots
47 stars

This indicator calculates and plots the cumulative arithmetic mean of a selected price series from the very beginning of the chart history. It continuously sums non-null values and divides by the total count of valid bars seen so far. The user can adjust the i

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Cumulative Mean (CUMMEAN)
46 stars

This indicator overlays higher-timeframe candles, price traces, fair value gaps, and liquidity sweeps directly on the main price chart. It projects key high, low, open, and close levels using customizable trace lines to monitor structural reference points. As

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Sweep · CISD · FVG · Key Levels

This strategy trades Donchian breakouts on the price chart and sizes each unit from a percentage of equity. It allows long and short entries, places an ATR initial stop, trails with a chandelier stop, and can add units as price moves by a multiple of ATR, up t

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 24: Vol-Adjusted Targets

Commodity Heat Reversal plots score-based mean-reversion reversal markers on the price chart for commodity futures, aimed at the four-hour timeframe. It builds separate long and short heat scores from ATR distance to a mean moving average, ATR expansion, RSI e

Indicator v6 Mean reversionVolatility & bands
Updated 3 days ago · MIT GitHub repository of Commodity Heat Reversal [WavesUnchained]

This indicator automatically maps the current chart timeframe to an aligned higher timeframe to detect and draw ICT-style Fair Value Gaps (FVGs). It identifies bullish and bearish price imbalance zones and displays them as colored overlay boxes directly on the

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of TehThomas - Aligned Timeframe Fair Value Gaps

Heikin Ashi Delta Smoothed

by lunarticktrading
7 stars

This indicator calculates the difference between Heikin-Ashi close and open values to quantify directional candle spread. It smooths this delta value using a simple moving average and plots the resulting oscillator as a line in a separate pane. Traders can cus

Indicator v6 Oscillators & momentumCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Heikin Ashi Delta Smoothed
7 stars

This indicator combines a fast and slow exponential moving average crossover, an RSI filter, and a volume flow indicator into a weighted directional score. It draws an on-chart dashboard for those components and can plot buy or sell arrows when the score meets

Indicator v6 Screeners & dashboardsMoving averages
Updated 3 months ago · None stated GitHub repository of Scalping 3-Signal Dashboard v2
6 stars

This indicator plots session boxes, high-low ranges, and optional open lines for Asia, London, and New York sessions on the price chart. It detects breakouts when price crosses the prior session range. Inputs let users toggle visibility of boxes, open lines, b

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Capital41 Session Flow Simple v2

This research diagnostic draws a volume histogram and paired-node consensus structures on the price chart. It selects an immutable profile interval from the newest confirmed macro broadening wall, then allocates each 15-minute bar's volume across fine, base, a

Indicator v6 VolumeSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Automatic Local Node Edge Consensus Diagnostic
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]

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 12 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 6 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)
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)

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 4 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 4 days ago · None stated GitHub repository of SMC Lifecycle Private

Drawing UDT Alias Identity

by pineforge-4pass
1 stars

This strategy stores a line inside a user-defined type and keeps an alias to the same drawing. It plots an 18-period simple moving average as a line on the price chart and reads that line's end price back through the alias. When the level is ready, it enters o

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing UDT Alias Identity

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 7 days ago · MIT GitHub repository of P Ver History Literal

A strategy that replaces the break detector of its earlier stage with a CUSUM change point test on the chart timeframe, using a lookback, threshold and slack setting. After a change point it waits for a retest of the regime zone from the correct side, a reclai

Strategy v6 BreakoutVolume Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 9 Change Point and Volume Pressure
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 13 days ago · None stated GitHub repository of DEPV2 C4 · Ayrışma Takibi

MTF Oscillator Suite

by MuhammadMuhamid
1 stars

A separate-pane indicator that bundles RSI, ADX with DI lines, Volume Flow Indicator and MACD modules, each with its own timeframe, colors and length settings. The RSI module adds bands and a smoothing average with Bollinger envelopes. Modules can share one pa

Indicator v6 Oscillators & momentumVolume
Updated 13 days ago · None stated GitHub repository of MTF Oscillator Suite
1 stars

A price-chart indicator that draws a CCI-driven trailing line. An ATR buffer above the high and below the low is held as a ratcheting stop, and the line switches sides when the CCI crosses zero. The line is coloured by CCI sign or, with the original colouring

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Pymander's EZ Trend Alignment
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1 Tick

ROC MA Slope

by rubbermetal
1 stars

ROC MA Slope plots two smoothed rate of change lines, a fast and a slow one, in a separate pane. Smoothing can be SMA or EMA, and each line has its own slope measured with linear regression. Optional layers include a histogram, fills, acceleration coloring, a

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of ROC MA Slope

SMC Production Confluence Engine

by shubhamtaywade82
1 stars

Combines smart money concepts with a multi-timeframe stack on the price chart. A 4-hour EMA bias, 1-hour liquidity sweeps and 15-minute order blocks and fair value gaps feed a confidence score, with a minimum score, signal cooldown and an entry mode setting. O

Indicator v6 SMC / ICT / price action Archived
Updated 5 months ago · None stated GitHub repository of SMC Production Confluence Engine

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