Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 41)

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

Moving Average

by SiegerTerpstra
5 stars

This indicator calculates a simple moving average as the arithmetic mean of a chosen price source over a set length. A second averaging pass can smooth the result, and an offset shifts the calculation window. An indicator timeframe input selects the data timef

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Moving Average

AG Momentum Breakout

by eltonaguiar
4 stars

AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG Momentum Breakout

MTF MA Bands

by InNoobWeTrust
4 stars

The indicator calculates and plots up to five multi-timeframe moving average bands directly on the price chart. Each band is constructed from moving averages computed across user-defined timeframes, such as current chart, 5-minute, 30-minute, 4-hour, and daily

Indicator v6 TrendMoving averages Repaints
Updated 2 days ago · None stated GitHub repository of MTF MA Bands
4 stars

This indicator plots a Chandelier Exit trailing stop on the price chart. It sets a long stop from the highest high over the ATR length minus an ATR multiple, and a short stop from the lowest low plus that multiple. Each stop only moves in the favorable directi

Indicator v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Chandelier Exit [trugurpala]

订单流分析

by YooooungLee
4 stars

This strategy evaluates order flow by combining volume dynamics and price deviation relative to the Volume Weighted Average Price (VWAP). It enters long trades when trading volume exceeds a relative threshold, price moves significantly above VWAP, net volume p

Strategy v6 VolumeOscillators & momentum Repaints
Updated 10 months ago · Apache-2.0 GitHub repository of 订单流分析

Stats Table

by degenview
3 stars

Displays a statistical summary table pinned to the top right of the price chart. It calculates key metrics including ATR percentage relative to price, high-low range percentage over a configurable bar count, relative volume compared to its simple moving averag

Indicator v6 Screeners & dashboardsTrend
Updated 2 days ago · GPL-3.0 GitHub repository of Stats Table

TQQQ ORB v1

by yalili8521
2 stars

Calculates the opening range during the initial minutes of regular trading hours and triggers breakout trades directly on the price chart. Long positions enter when price closes above the opening range high, while short entries trigger on closes below the open

Strategy v6 BreakoutSessions & time
Updated 9 days ago · None stated GitHub repository of TQQQ ORB v1

Envelopes

by piecioshka
2 stars

Envelopes is an overlay indicator that plots percentage bands around a simple moving average. It calculates a baseline SMA using a configurable length and derives upper and lower envelope boundaries shifted by a user-defined percentage deviation. The script pl

Indicator v6 Moving averagesVolatility & bands
Updated 12 days ago · MIT GitHub repository of Envelopes

PVSR Volume MP

by midngtpickle
2 stars

PVSR Volume MP calculates and displays volume bars categorized using Price Volume Spread Analysis in a separate indicator pane. It highlights climax volume, above-average volume, and regular volume based on configurable lookback windows and multipliers. The sc

Indicator v6 Volume
Updated 4 weeks ago · Custom licence GitHub repository of PVSR Volume MP

Oscillator

by TamTH-Dev
2 stars

Oscillator plots a multi-component momentum indicator in a separate pane, combining WaveTrend, Money Flow Oscillator (MFO), and VWAP-based metrics. It tracks overbought and oversold market conditions using adjustable horizontal threshold levels. The script cal

Indicator v6 Oscillators & momentumDivergence
Updated 6 weeks ago · None stated GitHub repository of Oscillator
2 stars

The indicator calculates a weighted composite relative strength score across short, mid, and long-term Rate of Change (ROC) horizons alongside RSI for up to eight customizable symbols. Users can measure raw momentum or compare performance relative to a selecte

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · Custom licence GitHub repository of Relative Strength Heatmap Vantrade
2 stars

The Liquidity Sweep Hunter indicator identifies liquidity sweeps on swing highs and lows. It detects wick breaks or retests that sweep through swing levels using ATR-based wick filtering. Bullish and bearish sweeps are labeled and colored on the chart. Active

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Liquidity Hunter | AlphaScript
2 stars

IPO Day Anchored VWAP calculates a Volume Weighted Average Price anchored to the first available bar on a chart, representing an asset's initial public offering or historical debut. It plots the anchored VWAP line on the main price chart alongside an anchor la

Indicator v6 Moving averagesSupport & resistance
Updated 3 months ago · Apache-2.0 GitHub repository of IPO Day Anchored VWAP

Lakshmi Strategy v2

by voletiramu
2 stars

The Lakshmi Strategy v2 automatically computes daily price zones from previous candle bodies using body width and wick factors then overlays them on the chart. It generates long signals when VPA close positions confirm at zone levels with fallback stop losses

Strategy v6 TrendSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Strategy v2

This indicator calculates Murrey Math lines to establish upper and lower boundary levels for grid trading setups. Rendered in a separate chart pane along with custom candle displays, it generates range boundaries tailored for automated grid strategies. Traders

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Murrey Lines Grid Range Plugin

Correlation Heatmap

by regalouisei
2 stars

This indicator calculates arithmetic returns across a user-defined list of tickers and visualizes their statistical correlation as a heatmap table in a separate pane. It samples returns at weekly or monthly timeframes aligned with the chart data. Users can con

Indicator v6 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Correlation Heatmap

Advanced Reverse Stochastic %J

by mushroom-men-Trading
2 stars

This indicator calculates the Stochastic %J oscillator alongside reverse-engineered price targets in a separate pane. It plots the current %J line against custom target, overbought, and oversold reference thresholds. Using an iterative algorithm, it calculates

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 9 months ago · None stated GitHub repository of Advanced Reverse Stochastic %J

My Indicator

by etnt
2 stars

My Indicator overlays timeframe-adaptive moving averages, candlestick pattern detections, and an information table directly on the price chart. Depending on the active chart timeframe, it plots key moving averages including daily SMAs and EMAs, intraday VWMA a

Indicator v6 Moving averagesCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of My Indicator
1 stars

This indicator calculates standard pivot points based on selected type such as Traditional or Fibonacci and anchor timeframe. It plots horizontal lines on the price chart for key levels including P, S1, R1, S2, R2 and higher. Main settings allow choosing pivot

Indicator v6 Support & resistance Repaints
Updated 2 days ago · Custom licence GitHub repository of Pivot Points Standard
1 stars

GitHub CSV Seed (Daily) imports external seed data from a designated public GitHub repository using the request.seed function. It calculates and plots the imported close price alongside a Simple Moving Average (SMA) derived from the seeded dataset directly on

Indicator v6 Moving averages
Updated 2 days ago · None stated GitHub repository of GitHub CSV Seed (Daily)

OI Bot Trades

by rellis3
1 stars

Draws trade zones from a text block pasted into a settings box, one box per zone, to the right of the last bar. Each zone shows an entry line coloured for buy or sell, a stop box, a take-profit box and a dashed second target, and zones can come from an options

Indicator v6 Support & resistance
Updated 2 days ago · None stated GitHub repository of OI Bot Trades

Swing 4h Majors

by nvolpe2007-cell
1 stars

A long-only strategy for large crypto pairs on 4-hour bars, forced to 4-hour data by default. An entry needs price above a 50-bar EMA with the 20-bar EMA above it, rate of change above a minimum, RSI crossing up through 50 but below an overbought limit, and an

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Swing 4h Majors

TD Pro levels - QCOM

by mphinance
1 stars

A static snapshot overlay for one stock that draws fixed horizontal lines and last-bar labels at price levels typed into the code. The lines include several scored magnet levels, a gamma flip level, an entry zone, a stop level, two target levels and expected m

Indicator v6 Support & resistance
Updated 3 days ago · Custom licence GitHub repository of TD Pro levels - QCOM

EMA Trend Signals

by jayadevrana
1 stars

This indicator calculates fast (9-period), slow (21-period), and trend (200-period) Exponential Moving Averages (EMAs) directly on the price chart. It plots all three EMAs along with a color-coded fill between the fast and slow moving averages. BUY signals tri

Indicator v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of EMA Trend Signals

SMC Confluence Hub

by skipp-dev
1 stars

SMC Confluence Hub aggregates Smart Money Concept zone states linked from external scripts with internal technical analysis. It combines EMA trend, RSI, MACD momentum, and Bollinger Bands mean-reversion metrics to generate a unified confluence score specifical

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 4 days ago · None stated GitHub repository of SMC Confluence Hub

Chandelier Exit

by pineforge-4pass
1 stars

This strategy calculates Chandelier Exit trailing bands using average true range (ATR) and highest high / lowest low lookback levels. It maintains a stateful direction variable that flips bullish when the close crosses above the short band level or bearish whe

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of Chandelier Exit

I_osc

by GammaExpansion
1 stars

Calculates and plots multiple standard technical momentum oscillators in a separate pane. The script computes built-in indicator calculations including Relative Strength Index (RSI), MACD, Stochastic Oscillator, Commodity Channel Index (CCI), Money Flow Index

Indicator v6 Oscillators & momentum
Updated 7 days ago · MIT GitHub repository of I_osc
1 stars

This indicator calculates dual Exponential Moving Averages alongside their slopes, normalized distance, and momentum to detect trend shifts on the price chart. It plots standard EMA crossovers while also assessing early warning conditions when EMAs approach ea

Indicator v6 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of Gelişmiş EMA Trend Analizi
1 stars

A long-only strategy that buys when the MACD line crosses above zero and closes the position when it crosses back below zero. MACD fast, slow and signal lengths and the price source are adjustable. It invests the full equity per trade, includes a commission se

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of MACD Zero-Line Strategy Long Only
1 stars

A strategy that uses a Hull-smoothed volatility band trend engine to set direction, then enters only on a pullback into the trailing trend level followed by a reclaim candle. Settings cover minimum bars since the flip, pullback tolerance in ATR, lookback and m

Strategy v6 TrendVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Adaptive Trend Pullback Continuation v1

DEPV2 A6 MTF HA GUCU

by YuceSezar89
1 stars

This indicator calculates Heikin Ashi scores for multiple multiplier timeframes relative to a signal timeframe. It computes HA power for 2x, 3x, 4x, and 6x the base timeframe (default 15 minutes) using custom HA candle logic and normalizes the close-open range

Indicator v6 TrendCandlestick patterns
Updated 13 days ago · None stated GitHub repository of DEPV2 A6 MTF HA GUCU
1 stars

A long-only crypto spot strategy that builds support and resistance zones from pivots on 5-minute, 15-minute, 1-hour and 4-hour charts and enters after price retests a support zone, within a set number of bars. Touch zones are sized by ATR or ticks, and a mini

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR Trend Final - Support Retest + MA R:R

Calculates support and resistance zones from confirmed swing pivot highs and lows, drawing them directly on the price chart. It counts how often price revisits these zones after confirmation and compares the touch frequency against evenly spaced round-number l

Indicator v6 Support & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Support & Resistance Touch Count
1 stars

A trend-continuation indicator that draws every historical trade on the price chart. Direction comes from a 50 and 200 EMA pair, optionally confirmed by the same EMAs on a higher timeframe. An entry appears when price closes back across the fast EMA after a pu

Indicator v6 TrendMoving averages Repaints
Updated 2 weeks ago · None stated GitHub repository of Trend Pullback Sniper

Top 10 Daily Candles

by moonyroy
1 stars

The Top 10 Daily Candles indicator calculates the relative size of each daily candle as the body range divided by the open price. It maintains a running array of the ten largest sizes and their corresponding dates. A table is overlaid on the top right of the c

Indicator v6 Screeners & dashboardsCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Top 10 Daily Candles
1 stars

Bmoon System Pivot Finder is an indicator that calculates mirrored pivot levels using P1 and P2 mirror levels with configurable multipliers and reference times. It plots lines on the price chart representing mirrored highs and lows based on open, high, low, an

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Pivot Finder

Volume & Key Levels

by MoDarK-MK
1 stars

This overlay indicator template plots previous-day and previous-week highs and lows and marks liquidity sweeps when price pierces a level on elevated volume and closes back inside. It builds a rolling volume profile with point of control and value area, plus a

Indicator v6 VolumeSupport & resistance
Updated 8 weeks ago · MPL-2.0 GitHub repository of Volume & Key Levels

Environment Check

by Alaamo7
1 stars

This indicator serves as a basic test to verify that the TradingView Pine Script v6 runtime compiles properly. It plots the closing price directly on the main price chart as a simple line overlay. The script contains no user-configurable inputs, generates no t

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Environment Check

Kalman Trailing Stop

by vedkanani123
1 stars

A price-chart indicator that builds a Kalman-filter baseline, optionally weighted by volume, and trails a stop at a standard-deviation distance, flipping when price penetrates it and the baseline slope agrees. A wick-and-sweep filter marks liquidity-sweep sign

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

Detects volume order blocks, zones formed when a fast and slow exponential average cross and volume builds around the extreme price, and draws them on the price chart as support or resistance lines. Six sensitivity tiers each give Tier 3 buy and sell markers w

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines
1 stars

A strategy that trades a 9 and 21 EMA crossover only in the direction of a higher-timeframe trend. The higher timeframe, daily by default, supplies an EMA and prior close from the previous completed bar, and a long needs the close above that EMA while a short

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MTF Trend Sovereign Strategy

An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an

Indicator v6 SMC / ICT / price actionSupport & resistance

Market Sessions

by DarthBuddha
1 stars

An indicator that tracks five regional trading sessions: Australia, Asia, India, Europe and the United States. Each session has built-in opening hours and its own colour and on or off switch. It draws session boxes with the open, high, low and close of the ses

Indicator v6 Sessions & timeScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Market Sessions
1 stars

This strategy combines VWAP bands with a multi-factor momentum scoring system to trade trend continuations. It enters positions during pullbacks or breakouts around VWAP when momentum criteria—derived from EMAs, ROC, RSI, MACD, and ADX—reach user-defined thres

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Fusion VWAP Momentum 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