Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 8)

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

ZeroDTE Wave v2

by xynkro
1 stars

A Pine version 6 overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-asid

Indicator v6 Mean reversionSessions & time
Updated yesterday · None stated GitHub repository of ZeroDTE Wave v2
1 stars

Market Lab is a static market workbench for inspecting OHLCV paths, cost anchors, volatility bands, formula research outputs, and candidate order plans in one compact interface. It features three-panel layout with instrument navigation, main chart, and facts a

Indicator v6 Support & resistanceVolatility & bands
Updated yesterday · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

Sessions

by teshmi9z-beep
1 stars

An overlay that shades trading session ranges on the chart, with three sessions preset to New York, London and Tokyo. Each session has its own name, time window, colour and on or off toggle. While a session is active, a box tracks its running high and low, and

Indicator v5 Sessions & time
Updated yesterday · MIT GitHub repository of Sessions
1 stars

A strategy for one-minute charts that trades a breakout of a short opening probe at the cash open in a chosen time zone. It limits entries to the first breakout of the day within a time window and offers fixed risk-multiple, ATR bracket, time-based or session-

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Academia TORB v1.5 Volatility-Regime ORB

Just C3

by Just-beyond-z
1 stars

An overlay that shows 4-hour, 7-hour and daily candles beside the current bars and follows a three-candle framework, marking where the second candle closes and raising an alert for the third. It can draw session dividers with short or long labels, a table of h

Indicator v6 SMC / ICT / price actionSessions & time
Updated 13 days ago · None stated GitHub repository of Just C3

DAY-5MIN-L&H v2

by 7b809
1 stars

An overlay indicator that must run on the one-minute chart and raises an error otherwise. It captures the high and low of an opening range at a set market open time, then draws lines at the high, low and average, plus entry levels placed beyond the range by th

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v2

Moon Phases

by AkashSasikumar47
1 stars

A Pine v6 indicator that calculates lunar phases from the date and shows them on the price chart. It marks new and full moons and tints the waxing and waning halves of each cycle in two colors that can be changed. It is a calendar tool for people who study cyc

Indicator v6 Sessions & time
Updated 2 weeks ago · MIT GitHub repository of Moon Phases

Opening Range Breakout

by JACKZHOU0521
1 stars

The Opening Range Breakout indicator identifies high, low, and midpoint levels established during a customizable initial window of the trading day. Once the opening window ends, the range boundaries are frozen and drawn directly on the main price chart. The sc

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Opening Range Breakout
1 stars

An intraday strategy for stocks that gap up before the open. It qualifies a symbol by gap size, price band and premarket volume, then trades an opening-range breakout with a volume surge, limited to a set number of trades per day and a cut-off hour in New York

Strategy v6 BreakoutSessions & time
Updated 6 weeks ago · None stated GitHub repository of Premarket Gap Scalper

This overlay indicator tracks the high and low of four SMC/ICT killzones in America/New_York time: the Asian range, London open, New York AM, and London close. It draws each session’s high and low on the price chart with separate colors and line widths, and us

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Session Highs and Lows Indicator (SMC Sessions, DST-safe)

Quarter Theory Stats

by abhinaynatraj
1 stars

A table-only companion to the quarter theory overlay. It builds conditional frequency statistics from 15-minute bars, whichever chart timeframe is used, and shows them in an on-chart table: the chance of a quarter extending, how a third-quarter close classifie

Indicator v6 Screeners & dashboardsSessions & time
Updated 3 months ago · None stated GitHub repository of Quarter Theory Stats

NTouch Zones

by riegodavid-git
1 stars

An overlay indicator that builds support and resistance rectangles from pivots found inside a morning window in Philippine time, by default 06:00 to 07:30. Pivot highs and lows that cluster within a tolerance based on a fraction of the ATR become a zone once t

Indicator v6 Support & resistanceSessions & time
Updated 4 months ago · None stated GitHub repository of NTouch Zones
1 stars

Session Range vs ATR Filter compares developing intraday price ranges against the daily Average True Range (ATR) during US regular trading hours. It evaluates session range expansion at fixed time checkpoints (10:00 AM, 12:00 PM, and 2:00 PM ET) against percen

Indicator v5 Sessions & timeVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Session Range vs ATR Filter

AlgoBot ORB Strategy

by ghostnathan30-ops
1 stars

An opening range breakout strategy for Nasdaq and S&P futures on the 15-minute chart. It records the 9:30 to 10:00 New York range, then enters on the first close beyond it, plus a small point buffer, in line with a 50-period EMA bias, until 11:30. Stops are AT

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot ORB Strategy

A strategy variant, labeled in its file name as a time-filtered version, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Time Filter
1 stars

Advanced Market Theory calculates Market Profile, TPO, and Hybrid profiles directly on the price chart. It identifies key structural levels including the Point of Control, Value Area High and Low boundaries, Initial Balance range projections, single prints, po

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Advanced Market Theory
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then looks for breakouts of that range until a set end time. It tracks whether a long or short has been taken or stopped out each day and sizes positions a

Strategy v5 BreakoutSessions & time
Updated 12 months ago · MIT GitHub repository of Range Breakout Strategy UCMO Research

algo-trade-indian

by akash-yellgetti
1 stars

A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, and alerts when price crosses above the high or below the low. It also plots VWAP and a 50-period EMA, pivo

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of algo-trade-indian

Hotch Break Strat

by rajatjpatel
1 stars

A strategy that combines several filters on one chart. Components include an ignition bar marker based on a candle body retracement percentage, fractal detection, three configurable moving averages, an RSI with overbought and oversold levels, a trading range l

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of Hotch Break Strat
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
56 stars

This indicator draws ICT killzone boxes on the price chart for Asia, London, New York AM, New York lunch, and New York PM sessions. Each session can be toggled, renamed, and recolored, with optional labels and adjustable box transparency. A session drawing lim

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of ICT Killzones & Pivots [TFO]

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

Intraday Levels

by lunarticktrading
7 stars

Intraday Levels plots prior period price levels and session ranges on the price chart. It can draw previous weekly and previous daily open, high, low, and close as separate lines, each with its own visibility and color. It also marks the Asia and London sessio

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · None stated GitHub repository of Intraday Levels

FX Market Sessions

by itmakesyousick
7 stars

This indicator highlights up to three customizable market trading sessions, such as London, New York, and Tokyo, directly on the price chart using colored boxes and labels. Users can adjust time zones, session hours, colors, border styling, and fill transparen

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

Week candle backward shift

by chaise-cogent
5 stars

This indicator rebuilds one-week candles so their start day is shifted backward by a chosen number of days, from zero through six. On a weekly chart it requests daily open, high, low, and close and assigns them to custom weekly values, with a separate calculat

Indicator v6 Candlestick patternsSessions & time
Updated 7 months ago · MIT GitHub repository of Week candle backward shift
4 stars

Meridian Options Context plots a separate-pane directional context for liquid options underlyings. It normalizes trend from fast and slow EMAs, RTH VWAP and opening-range displacement, RSI and short-return momentum, relative volume participation, persistence,

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Context

QQQ MA Accumulation v2

by yalili8521
2 stars

This intraday strategy calculates fast, mid, and slow Simple Moving Averages to confirm alignment alongside steady bar accumulation on short timeframes. It filters entries by rejecting large candle spikes and restricting execution to a defined morning session

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of QQQ MA Accumulation v2
2 stars

This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are

Strategy v6 Mean reversionSessions & time
Updated 4 months ago · None stated GitHub repository of XAUUSD Mean Reversion Strategy

Custom Session OHL

by ryangaraygay
2 stars

Custom Session OHL calculates and plots the open, high, and low price levels established during a user-specified time session. It tracks the session opening price along with the highest and lowest prices reached during that window, plotting them directly on th

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session OHL

[CBB] Trade Windows

by codybbrown
2 stars

This indicator shades the price-chart background during a user-defined trading session. It reads the session string, defaulting to midnight through 13:00 on all seven weekdays, and evaluates it in the America/New_York time zone against the chart's current time

Indicator v5 Sessions & time
Updated 3 years ago · None stated GitHub repository of [CBB] Trade Windows
1 stars

An overlay that sketches a same-day iron condor on the S&P 500 index or its ETF and mini equivalents, detecting which instrument is loaded. It tracks an opening observation window, then at a set build time projects short strikes a chosen percentage out of the

Indicator v5 Sessions & timeSupport & resistance
Updated yesterday · None stated GitHub repository of ZeroDTE Iron Condor v1

My Notes

by cckmchiu-gapps
1 stars

The My Notes indicator displays selectable trading notes on the price chart. Users choose from multiple note sets via dropdown input, covering topics like technical points, trading strategies, market states, and Hong Kong stock analysis. Notes appear as text l

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 7 days ago · None stated GitHub repository of My Notes

Key Levels

by Just-beyond-z
1 stars

An overlay that draws reference levels from several timeframes. It can show previous high and low levels, session levels, opening prices, swing lines and fair value gaps for 30-minute, 2-hour, 4-hour and daily frames, each with its own color and a maximum coun

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 13 days ago · None stated GitHub repository of Key Levels

An overlay indicator limited to the one-minute chart that records the high and low of an opening range at a set market open time. It draws high, low and average lines plus dotted entry levels beyond the range, extending to the session end. A daily flag is kept

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v6 Valid Trend Alert

Overnight Range Breakout

by JACKZHOU0521
1 stars

This script tracks high and low levels established during a defined overnight trading session in exchange time. Once the overnight session completes, the indicator plots frozen horizontal high and low boundary lines on the price chart. When price closes above

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Overnight Range Breakout

SMC Sessions

by mccallister-dev
1 stars

The SMC Sessions indicator plots higher-timeframe context labels, swing structure breaks, confirmed sweeps, order-block proxies and fair value gap zones directly on the price chart for forex SMC and ICT analysis. It draws HTF pullback-continuation and reversal

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 5 weeks ago · None stated GitHub repository of SMC Sessions
1 stars

This indicator implements an ICT and SMC decision engine directly on the price chart. It calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through prem

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow - FVG CE + TP Tiers

Range Detect Breakout

by tthanhvu002sgu
1 stars

Detects compressed ranges on the price chart and marks breakout points with triangles at the range high and low. A range is flagged when the recent high-low span is small against its longer average and the bars overlap enough. A daily EMA, default 100 periods,

Indicator v6 BreakoutSessions & time
Updated 3 months ago · None stated GitHub repository of Range Detect Breakout

Session Extension Bands

by abhinaynatraj
1 stars

An indicator that projects how far price has typically extended beyond the prior session's close, using a rolling lookback of up to 500 days. The London projection is anchored to the Asia close and the New York projection to the London close, with boxes and pr

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Extension Bands
1 stars

An indicator for the price chart that draws intraday levels for Nasdaq futures by combining a volatility-index implied one-day move from the cash open with an initial balance extension. The blend can be a midpoint, maximum extension or minimum conservative mod

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Intraday Hold Levels (VIX + IB)

NFP Open Price Levels

by kvmafthab-pixel
1 stars

NFP Open Price Levels plots price levels associated with Non-Farm Payroll (NFP) news releases directly on the main price chart. The indicator draws horizontal lines and text labels at designated NFP open prices, allowing traders to track key macroeconomic even

Indicator v6 Support & resistanceSessions & time
Updated 5 months ago · Custom licence GitHub repository of NFP Open Price Levels

ORB

by onlyspx
1 stars

This indicator marks the opening range of the trading session on the price chart. The range period can be 5, 15, 30 or 60 minutes, or a custom session and time zone for non-US markets. It draws the range high and low, an optional shaded box and midpoint, plus

Indicator v5 Sessions & timeBreakout
Updated 6 months ago · None stated GitHub repository of ORB
1 stars

A long-only calendar strategy for Bitcoin. At a chosen hour on Sunday it compares price with the price recorded at a chosen hour the previous Friday, and enters long when the weekend gain exceeds a minimum percentage. The position is closed at the Friday hour.

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of BTC Weekend 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