Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 15)

Open-source Pine scripts that mark time: Asian, London and New York session boxes, opening ranges, kill zones, day and week separators.

Pine scripts1,149
Code shown here551open licence
Updated in a year961
No repaint flag969

Sessions & time: Indicators, Strategies and Libraries

2 stars

This indicator calculates and plots the intraday percentage change of the current or a user-selected asset relative to its daily opening price in a separate pane. It color-codes positive and negative returns dynamically and draws vertical day separator dotted

Indicator v6 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Intraday Spark Chart [AstrideUnicorn]

This indicator plots session-filtered bullish and bearish engulfing markers on the price chart. A long mark appears when the current candle engulfs the prior candle inside the New York window and volume exceeds 1.5 times its 20-bar average. A short mark uses a

Indicator v6 Candlestick patternsSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign ORB Multi-Model

GhostDog Matrix V12

by knectardev
1 stars

GhostDog Matrix V12 is an overlay signal indicator designed for intraday session trading. It calculates inner and outer standard deviation envelope bands around a simple moving average and evaluates Heikin-Ashi candle wicks to identify signal setups. The scrip

Indicator v5 Volatility & bandsSessions & time
Updated 9 months ago · None stated GitHub repository of GhostDog Matrix V12

MA Strategy

by amico1234
1 stars

This Pine Script v4 strategy generates crossover signals using two simple moving averages on the price chart. The fast SMA in red crosses above the slow SMA in blue for long entries and below for short entries. Signals activate only during a defined trading se

Strategy v4 Moving averagesSessions & time
Updated 2 years ago · None stated GitHub repository of MA Strategy

Session backgrounds

by be-thomas
65 stars

This indicator paints the price-chart background according to three fixed clock sessions. Bars from 04:00 to 09:30 use the pre-market color, 09:30 to 16:00 use the regular-session color, and 16:00 to 20:00 use the post-market color. Three color inputs change t

Indicator v5 Sessions & time
Updated 6 days ago · GPL-3.0 GitHub repository of Session backgrounds

Zen OOH OOL v3

by Zen-Tim
29 stars

This indicator identifies whether the opening bar of a new trading day opens at its high (Open = High) or low (Open = Low) within a customizable tick tolerance. It marks matching sessions directly on the price chart using directional arrows, text labels, and t

Indicator v5 Sessions & timeCandlestick patterns
Updated 2 weeks ago · MIT GitHub repository of Zen OOH OOL v3
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated 3 days ago · MIT GitHub repository of Edge Atlas [WavesUnchained]

This intraday strategy fades tests of the previous day high and low during the New York morning session. It identifies mean-reversion opportunities when price touches within a few ticks of the prior day high or low, closes back inside, confirms with above-aver

Strategy v6 Mean reversionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign PDH/PDL Fade V6

Custom Hours Bars

by ivansoft
1 stars

An indicator in a separate pane that splits the trading day into fixed custom windows, such as 07:00 to 09:50 and 09:50 to 12:00, and measures the wicks of each window as if it were one bar. For every window it records the open, highest high and lowest low, th

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of Custom Hours Bars

TMA Overlay

by rajatjpatel
1 stars

A Pine v4 overlay combining several chart aids. It draws smoothed moving averages at 21, 50, 100 and 200 bars, fills between a 2-period EMA and the 200 line in green or red to show trend, and marks bullish and bearish three line strike patterns and large engul

Indicator v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of TMA Overlay

This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper

Range Probability - NQ

by TamaraKGreen
46 stars

This overlay indicator measures fixed-length ranges from a New York session anchor and draws them on the price chart. Boxes mark a range as forming, closed above the previous high, closed below the previous low, or closed inside. It plots the prior range high,

Indicator v6 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Range Probability - NQ

Zen Open CSC Bars

by Zen-Tim
29 stars

This indicator marks consecutive same-direction candles at the start of each daily session. It counts the first user-set bars after a new day and labels a bullish or bearish CSC when every bar closes in that direction. Settings toggle bar colours, bull and bea

Indicator v5 Candlestick patternsSessions & time Repaints
Updated 2 weeks ago · MIT GitHub repository of Zen Open CSC Bars
4 stars

This strategy trades GBP/USD on the price chart. It enters long when a fast EMA crosses above a slow EMA while price stays above a trend EMA, and enters short on the opposite cross below that EMA. Signals are allowed only in the London session, 07:00 to 17:00

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of GBP/USD Forex Strategy [trugurpala]

Smart Money Concepts

by TamTH-Dev
2 stars

This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 6 weeks ago · None stated GitHub repository of Smart Money Concepts

Dskyz Adaptive Futures Elite (DAFE)

by mushroom-men-Trading
2 stars

Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading. It generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a hi

Strategy v6 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of Dskyz Adaptive Futures Elite (DAFE)

A scalping strategy on the price chart built around market structure: change of character, break of structure and inducement sweeps, filtered by RSI extremes, volume, trend EMA, ATR range, session hours and signal confluence. A mode selector switches between C

Strategy v6 ScalpingSMC / ICT / price action Repaints
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign Scalping Pro

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

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]

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
46 stars

This indicator draws colored boxes for six four-hour New York sessions, from 6pm through 2pm, and tracks each window's open, high, low, and close. It marks the high of day and low of day and records whether those extremes are later eliminated. A checkpoint tab

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of 4H HOD/LOD Checkpoint Analysis

2AM-Gold Swing Strategy

by alboogycOdR
6 stars

This indicator plots smart money concepts on the price chart, focusing on session setups initiated at a specified start hour. It calculates swing highs and lows, monitors liquidity sweeps, confirms market structure shifts, and identifies order blocks and fair

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of 2AM-Gold Swing Strategy

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]

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
257 stars

Marks intraday swing tops and bottoms on the price chart with labels and short horizontal lines. After a morning session reset in the UTC-8 time zone, it tracks the running high and low, measures how far price has moved away from the extreme, and prints a labe

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of High Low Live Super

Zen-DAX GX

by Zen-Tim
29 stars

This indicator calculates and plots session ranges and key breakout levels for DAX futures directly on the price chart. It defines the overnight Globex session, the Frankfurt pre-market range, and the regular trading hours open using European timezone settings

Indicator v5 Sessions & timeBreakout
Updated 2 weeks ago · MIT GitHub repository of Zen-DAX GX
6 stars

The 2AM-Gold Swing Strategy+hist indicator plots Smart Money Concepts (SMC) elements for gold trading overlayed directly on the price chart. Starting at a user-defined session hour (default 2:00 AM UTC+2), it tracks liquidity sweeps, market structure shifts, o

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of 2AM-Gold Swing Strategy+hist

Session Stats

by jayadevrana
1 stars

Session Stats highlights Asia, London, and New York trading sessions on the chart with distinct background colors while tracking performance metrics. It plots session high and low lines directly on price action and presents a summary table displaying average s

Indicator v6 Sessions & timeScreeners & dashboards
Updated 4 days ago · MPL-2.0 GitHub repository of Session Stats

SMC Session Context

by skipp-dev
1 stars

This indicator displays session context, market structure shifts, and session scoring in a separate pane using imported pre-generated profile data. It plots a context score column chart colored by bullish, neutral, or bearish thresholds, highlights active kill

Indicator v6 SMC / ICT / price actionSessions & time
Updated 4 days ago · None stated GitHub repository of SMC Session Context

3-Candle Time Pattern

by alboogycOdR
6 stars

This indicator detects three-candle time patterns on the price chart, tracking range, manipulation, and distribution phases based on Smart Money Concepts. It establishes high and low boundaries from the opening candle and identifies boundary rejections during

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern

This indicator plots several linear regression channels on the price chart. Each channel can be hidden or drawn as a channel, bands, or both, and its lookback is anchored to price, volume, oscillator extremes, calendar periods, sessions, or corporate events. P

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Multi-Anchored Linear Regression Channels [TANHEF]

SMC Session Context

by skipp-dev
1 stars

SMC Session Context is an indicator that tracks trading sessions across Tokyo, London, and New York time zones. Operating in a separate pane, it monitors session highs and lows, previous session extremes, cumulative volume, and initial opening ranges. It ident

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 4 days ago · None stated GitHub repository of SMC Session Context
6 stars

This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Enhanced

Daily close statistics

by TamaraKGreen
46 stars

This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Daily close statistics
7 stars

Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol

Indicator v6 Sessions & timeVolume
Updated 3 months ago · None stated GitHub repository of Aivance Opening Range & Vol Factor
1 stars

A strategy for MNQ futures that trades with the trend only when a regime score allows it. The score blends higher-timeframe EMA bias, ADX, choppiness, efficiency ratio and persistence, with separate enter and hold thresholds. Four switchable triggers can open

Strategy v6 TrendSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of MNQ Multi-Trigger Trend Continuation

Grimm Silver

by GreyssonEnterprises
1 stars

This indicator draws a background color over a customizable trading session in a selected timezone. The session can be limited to specific days of the week. Only during the active session, bars are colored green for bullish paint when the current bar's low exc

Indicator v4 Sessions & time
Updated 3 months ago · MIT GitHub repository of Grimm Silver
65 stars

This indicator defines a function that tracks bar updates by incrementing a counter exclusively on new bars detected via barstate.isnew in Pine Script v5. It plots the resulting update number in a separate pane as a visual reference for bar state concepts. The

Indicator v5 Sessions & time Repaints
Updated 6 days ago · GPL-3.0 GitHub repository of V5 Concepts Bar States 03
6 stars

This indicator maps session-based Candle Range Theory (CRT) cycles by identifying range formation, manipulation, and distribution phases directly on the price chart. It projects range boxes, supply and demand zones, midpoints, and manipulation trendlines accor

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Pro
1 stars

A strategy for MNQ futures built on the 09:30 to 10:00 New York opening range. It looks for one qualified 15-minute breakout candle, checks body size, close location, wick and ATR limits, then waits for a one or two bar pullback on the 5-minute chart. Entry fo

Strategy v6 BreakoutSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of MNQ One-and-Done Confirmed Expansion

GrimmArty

by GreyssonEnterprises
1 stars

A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200) with a trend fill, marks bullish and bearish three line strike patterns with triangles, and adds large engulfing-style candle markers. It can also shade a time-zone trading sess

Indicator v4 Moving averagesCandlestick patterns
Updated 3 months ago · MIT GitHub repository of GrimmArty

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