Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 18)

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

An overlay indicator that tracks pivot, session, previous-day and flipped support and resistance levels and records how price reacts when it tests them. Each trial resolves into break, fade, fail or expire, and a Bayesian-style model sorted into twelve context

Indicator v6 Support & resistanceSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Trading Coach - Hybrid S/R Reaction Probability
947 stars

This utility indicator parses TradingView session input strings into start hour, start minute, end hour, end minute, and an optional weekday list. It accepts a simple time range or a range with weekday digits after a colon. Parsed values for both inputs are wr

Indicator v4 Sessions & time
Updated 11 days ago · GPL-3.0 GitHub repository of Session Input Parser

Session Statistical Levels

by TamaraKGreen
46 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Statistical Levels
6 stars

CRT Bias Scanner Optimized is a Pine Script v5 indicator that scans 16 assets including major forex pairs, indices, commodities and crypto at user-defined intervals. It calculates bias signals across symbols and displays results with last scan timestamp when e

Indicator v5 Sessions & timeScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of CRT Bias Scanner Optimized
2 stars

This indicator detects liquidity sweeps during the Asian session and identifies reversal opportunities in the New York session. It tracks the high and low of the Asia trading range using session timestamps in UTC+3. Sweep up and down are flagged when price bre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of Asian Liquidity Sweep + NY Reversal

PF Analyzer (PineForge)

by pineforge-4pass
1 stars

PF Analyzer (PineForge) is a multi-mode validation strategy designed to benchmark trade execution timing and parity against backtesting engines. It provides four selectable operational modes: a clock pulse for fixed intraday time entries and exits, a 60-minute

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Analyzer (PineForge)

Session Statistical Levels + Extension Gauge calculates and plots statistical price projections, maximum favorable/adverse excursion (MFE/MAE) percentiles, and standard deviation range bands based on historical distribution data from NQ futures. It anchors sta

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Session Statistical Levels + Extension Gauge

Volume Profile - Session

by TradersPost
228 stars

Volume Profile - Session constructs volume distribution histograms across daily, weekly, or monthly periods directly on the price chart. It divides session price ranges into discrete price levels and calculates total volume per bin to identify the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Volume Profile - Session

This overlay indicator draws a volume profile for a chosen trading session directly on the price chart. It plots the point of control, value area high and low, an optional value area box, a live zone, and a session box with labels. Users select Tokyo, London,

Indicator v5 Sessions & timeVolume
Updated 7 weeks ago · None stated GitHub repository of Sessions & VP with prev session VP & daily/weekly opens

CRT Mapper Complete

by alboogycOdR
6 stars

CRT Mapper Complete plots Candle Range Theory (CRT) structures, Turtle Soup patterns, and supply and demand zones directly on the main price chart. It identifies time-based session ranges, tracks market structure shifts, and generates entry signals using rejec

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete
2 stars

This indicator plots colored session boxes and horizontal lines on the price chart for Asia, London, New York AM, New York Lunch, and New York PM sessions. It draws high and low lines with an optional 50% midpoint line for each session. Users customize colors,

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ICT Sessions One Setup for Life
46 stars

This overlay indicator plots an average daily range and an optional median line from a chosen lookback, plus boxes and labels for four user-defined sessions defaulting to Asia, London, the New York open, and the New York initial balance. It can show a session

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Statistcal Daily Profile & Ranges
6 stars

This overlay indicator maps a timed CRT session range and draws a range box, supply and demand zones, a midpoint take-profit line, and optional entry labels. It tracks range, manipulation, and distribution states, and can filter signals with market structure,

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
2 stars

This indicator highlights ICT Silver Bullet trading sessions directly on the price chart. It identifies Fair Value Gaps (FVGs) and filters them based on trend direction and strictness rules, with options to extend unfilled zones. It also tracks swing highs and

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet [LuxAlgo]

PF Eventrades Count

by pineforge-4pass
1 stars

A test strategy from a reference corpus that checks the count of trades with zero net result. At midnight it buys one unit, then places a limit exit at the entry price so that the trade closes flat once price returns to it. The trade counter is plotted but hid

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Eventrades Count

Time Based Ranges

by TamaraKGreen
46 stars

Time Based Ranges is an overlay indicator that marks session windows and price levels on the chart. It draws boxes for named time zones and optional inner intervals, plus open-price and midnight price lines. Users choose a timezone, toggle zone and interval di

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Time Based Ranges
6 stars

This overlay indicator maps a timed session range in SAST, then marks supply and demand zones, a midpoint target, and a four-hour manipulation trendline. It tracks range, manipulation, and distribution states and can plot long or short entry signals when marke

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
2 stars

The ICT Silver Bullet with Signals indicator identifies and highlights key Inner Circle Trader concepts directly on the main price chart. It marks designated Silver Bullet session time windows, detects higher-timeframe Fair Value Gaps (FVGs), and plots support

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet with Signals

Time Session

by Web3Degenerate
2 stars

This indicator marks a user-chosen clock session on the price chart. It tests whether the current bar falls inside the selected session string and paints a translucent red background while that condition is true, leaving other bars uncolored. The only setting

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Time Session

This strategy overlays Supertrend on the price chart and trades only inside a set session and backtest date range. It enters long when Supertrend turns up, or after a chosen candle delay while the trend is up, and enters short on the opposite conditions. It cl

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty 5min Supertrend Based Strategy
46 stars

This indicator draws configurable time-based sessions on the price chart. It plots session open lines, average high and low lines, and an expected range line. Optional high-low boxes and likely range boxes mark session ranges, with labels comparing average and

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Time based ranges with stats
6 stars

This overlay indicator maps a timed session range from a chosen SAST start hour and session length, then draws the range box, midpoint, supply and demand zones, and an optional four-hour manipulation trendline. It tracks range, manipulation, and distribution s

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
1 stars

A strategy that buys pullbacks in uptrends and sells rallies in downtrends. Trend comes from fast and slow EMAs with a minimum slope, an optional higher-timeframe EMA check defaulting to daily, and an ADX filter. A setup arms when price stretches an ATR distan

Strategy v6 Mean reversionTrend Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Trend-Aligned Mean Reversion Strategy

TN Multi-Confluence

by raybird
1 stars

A Pine v6 strategy that trades smart money concepts on the price chart. It combines a higher-timeframe bias with an EMA, equal highs and lows liquidity, order blocks, fair value gaps and an optional displacement confirmation. Entries are limited to New York an

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN Multi-Confluence
46 stars

This indicator tracks and projects session-based price retracement levels directly onto the main price chart. Users can configure up to five distinct time sessions alongside specific evaluation windows to measure price retracement targets calculated from open

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Time Based Retracement - Stats
46 stars

This overlay indicator tracks up to four independent session levels on the price chart. For each level it records the high and low of a chosen range window, then draws an optional box for that range and a horizontal retracement line at a user-set percentage of

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Time-based Range Retracement - Stats

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine plots time-based CRT models, session state ranges, and institutional market structure on the main price chart. It detects liquidity sweeps, order blocks, Fair Value Gaps, and volume profile imbalances across specified New York time sessions. T

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
3 stars

FX Market Sessions highlights distinct trading sessions, such as London, New York, and previous day ranges, directly on the main chart using colored boxes and labels. It tracks session highs, lows, and pip spans, with configurable options for opening ranges, F

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

Funded Range Gann Sniper

by vedkanani123
1 stars

A price-chart indicator that looks for fade setups after price raids the edge of a completed session or prior-day range and closes back inside. It requires the Gann half-range level to sit at least a set number of R away, sizes the stop beyond the raid using A

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Funded Range Gann Sniper

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York-timed CRT models, unmitigated order blocks, market structure, liquidity pools, and volume profile on the price chart. It can draw session boxes for Asia, London, London lunch, and New York and optiona

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

Weekly IB

by TamaraKGreen
46 stars

Weekly IB is an overlay indicator that tracks and visualizes the weekly initial balance levels on the main price chart. It features customizable day-of-week labels, daily session boundary highlights, configurable timezones, and optional Fibonacci retracement l

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Weekly IB

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine draws an institutional candle-range state model on the price chart. It tracks New York session models, market structure, unmitigated order blocks, liquidity pools, and optional volume profile and multi-pair correlation. Change-in-state detecti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
1 stars

A strategy that builds an opening range from 09:30 to 09:45 New York time and enters long or short on the first close beyond it each day. The position is split across three take profit targets set as risk multiples, with adjustable percentages. The stop sits a

Strategy v5 Sessions & timeBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of 15-Min ORB Strategy for NQ TP3 Runner

GROK PA Daily Levels

by vedkanani123
1 stars

An indicator for the price chart that draws a merged set of daily reference levels: previous day high, low, open and midpoint, a central pivot range, Camarilla levels, optional floor pivots, previous week extremes, range expansion targets beyond yesterday's ra

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of GROK PA Daily Levels

TN OR Magnet

by raybird
1 stars

An opening range strategy for the New York session that records the high and low of a short opening window, then trades retests of that range. Setup A follows drift from the range with a retest, and a conservative Setup B uses breakout plus retest. Filters ski

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of TN OR Magnet

UTC Clock

by everget
947 stars

The UTC Clock is a simple indicator that shows the current UTC time on the chart. It uses the timenow function to calculate the current hour, minute and second. These values are formatted with leading zeros to ensure two-digit display for hours, minutes and se

Indicator v4 Sessions & time
Updated 11 days ago · GPL-3.0 GitHub repository of UTC Clock

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator tracks CRT models at 1:00, 5:00 and 9:00 and a session state machine covering CBDR, Asia, London, London lunch and the New York open. It analyzes draw-on-liquidity pivots, market structure, liquidity pools, volume profile and multi-pair

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

PSMC - Alerts Within Session

by Web3Degenerate
2 stars

This indicator uses time sessions to control when alerts trigger on the price chart. It defines a main trading session along with optional pre-market and after-market periods. The InSession function checks whether the current bar falls inside the session using

Indicator v4 Sessions & time
Updated 2 years ago · None stated GitHub repository of PSMC - Alerts Within Session

ORB Indicator

by rosijay17-cmd
1 stars

An overlay indicator that records the high and low of a chosen opening session, by default five minutes starting at 09:15, and plots them as circles after the session ends. It prints a B label when price crosses above the range high and an S label when it cros

Indicator v5 BreakoutSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of ORB Indicator

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator runs a CRT state engine on the price chart. It can analyze draw-on-liquidity pivots, a session state machine, and optional 1AM, 5AM, and 9AM CRT models. Optional modules track market structure, liquidity pools, volume-profile levels, and

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
3 stars

This indicator calculates and plots previous higher-timeframe structural levels directly onto the main price chart. It retrieves the prior high, low, and close levels for daily, weekly, and monthly periods using dashed horizontal reference lines and labels ext

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of GARY - Prior Levels

Session Liquidity

by rosijay17-cmd
1 stars

An overlay indicator that draws horizontal lines at the high and low of up to three user-defined daily time spans, such as Asia, London and New York. Each session has its own time range, day-start timezone, line colour, style, width and optional text label, an

Indicator v5 Sessions & timeSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Session Liquidity

Weekdays Gaps

by everget
947 stars

Weekdays Gaps highlights background chart areas where calendar weekday gaps occur between consecutive bars. It compares the day of the week of the current bar with that of the preceding bar to detect non-sequential calendar transitions, such as missing data or

Indicator v4 Sessions & time
Updated 11 days ago · GPL-3.0 GitHub repository of Weekdays Gaps

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York time-based CRT models at 9PM, 1AM, 5AM, and 9AM. It tracks market structure, liquidity sweeps, change-in-state delivery, and unmitigated order blocks that stay drawn until mitigated. Optional modules

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State 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