Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 35)

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

The Inverse Distance Weighted Moving Average calculates a moving average where historical prices are weighted according to their pairwise absolute distances across a user-defined lookback window. Plotted directly on the price chart, the indicator tracks trend

Indicator v6 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Inverse Distance Weighted Moving Average

This indicator calculates momentum setups based on the Relative Strength Index (RSI) and plots in a separate pane. It offers multiple scanning modes such as Continuous Break, Continuous Retracement, Flip Break, Flip Retracement, and both regular and hidden div

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Indicator
257 stars

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint

TradersPost Trade Replay

by TradersPost
228 stars

This strategy replays trades exported from TradersPost on the price chart by executing entries and exits at exact timestamps and prices from trade history. It uses fixed position sizing of 1 with initial capital 10000 and commission 0.62. The script draws no e

Strategy v6 Repaints
Updated 3 months ago · None stated GitHub repository of TradersPost Trade Replay

Adaptive Price Channel

by mihakralj
99 stars

This indicator calculates an adaptive price channel by independently smoothing bar highs and lows using exponential moving averages. It plots an upper band from smoothed highs, a lower band from smoothed lows, a yellow midpoint line, and a shaded channel area

Indicator v6 Volatility & bandsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Adaptive Price Channel
92 stars

Calculates fast and slow Simple Moving Averages to display a visual rainbow ribbon on the price chart. The indicator fills multiple gradient bands between the dual moving averages and adds visual effects like glowing SMA halos, animated palette shifts, and reg

Indicator v6 Moving averagesTrend
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Rainbow Wave 20/40

BTC True Scalp

by iamrichardD
57 stars

This strategy runs an ultra-fast MACD in a separate pane to capture short-term momentum scalps. It filters trade entries using micro-trend direction, volume spikes, and candle body strength within specified session hours. Positions default to two percent of eq

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC True Scalp

EMA

by dcaoyuan
55 stars

This indicator calculates and plots three Exponential Moving Averages directly on the main price chart. It includes configurable inputs for fast, slow, and slowest moving averages, defaulting to 9, 21, and 36 periods based on bar close values. Traders can adju

Indicator v6 Moving averagesTrend
Updated 6 months ago · Apache-2.0 GitHub repository of EMA

This trend breakout strategy plots Donchian Channels consisting of upper, lower, and middle bands directly on the main price chart. Long positions enter when price touches the upper channel and pulls back to or below the middle band, placing a stop loss at the

Strategy v6 TrendBreakout
Updated 2 months ago · MPL-2.0 GitHub repository of Donchian Strategy - Dynamic TP, Fixed SL, 1% Risk, Daily Target

IB / ORB Live Stats

by TamaraKGreen
47 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 8 weeks ago · None stated GitHub repository of IB / ORB Live Stats
47 stars

This indicator calculates and plots an Andrews' Pitchfork channel directly on the price chart using geometric projections. It computes a central median line along with parallel upper and lower channel boundaries based on three historical anchor points specifie

Indicator v6 Support & resistanceTrend
Updated 8 months ago · MIT GitHub repository of Andrews' Pitchfork (AP)

Hyperfork Matrix

by blueprintresearch-dev
42 stars

This indicator draws an Andrews pitchfork on the price chart from three pivots chosen automatically or by time. It supports Original, Schiff, and Modified Schiff constructions, optional extra parallel levels, and forward or backward action and reaction lines.

Indicator v6 Support & resistanceTrend
Updated 2 weeks ago · None stated GitHub repository of Hyperfork Matrix

LoD Intraday Entry

by ChartsLector
41 stars

This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c

Indicator v6 Support & resistanceVolatility & bands
Updated 4 days ago · None stated GitHub repository of LoD Intraday Entry
29 stars

Zen Bar Range Projections calculates the Average Bar Range (ABR) over a user-defined lookback period and projects 0.5x and 1x measured move levels above and below the prior bar close. Users can choose between the current chart timeframe or a higher timeframe m

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections

This indicator defines a user type named point with float fields for x and y, then attaches a method that returns the Euclidean distance from the origin. It constructs one point at coordinates 3 and 4 and plots that method result in a separate pane under the t

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - method on user type
23 stars

Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA

Indicator v6 BreakoutVolume Repaints
Updated 4 weeks ago · Custom licence GitHub repository of Point-Clip Unified Indicator

Strategy Trades

by ferranbt
21 stars

Strategy Trades is a benchmark strategy script designed to test trade execution and account metric updates across continuous bars. It initiates a fixed-size long position on every even bar index and closes the position on the subsequent odd bar. In a separate

Strategy v6
Updated 7 weeks ago · MPL-2.0 GitHub repository of Strategy Trades

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices
16 stars

This Pine Script implements a trend-following strategy inspired by John Seykota's methods. It enters positions on Donchian channel breakouts using a longer lookback period of 55 bars and exits on shorter 10-bar signals. Volatility gating prevents adding to pos

Strategy v6 TrendMoving averages
Updated 12 months ago · None stated GitHub repository of Seykota Alt 13: Vol-Gated Adds

Alighten Pattern E

by alighten-dev
14 stars

Alighten Pattern E plots a zigzag through stored swing pivots on the price chart and scans recent pivot pairs for Pattern E long and short signals. When enabled, it marks those signals and draws OG rays from the related pivots. Users can limit the bar window,

Indicator v6 Support & resistance
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern E

Market Monitor 5m

by chris-c-thomas
14 stars

Market Monitor 5m is an intraday context overlay designed for 5-minute chart analysis. It calculates directional bias using exponential moving averages, VWAP, TTM Squeeze volatility state, NYSE TICK market breadth, and ATR volatility regimes. The script plots

Indicator v6 Screeners & dashboardsSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor 5m

Swing Strategy

by JoelPasapera
11 stars

This strategy executes trades based on specific days of the week. It opens a long position when the current day matches the primary day input and closes the position whenever the chart moves to a day other than the secondary day input. Settings allow traders t

Strategy v6 Sessions & time
Updated 5 months ago · Apache-2.0 GitHub repository of Swing Strategy
9 stars

Calculates volume-weighted average price anchored to automatically detected swing pivots, period starts, or a custom manual timestamp. It plots volume-weighted standard deviation bands with configurable multiples and measures price distance from VWAP in standa

Indicator v6 Moving averagesVolatility & bands Repaints
Updated 3 days ago · MIT GitHub repository of Anchored VWAP [WavesUnchained]

Nexural JMA

by JasonTeixeira
9 stars

Nexural JMA plots a Jurik moving average on the price chart. Length, phase, power, and source change the average. It scores momentum from rate of change, volume from a volume percentile, volatility from ATR, and trend strength from price distance to the averag

Indicator v6 Moving averagesOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of Nexural JMA

This strategy plots a fast and a slow moving average on the price chart and enters when their relationship flips, subject to an optional ADX filter. It goes long when the fast average is above the slow average and short when it is below, reversing an existing

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Crossing Moving Averages with ADX Filter

TR KAP Marker

by Enesp4rl4k
7 stars

This indicator overlays labels on a BIST equity price chart at bars whose time window contains a material KAP disclosure. Event times, titles, and categories come from a static snapshot written into parallel arrays when the recipe is generated, not from a live

Indicator v6
Updated 7 days ago · MIT GitHub repository of TR KAP Marker

Laguerre RSI

by lunarticktrading
7 stars

This indicator plots a Laguerre RSI oscillator in a separate pane. It offers a classic four-stage Laguerre filter on close, controlled by alpha, and an alternate mode that builds alpha from fractal-energy style filters on open, high, low, and close. Shaded fil

Indicator v6 Oscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of Laguerre RSI
7 stars

This indicator plots a double relative strength index in a separate pane. It computes RSI from the selected source and length, then calculates RSI of that RSI and combines them as twice the first RSI minus the second. A persistent state turns long above the lo

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Double Relative Strength Index - DRSI

This indicator analyzes order flow dynamics directly on the price chart by inspecting lower-timeframe intrabar data. It uses cumulative volume delta to tint the chart background according to market sentiment, and plots colored circle bubbles at exact price lev

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Deep Chart - Order Flow Bubbles
6 stars

Capital41 Confluence Core plots an EMA or SMA on the price chart and combines its direction with RSI, Williams %R, and a liquidity-sweep check into long and short confluence signals. Signal strictness is Strict, Standard, or Loose, which changes how far the os

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Capital41 Confluence Core

Forever Model v2.0

by alboogycOdR
6 stars

This indicator maps Smart Money Concepts (SMC) elements directly onto the main price chart. It detects Fair Value Gaps (FVGs), external range liquidity, and confirmation lines across automatic or manual higher timeframes. The script highlights key ICT trading

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Forever Model v2.0

TheStrat Setup Screener

by 345-strategies
5 stars

This indicator screens Rob Smith's TheStrat setups across six configurable timeframes for TradingView's Pine Screener. It classifies bars and exposes inside reversals, 2-2 reversals and continuations, failing 2s, range expansions, and outside bars as numeric p

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Setup Screener
5 stars

This indicator calculates and plots a virtual weekly candle structured as if the previous seven-day period finished yesterday relative to the current date. It queries daily price data to derive rolling weekly open, high, low, and close levels. Designed for ICT

Indicator v6 Candlestick patternsSMC / ICT / price action Repaints
Updated 7 months ago · MIT GitHub repository of Weekly candle closed yesterday
5 stars

This overlay indicator estimates a multivariate Kalman state from a chosen price source and draws the filtered result on the price chart. It runs a predict-update cycle with matrix transition and observation models, then forms a covariance update and forces th

Indicator v6
Updated 8 months ago · None stated GitHub repository of Multivariate Kalman Filter

MACD

by SiegerTerpstra
5 stars

This indicator calculates and plots the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It tracks trend direction and momentum shifts by calculating the difference between fast and slow exponential moving avera

Indicator v6 Oscillators & momentumTrend
Updated 9 months ago · None stated GitHub repository of MACD
4 stars

This strategy is a multi-strategy backtesting engine that draws entries and exits on the price chart. The user picks one approach, including Connors RSI-2, z-score mean reversion, EMA and MACD momentum, Bollinger squeeze, VWAP reversion, Supertrend, Ichimoku,

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 CURSOR [Elton Engine]

Moving Average Pair

by InNoobWeTrust
4 stars

Moving Average Pair calculates and plots two customizable moving averages on the price chart. Users can choose separate moving average types, length periods, source prices, and line styling for both the fast and slow lines. The indicator detects bullish crosso

Indicator v6 Moving averagesTrend
Updated 2 days ago · None stated GitHub repository of Moving Average Pair
4 stars

This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count

Strategy v6 Moving averagesOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v2 (Relaxed)

TF Bias Detector (SMC)

by Sidoine1991
4 stars

This indicator tracks multi-timeframe momentum and trend direction across M1, M15, H1, and H4 horizons. It plots four 14-period RSI curves in a separate pane alongside 30, 50, and 70 reference levels. Directional bias values are calculated by comparing price t

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of TF Bias Detector (SMC)
4 stars

Meridian Options Levels plots clustered reaction zones on the price chart for liquid options underlyings. It groups nearby candidate levels using confirmed daily ATR distance and tick or percent tolerances, then sizes each zone between minimum and maximum ATR

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Levels
4 stars

This indicator plots classic Bollinger Bands on the price chart using a simple moving average basis and upper and lower bands set by a length and multiplier. It shades the area between the bands and, when enabled, marks a squeeze when band width equals its low

Indicator v6 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Bollinger Bands [trugurpala]

PropFirm Elite Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This price-chart strategy scores Smart Money Concepts setups from break of structure, fair value gaps, order blocks, and volume spikes. A minimum score, optional London and New York killzones, and four-hour plus daily bias filter entries. Position size uses a

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Elite Strategy - QuantAlgo
4 stars

This long-only strategy identifies mean-reversion dip opportunities within established uptrends on daily charts. It opens a position when price is trading above a simple moving average and the Relative Strength Index (RSI) crosses back above a specified overso

Strategy v6 Mean reversionOscillators & momentum
Updated 5 months ago · None stated GitHub repository of RSI Mean Reversion (Long Only)

This strategy buys after a sharp down bar with a long lower wick. It opens one long when the lower wick exceeds the candle body by the pin-bar ratio and the one-bar close change falls past the decline threshold. Size defaults to the full account equity. While

Strategy v6 Candlestick patternsMean reversion Repaints
Updated 10 months ago · Apache-2.0 GitHub repository of youtube布欧量化策略-接针策略

Pivot Levels

by degenview
3 stars

Identifies confirmed swing highs and swing lows to draw horizontal support and resistance lines extended to the right, accompanied by price labels. It calculates pivot points using configurable left and right bar lookback periods. Once a pivot is confirmed, ho

Indicator v6 Support & resistance
Updated 2 days ago · GPL-3.0 GitHub repository of Pivot Levels
3 stars

Stella's Support/Resistance Levels automatically identifies and plots horizontal support and resistance lines on the price chart based on pivot highs and lows. It draws green lines at confirmed pivot lows for support and red lines at confirmed pivot highs for

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Support/Resistance Levels

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