Indicator

Trading Sessions Suite [BackQuant]Trading Sessions Suite
Overview
Trading Sessions Suite is a full intraday structure framework built around market sessions, kill zones, and session-specific order flow . It transforms the trading day into a sequence of structured regimes, allowing you to track how liquidity, volatility, and positioning evolve across Asia, London, and New York.
Instead of treating price as a continuous stream, this indicator segments the market into time-based auction phases , each with its own:
Range (high and low)
VWAP (fair value)
Open (reference anchor)
Equilibrium (midpoint)
Momentum (session oscillator)
It also overlays kill zones , highlighting the exact windows where volatility and participation tend to expand.
Example of kill zones in action:
Example combining RSI-style oscillator + VWAP structure:
This tool is designed for traders who want to understand how intraday structure builds, shifts, and resolves .
---
Core Philosophy
Markets are not random throughout the day. Liquidity, volatility, and institutional participation are time-dependent .
Each session has distinct characteristics:
Asia → accumulation, compression, range-building
London → expansion, breakout, liquidity grabs
New York → continuation, distribution, reversal potential
Rather than using static indicators, this script builds a dynamic framework tied to these time regimes .
---
Session Engine
The indicator tracks three primary sessions:
Asia Session
London Session
New York Session
Each session is defined by a configurable time window and processed as an independent structure.
Internally, each session maintains a full state:
Session high and low
Session open
Rolling VWAP
Start index (session start)
Drawn objects (box, lines, labels)
Oscillator data (if enabled)
This allows each session to behave like a self-contained market environment .
---
Session Boxes (Auction Structure)
Each session is visualized as a box:
Top = session high
Bottom = session low
Width = duration of the session
This gives you an immediate view of:
Range expansion vs compression
Relative volatility between sessions
Where price is positioned within each session
Interpretation:
Tight box → compression, buildup
Wide box → expansion, active participation
Overlapping boxes → consolidation across sessions
---
Session VWAP (Fair Value per Session)
Each session has its own VWAP:
VWAP = volume-weighted average price within that session only
This is critical because:
VWAP resets every session
Reflects session-specific positioning
Acts as a dynamic equilibrium level
Interpretation:
Price above VWAP → bullish control for that session
Price below VWAP → bearish control
Reversion to VWAP → mean reversion inside session
Unlike standard VWAP, this gives you multiple fair value anchors per day .
---
Session Open & Midline (Key References)
Each session also tracks:
Open Line → where the session started
Midline → (high + low) / 2
These act as:
Bias indicators (above/below open)
Equilibrium zones (midline)
Reaction levels
Typical behavior:
Holding above open → trend continuation
Crossing midline → shift in control
Rejecting midline → continuation signal
---
Range Extension (Forward Liquidity Levels)
When a session closes, its high and low can be extended forward.
These extensions act as:
Future support/resistance
Liquidity targets
Breakout validation zones
Mechanically:
High and low are projected into the next session
Remain until replaced or invalidated
Interpretation:
Next session often trades toward previous session extremes
Breaks of prior session range = regime shift
---
Kill Zones (High-Probability Windows)
Kill zones are specific time windows inside sessions where:
Liquidity spikes
Volatility expands
Institutional activity increases
Included zones:
Asia Kill Zone
London Open Kill Zone
New York Open Kill Zone
New York Close Kill Zone
They are visualized as shaded boxes separate from session boxes.
Why they matter:
Most breakouts occur during kill zones
Most reversals are initiated during kill zones
Liquidity sweeps cluster around these times
From the example:
You can see how price reacts specifically within these windows.
---
Session Oscillator (Embedded Momentum Engine)
Each session optionally includes its own oscillator plotted directly below the session box.
This is not a standard indicator overlay. It is:
Bound to the session range
Scaled relative to that session
Reset each session
Core mechanics:
Uses RSI-style calculation
Signal line = moving average of oscillator
Stored per bar within the session
Displayed as:
A mini panel under each session
With 30 / 50 / 70 reference levels
Example:
Interpretation:
Above 50 → bullish momentum within session
Below 50 → bearish momentum
30/70 → oversold/overbought zones
This gives you contextual momentum , not global momentum.
---
Why Session-Based Oscillators Matter
Standard oscillators ignore time segmentation.
This approach:
Resets momentum every session
Prevents carryover noise
Aligns signals with actual trading windows
So instead of:
“RSI is overbought”
You get:
“RSI is overbought within London session”
This is a much stronger contextual signal.
---
Labels & Range Statistics
Each session can display:
Session name (ASIA, LON, NY)
Range percentage
This helps quantify:
How much the market moved during that session
Which session is dominating volatility
---
Putting It All Together
This indicator gives you a full intraday map:
Where price moved (session boxes)
Where fair value sits (VWAP)
Where equilibrium lies (midline)
Where momentum stands (oscillator)
Where volatility expands (kill zones)
Where liquidity rests (extended highs/lows)
---
How to Use It
1) Identify the current session
Always start with:
Which session is active?
Each session behaves differently.
---
2) Use VWAP + midline for bias
Above VWAP + above mid → strong trend
Below VWAP + below mid → bearish control
Between → range
---
3) Watch kill zones for setups
Breakouts during kill zones are higher probability
Fake moves often occur just before them
---
4) Track previous session levels
Asia high/low often targeted during London
London extremes often targeted during NY
---
5) Use oscillator for confirmation
Momentum aligning with structure → stronger signal
Divergence → potential reversal
---
Strengths
Fully contextual intraday framework
Combines time, price, and volume-weighted logic
Visual and intuitive
Highly configurable
---
Summary
Trading Sessions Suite converts the trading day into a structured sequence of auctions. By combining session ranges, VWAP, kill zones, and a session-specific momentum engine, it provides a complete framework for understanding how price moves throughout the day. Instead of relying on static indicators, it aligns analysis with when liquidity actually enters the market, allowing for more precise timing, better context, and cleaner trade execution. Indicator

AG Pro Kill Zone Session Engine [AGPro Series]AG Pro Kill Zone Session Engine
Overview / What it does
AG Pro Kill Zone Session Engine is a session-based overlay designed to map the internal range behavior of selected intraday kill zones and preserve the most relevant reference levels after each zone has ended.
Instead of treating London, New York, Asia, and London Close as simple background highlights, this script organizes each enabled zone as a structured session event. During an active zone, it tracks the developing high, low, and optional midpoint. After the zone closes, it can carry those levels forward as clean horizontal references so traders can study how price interacts with prior session liquidity.
The script is built for users who want more context than a basic session coloring tool. It helps visualize where a session range formed, how wide it was relative to recent history, whether the session expanded or stayed narrow, and whether later price action interacted with that session through sweep-style behavior.
This is not a prediction engine and it does not attempt to forecast the next directional move. Its purpose is to structure session information into a cleaner analytical framework so traders can evaluate intraday context with more consistency.
Unique Edge
What makes this script different from a standard session indicator is that it does not stop at showing when a session is active.
Its core focus is session range formation plus post-session interaction. Each enabled kill zone can build a live range while active, then leave behind reference levels that remain usable after the session ends. This allows the chart to show not only where a session occurred, but also how later price responded to that session.
The script also adds session-width context. A zone can be classified relative to recent comparable zones so traders can quickly see whether the session was narrow, balanced, or expanded. That extra layer helps separate passive session activity from zones that created a more meaningful range.
Another important distinction is the sweep engine. Rather than only drawing static levels, the script can evaluate whether later price action interacts with prior session highs or lows in a sweep-oriented manner. This makes the tool more useful for traders who study liquidity behavior around specific intraday windows.
In short, this script is intended to function as a session behavior map, not as a simple background painter.
Methodology
The script works in four main steps.
1) Session detection
The user can enable or disable the supported kill zones individually and define session windows using a UTC offset and custom time settings. This keeps the script flexible across instruments, broker feeds, and local chart preferences.
2) Range construction
While a kill zone is active, the script updates the developing session high and low. Optional midpoint logic can also be shown. These values form the core session range for that specific zone.
3) Post-session reference mapping
When the zone ends, the completed high and low can remain on the chart as forward reference levels. This allows later price interaction to be evaluated against a completed session range rather than only during the active zone itself.
4) Sweep and width analysis
The script can evaluate reference-level interactions using its sweep logic and can also classify the completed width of a zone relative to prior zones of the same type. This helps the user distinguish between narrow, balanced, and expanded sessions.
Signals & Alerts
This script is primarily an analytical overlay, but it also supports alertable events around session activity and sweep behavior.
Depending on the enabled options, the script can be used to monitor:
- when a new kill zone becomes active,
- when price interacts with a prior session high,
- when price interacts with a prior session low,
- when sweep-oriented behavior is detected relative to a carried-forward reference range.
These events are designed to describe chart conditions, not to deliver standalone trade calls.
The visual outputs can include:
- session background shading,
- current and completed session high/low levels,
- optional midpoint levels,
- compact session summary labels,
- sweep markers,
- an information panel showing active zone status, width context, reference zone, and sweep status.
Key Inputs
The script includes a focused but flexible input set so users can adapt it without overcomplicating the chart.
Core controls include:
- UTC offset and custom session timing,
- individual enable/disable controls for Asia, London, New York, and London Close,
- high/low visibility,
- midpoint visibility,
- projection length for completed session levels,
- label density and summary behavior,
- panel visibility, placement, and text sizing,
- sweep mode and alert controls,
- visible session memory so the chart can stay cleaner on higher timeframes.
These controls allow the tool to be used in a more detailed mode on lower intraday charts or in a more compressed mode on higher timeframes.
Limitations & Transparency
This script is designed as a context tool. It does not define trade entries, stop placement, or risk management for the user.
Session behavior can vary across instruments and feeds, so identical settings may not produce equally meaningful output on every market. Some assets respond more clearly to session-based reference levels than others.
Sweep logic is also a chart-interpretation aid, not a certainty model. A detected sweep does not imply immediate reversal, continuation, or trade validity on its own. It simply highlights a specific type of interaction with a prior session reference.
The script is best suited to intraday analysis. While it can still display useful information on higher timeframes, the underlying logic is rooted in session behavior, so lower intraday charts will usually provide more direct visual relevance.
As with any visual overlay, increasing history depth or label density may add chart clutter. For that reason, the script includes controls to compress memory and reduce label load when needed.
Risk Disclosure
This script is provided for educational and analytical use only.
It is not financial advice, not a signal service, and not a promise of outcome. It does not guarantee reversals, breakouts, continuations, or profitable execution. Any trading decision should be made within the user's own process, risk model, and market understanding.
The intended use of this script is to help organize session structure, liquidity references, and post-session interaction on the chart so that traders can make more informed observations with a clearer visual framework.
Indicator

Indicator

Indicator

Indicator

Midnight OpenThis Midnight open indicator tracks and displays each trading day’s midnight open based on a user-selected time zone. It lets the user choose between America/New_York, the chart’s exchange time zone, UTC, GMT, or a custom GMT/UTC hour offset, then detects when midnight occurs in that time zone and captures the open price either from the chart timeframe or from a 1-minute source for better precision. It filters by trading-week mode, so the script can operate on standard Monday–Friday schedules, Sunday–Thursday futures-style weeks, or all calendar days. Once a valid midnight open is found, it plots the current day’s level as a step line on the chart and can also draw a separate horizontal line for each day, with optional labels showing the weekday, 00:00 time stamp, and active time zone.
The Midnight Open indicator also keeps a rolling weekday dashboard that stores the latest Monday through Friday midnight open values and shows them in a table in the chart corner, with the active time zone included in the table header. Those table values are formatted with comma-separated numbers while preserving the instrument’s tick precision. To keep the chart clean, the script automatically limits how many historical lines and labels remain visible based on a user-defined lookback count. In addition, it generates a “new midnight open” event when a fresh daily level is captured and can fire a dynamic alert message that includes the active time zone, symbol, and timeframe, making it easier to monitor midnight reference levels across different markets and time zone settings.
Indicator

Sessions ExtendedSessions Extended
Based on the original "Sessions" indicator by LuxAlgo, this script is a complete
rewrite and substantial expansion. It is built for traders who want control
over session visualization, deep volume analytics, and a live dashboard that works
on any chart timeframe from 1 minute up to 1 week.
=============================================================================
WHAT CHANGED COMPARED TO THE ORIGINAL "SESSIONS" INDICATOR
=============================================================================
SESSIONS
Original: 4 fixed sessions (New York, London, Tokyo, Sydney)
Extended: 11 fully independent sessions labeled A through K, each with its own
complete settings group. The default setup covers the major forex windows:
Asia, London, New York, Sydney, Tokyo I, Hong Kong, Singapore I, Tokyo II,
Singapore II, EU pre-London, and US pre-NY.
PER-SESSION STYLING
Original: One shared background color and transparency, border always dotted,
no width control.
Extended: Per-session background color and transparency, fully independent of
the border color. Per-session border style (Dotted / Dashed / Solid) and border
width (1 to 4 pixels). Every session box can have a completely unique appearance.
SESSION LABELS
Original: One fixed label per session, always tiny, always at the session high.
Extended: Per-session label color and size (Tiny / Small / Normal / Large / Huge).
A numeric "Name Offset" input shifts the label upward by a chosen number of
blank lines, keeping label height constant regardless of zoom level. An optional
second label shows the actual session open and close times in HH:mm format with
its own independent offset, color, and size.
OVERLAYS PER SESSION
Each of the 11 sessions independently supports seven overlay types:
Range Box — High/Low box drawn for each session occurrence
Trendline — Linear regression line (best-fit straight line through closes)
Std Band — Dashed lines at +1σ and -1σ around the regression line.
Works independently — Trendline does not need to be active.
Bars outside the bands indicate unusual price movement.
Mean — Cumulative average of all closing prices within the session,
drawn as a connected line. Equal weight per bar, no volume
influence. See "Understanding Mean vs VWAP" below.
VWAP — Volume-Weighted Average Price. Institutional benchmark.
See "Understanding Mean vs VWAP" below.
Max/Min — Short horizontal tick marks at session High and Low
Midpoint — Horizontal line at the 50% level of the session High/Low range
EXTENDED HIGH/LOW LINES
Each session can project its previous High and Low as horizontal lines extending
to the right of the chart — classic support and resistance reference levels.
Fully configurable per session:
- Line color (independent from the session border color)
- Line style: Solid, Dashed, or Dotted
- Line width: 1 to 4 pixels
- Optional end-of-line label showing session name and date (dd.MM.yy)
- Label text color, background color, and background transparency
A global "Max Extended H/L Lines" setting (Range Settings group, default 10)
caps the total number of line pairs visible across all sessions combined.
DAYS BACK FILTER
Each session has a "Last N sessions" input. When set to 0 (default), all
available history is shown. When set to 1–50, only the N most recent occurrences
are drawn. The pruning applies consistently to boxes, labels, Max/Min lines,
Midpoint lines, Mean lines, VWAP plots, and Extended H/L lines.
TIMEZONE
A "Use Exchange Timezone" checkbox follows the exchange timezone automatically
(syminfo.timezone). When unchecked, a UTC Offset field (−12 to +14) enables
manual adjustment. This is particularly useful for handling Daylight Saving Time
transitions without needing to touch any session time strings.
=============================================================================
THE DASHBOARD — COMPLETE REFERENCE
=============================================================================
ENABLING AND POSITIONING
Find the Dashboard group in Settings. Toggle "Show Dashboard" to show or hide
the panel. Choose from four positions (Top Left, Top Right, Bottom Left,
Bottom Right) and four sizes (Tiny, Small, Normal, Large).
DASHBOARD MODES
The dashboard has three display modes, selected via the "Volume & Sigma columns"
and "Show Buy/Sell Volume" toggles:
Standard mode (both off):
Session | Trend
Advanced mode (Volume & Sigma on):
Session | Volume | Sigma | Trend
Advanced + Buy/Sell mode (both on):
Session | Volume | Sigma | ▲Buy ▼Sell | Trend
COLUMN DESCRIPTIONS
Session
The session name (e.g. ASIA, LONDON, NEW YORK). The cell background
changes color to reflect the session state:
Active background color — session currently open
Inactive background color — session closed today (snapshot visible)
Dimmed border color — session not yet started today or yesterday data
Volume
Total traded volume for the session's measurement window. Updates live
while the session is open. Freezes as a snapshot when it closes.
Calculated at 1-minute resolution via request.security — accurate on
any chart timeframe.
Sigma (σ)
Standard deviation of closing prices within the session. Measures how
much price spread around its average. A high Sigma indicates a volatile,
wide-ranging session. A low Sigma indicates tight, consolidating price
action. Updates live, freezes on session close.
▲Buy ▼Sell (optional, "Show Buy/Sell Volume")
Volume split by bar direction. Up-bars (Close ≥ Open) count as buy volume,
down-bars count as sell. Note: this is an approximation — Pine Script
cannot access TradingView's internal tick-level buy/sell data.
Open / High / Low (optional, "Show O/H/L + Change")
The session's opening price, highest traded price, and lowest traded price.
These are permanent historical facts and remain visible (dimmed) even after
the session closes and after the trading day resets.
Chg (optional, "Show O/H/L + Change")
The change from session Open to session Close: Close − Open.
Display format:
+1.234 green — session closed above its open (bullish)
-1.234 red — session closed below its open (bearish)
±0.000 grey — session closed exactly at its open (neutral)
The three colors (up, down, flat) are independently configurable.
Trend (r²)
The R-squared value of the linear regression for the session. Ranges from
−1.00 to +1.00. Positive values indicate an upward trend, negative values
a downward trend. Values near 0 indicate a sideways/choppy session.
The cell background is colored green (bullish) or red (bearish) based on
the sign, making trend direction scannable at a glance.
Timer (optional, "Show Timer column")
Countdown to the next relevant session event:
▼ HH:MM — session is currently open, counting down to close
▲ HH:MM — session is closed, counting up to next open
▲ Xd HH:MM — session opens in more than 24 hours (e.g. weekend gap)
The timer is updated in real time using timenow. It is visible at all
times, including when the market is closed. Weekend gaps are handled
correctly: sessions that open Monday morning show 2d+ on Friday evening,
while sessions still opening later on Friday show the same-day countdown.
The timer text is colored with the active session color when open, or
dimmed when the session is waiting to open.
DAY TOTAL ROW
When one or more sessions have "In Day Total" checked in their settings,
a Day Total row appears at the bottom of the dashboard. It shows:
- The sum of all Volume values from today's In-Day-Total sessions
- The average Sigma across those sessions
Critically , Day Total counts only sessions that have actually run since the
last anchor-session reset — not yesterday's data. If ASIA (the default anchor)
opened at 18:00 EST and New York has not yet run today, New York's data from
the previous day will appear in its row (dimmed) but will not be included in
Day Total.
YESTERDAY ROW
When all sessions have closed, a Yesterday row appears showing the prior
trading day's totals for comparison. This row disappears once the new
trading day begins.
STALE DATA — THREE BRIGHTNESS LEVELS
The dashboard uses text brightness to communicate data age at a glance:
Full brightness — session is currently active (live data)
Dimmed — session ran and closed today (today's snapshot)
More dimmed — session has data from the previous day (no run today yet)
Near-invisible — session has no data at all (never run or newly enabled)
The dim percentage is configurable ("Stale data text dim", 0–90%).
RESET LOGIC — HOW THE TRADING DAY IS DEFINED
The dashboard needs to know when a new trading day begins. This is controlled
by "Reset Stats when Session starts" in the Dashboard group (default: A = ASIA).
When the selected anchor session opens:
- All "ran today" tracking flags are cleared
- Day Total recalculates from zero
- Sessions not yet run show their previous data dimmed until they run again
Snapshot data inside each session's measurement function persists until the
session runs again and overwrites it. This means US pre-NY data from 08:30
yesterday is still visible in the dashboard at 04:00 today, correctly dimmed,
and correctly excluded from Day Total.
VOLUME MEASUREMENT WINDOW
Each session has a separate "Vol window" session input. By default this matches
the display session, but you can narrow it. For example, you could display the
full 18-hour ASIA box but only measure volume for the first two hours of
activity. The Vol window does not affect the displayed box or overlays —
it only affects Volume, Sigma, Buy/Sell, and Trend statistics.
DASHBOARD COLORS (configurable)
Active cell background — highlight color for currently open sessions
Inactive cell background — color for closed sessions with today's data
Text color — all non-highlighted cell text
Border color — table grid lines
Background — dashboard panel fill and transparency
Change Up / Down / Flat — three independent colors for the Chg column
Stale data dim % — how strongly to dim closed and yesterday data
=============================================================================
UNDERSTANDING MEAN vs VWAP
=============================================================================
Mean is the simple average of all closing prices within the session:
(Close₁ + Close₂ + ... + Closeₙ) / N
Every bar contributes equally regardless of how much was traded. Mean shows
the geometric center of price over time — a neutral, unweighted reference.
VWAP (Volume Weighted Average Price):
Σ(Close × Volume) / Σ(Volume)
Bars with high volume pull the VWAP toward them. Institutions use VWAP as
the primary benchmark for execution quality. A price above VWAP signals that
the session is running bullish on a volume-weighted basis; below is bearish.
The practical difference: when a sharp directional move occurs on thin volume,
Mean shifts significantly because it counts each bar equally. VWAP barely
reacts because little volume participated in the move. This divergence — Mean
far from VWAP — can itself be a signal that the move lacks conviction.
=============================================================================
DEFAULT SESSION CONFIGURATION (UTC-5 / New York EST)
=============================================================================
A ASIA 18:00 – 02:00 In Day Total, Anchor Reset (enabled)
B LONDON 02:00 – 08:00 In Day Total (enabled)
C NEW YORK 08:00 – 17:00 In Day Total (enabled)
D Sydney 18:00 – 00:00 (enabled)
E Tokyo I 19:00 – 21:30 (enabled)
F Hong Kong 20:30 – 03:00 (enabled)
G Singapore I 20:00 – 23:00 (enabled)
H Tokyo II 22:30 – 01:00 (enabled)
I Singapore II 06:00 – 10:00 (enabled)
J EU pre-Lon 02:00 – 03:00 (enabled)
K US pre-NY 08:00 – 09:30 (enabled)
All times are in UTC-5 (New York EST). Adjust the UTC Offset setting or enable
"Use Exchange Timezone" to match your local time.
Sessions H through K are disabled by default. Enable them in their respective
settings group. Note that newly enabled sessions will show no data until
they have run at least once after being activated.
=============================================================================
SETUP GUIDE — GETTING STARTED
=============================================================================
Step 1 — Timezone
Open Settings → Timezone. If your instrument uses the exchange timezone
natively, enable "Use Exchange Timezone". Otherwise set UTC Offset to your
local offset (e.g. -5 for New York EST, +1 for Berlin CET). If your region
uses DST and TradingView does not adjust automatically, update this offset
manually at DST transitions.
Step 2 — Sessions
Sessions A (ASIA), B (LONDON), and C (NEW YORK) are enabled by default with
commonly used forex hours. Adjust the session time strings to match your
instrument's actual active hours. Enable additional sessions (D through K) as
needed from their settings groups.
Step 3 — Dashboard
Open Settings → Dashboard. Enable "Show Dashboard". Choose your preferred
position and size. Enable "Volume & Sigma columns" for full statistics.
Enable "Show Timer column" to see live countdowns. Configure which sessions
should contribute to Day Total via the "In Day Total" checkbox in each
session's group.
Step 4 — Overlays
For each session you want to analyze deeply, enable the overlays relevant
to your strategy. Recommended starting set: Range Box (always on), VWAP for
institutional context, Mean for a price-weighted counterpart, Std Band for
volatility context.
Step 5 — Extended H/L Lines
Enable "Ext H/L" in any session group to project that session's previous
High and Low forward as S/R references. Set "Max Extended H/L Lines" in
Range Settings to a comfortable number (default: 10 pairs total).
Step 6 — Days Back
If your chart history is long and performance is slow, set "Last N sessions"
in each session group to limit how many occurrences are drawn (e.g. 5 to 20).
=============================================================================
ALERTS
=============================================================================
22 alert conditions are available — one "Session Start" and one "Session End"
for each of the 11 sessions. Alerts fire only when the corresponding session's
"Show" toggle is enabled. Set alerts via the Add Alert dialog in TradingView,
selecting this indicator from the condition dropdown.
=============================================================================
LIMITATIONS AND KNOWN BEHAVIOR
=============================================================================
Buy/Sell volume approximation
Up-bar (Close ≥ Open) = Buy volume. Down-bar = Sell volume. True tick-level
data is not accessible in Pine Script. Treat this column as directional
sentiment, not precise order flow.
Initial load time
11 request.security calls at 1-minute resolution cause a delay when first
applying the indicator to a chart with long history. This is a Pine Script
constraint — the 1m resolution is required for accuracy on higher timeframes.
request.security usage
This script uses 12 of Pine Script's 40 allowed request.security calls
(11 session functions + 1 anchor-reset detector), leaving 28 available
if you build on top of this script.
Short sessions on high timeframes
Sessions shorter than the chart's bar duration (e.g. a 30-minute session on
a 4H chart) may not be detected. Use a lower timeframe for short sessions.
Timer and market holidays
The countdown timer uses calendar arithmetic, not an exchange trading calendar.
On public holidays the timer will count down to the session time as if it
were a normal trading day. Weekend detection (Friday evening, Saturday) is
handled correctly for standard Mon–Fri market hours.
Dashboard layout
Table positions are limited to the four corners as defined by Pine Script's
table API. Sub-corner pixel positioning is not supported.
=============================================================================
CREDITS
=============================================================================
Original indicator: Sessions by LuxAlgo
This derivative is an independent rewrite published under CC BY-NC-SA 4.0.
creativecommons.org
Commercial use is prohibited. Derivatives must carry the same license and
credit the original work. Indicator

Indicator

Indicator

Indicator

LBMA London Gold Fix Times [Auto DST]## Overview
This lightweight indicator automatically marks the **LBMA Gold Price Fixing** times on your chart using vertical lines. It is designed specifically for **XAUUSD (Gold)** traders who need to monitor institutional liquidity and volatility shifts during the London session.
The indicator tracks the two key daily fixing moments:
* **AM Fix:** 10:30 (London Time)
* **PM Fix:** 15:00 (London Time)
## Key Features
* **🌍 Auto Daylight Saving Time (DST):** Built with the `Europe/London` timezone parameter. It automatically adjusts to British Summer Time (BST) and GMT, so you never have to manually change the UTC offset settings.
* **⚡ Minimalist Design:** Draws clean vertical lines without cluttering your chart with text labels.
* **🎨 Fully Customizable:** You can adjust the line color, width, and style (Solid, Dashed, Dotted) for both AM and PM sessions independently.
## Why are these times important?
The London Gold Fix (LBMA Gold Price) is the global benchmark for physical gold settlement. Major institutions, central banks, and mining companies settle contracts at these times. Consequently, **10:30** and **15:00** (London time) often witness:
1. Significant spikes in volatility.
2. Trend reversals or accelerations.
3. Massive volume injection.
## Usage Tips
* **Timeframe:** This indicator works best on **Intraday Timeframes** (1-minute to 30-minute charts).
* *Note:* It may not be visible on H1 (1-hour) charts or higher because the fix times (e.g., 10:30) occur in the middle of an hourly candle.
* **Setup:** Simply add it to your chart. No timezone configuration is required; the script calculates London time internally.
## Settings
* **AM Fix Color:** Default is Blue (London Morning).
* **PM Fix Color:** Default is Red (London Afternoon/US Morning overlap).
* **Line Style:** Choose between Solid, Dashed, or Dotted lines.
概述 (Overview)
这是一个轻量级的辅助指标,通过垂直线在图表上自动标记 LBMA 伦敦金定盘价(LBMA Gold Price Fixing) 的时刻。它是专为 XAUUSD(黄金) 交易者设计的,旨在帮助大家捕捉伦敦时段内机构流动性和市场波动的关键节点。
该指标会自动锁定每天两个核心的定盘时间:
上午定盘 (AM Fix): 10:30 (伦敦时间)
下午定盘 (PM Fix): 15:00 (伦敦时间)
主要功能 (Key Features)
🌍 自动识别夏令时 (Auto DST): 代码内置 Europe/London 时区参数。无论英国处于夏令时 (BST) 还是冬令时 (GMT),指标都会自动精准对齐,无需用户手动调整时区设置。
⚡ 极简主义设计: 仅绘制干净的垂直线,不显示任何文字标签,避免遮挡K线或干扰视线。
🎨 高度可定制: 您可以独立调整上午和下午定盘线的颜色、粗细以及样式(实线、虚线或点线)。
为什么要关注这两个时间点?
LBMA 伦敦金定盘价是全球实物黄金结算的基准价格。大型金融机构、中央银行和金矿公司通常会在这个时间点集中进行合约结算。因此,在伦敦时间 10:30 和 15:00 前后,市场经常会出现:
波动率瞬间激增。
短期趋势的反转或加速。
巨量成交量的涌入。
使用建议 (Usage Tips)
适用周期: 建议在 日内分时图(1分钟、5分钟、15分钟或30分钟)上使用。
注意: 在 1小时 (H1) 或更大的周期上,线条可能无法显示,因为定盘时间(如 10:30)发生在整点K线的内部,无法被单独标记。
设置方法: 加载指标即可使用。无论您本地电脑的时间设置如何,脚本内部会自动计算正确的伦敦时间。
参数设置 (Settings)
AM Fix Color: 上午定盘线颜色(默认为蓝色)。
PM Fix Color: 下午定盘线颜色(默认为红色,此时往往也是美盘初期的波动高峰)。
Line Style: 线条样式选择(实线、虚线、点线)。 Indicator

ORBs, EMAs, AVWAPThis Pine Script (version 6) is a multi-session trading indicator that combines Opening Range Breakouts (ORBs), Exponential Moving Averages (EMAs), and an Anchored VWAP (AVWAP) system — all in one overlay script for TradingView.
Here’s a clear breakdown of its structure and functionality:
🕒 1. Session Logic and ORB Calculation
Purpose: Identify and plot the high and low of the first 30 minutes (default) for the Tokyo, London, and New York trading sessions.
Session Anchors (NY time):
Tokyo → 20:00
London → 03:00
New York → 09:30
(All configurable in inputs.)
ORB Duration: Default is 30 minutes (orbDurationMin), also user-configurable.
Resets:
London and NY ORBs reset at the start of each new New York trading day (17:00 NY time).
Tokyo ORB resets independently using a stored timestamp.
Process:
For each session:
While the time is within the ORB window, the script captures the session’s high and low.
Once the window closes, those levels remain plotted until reset.
Plot Colors:
Tokyo → Yellow (#fecc02)
London → Gray (#8c9a9c)
New York → Magenta (#ff00c8)
These form visible horizontal lines marking the prior session ranges — useful for breakout or retest trading setups.
📈 2. EMA System
Purpose: Provide trend and dynamic support/resistance guidance.
It calculates and plots four EMAs:
EMA Period Color Purpose
EMA 9 Short-term Green Fast signal
EMA 20 Short-term Red Confirms direction
EMA 113 Medium Aqua Trend filter
EMA 200 Long-term Orange Macro trend baseline
Each EMA is plotted directly on the price chart for visual confluence with ORB and VWAP levels.
⚖️ 3. Anchored VWAP (AVWAP)
Purpose: Display a volume-weighted average price anchored to specific timeframes or events, optionally with dynamic deviation or percentage bands.
Features:
Anchor Options:
Time-based: Session, Week, Month, Quarter, Year, Decade, Century
Event-based: Earnings, Dividends, Splits
VWAP resets when the chosen anchor condition is met (e.g., new month, new earnings event, etc.).
Bands:
Up to three levels of symmetric upper/lower bands.
Choose between Standard Deviation or Percentage-based widths.
Display Toggles:
Each band’s visibility is optional.
VWAP can be hidden on 1D+ timeframes (hideonDWM option).
Color Scheme:
VWAP: Fuchsia (magenta-pink) line
Bands: Green / Olive / Teal with light-filled zones
⚙️ 4. Technical Highlights
Uses ta.vwap() with built-in band calculations.
Handles instruments with or without volume (errors if missing volume).
Uses time-zone aware timestamps (timestamp(NY_TZ, …)).
Uses timeframe.change() to detect new anchors for the VWAP.
Employs persistent variables (var) to maintain session state across bars.
💡 In Practice
This indicator is designed for multi-session intraday traders who:
Trade Tokyo, London, or NY open breakouts or retests.
Use EMA stacking and crossovers for trend confirmation.
Use Anchored VWAP as a fair-value or mean-reversion reference.
Need clear visual structure across different market sessions.
It provides strong session separation, trend context, and volume-weighted price reference — making it ideal for discretionary or semi-systematic trading strategies focused on liquidity zones and session momentum. Indicator

Indicator

STOCK EXCHANGE + SILVER BULLET FRAMESThis script is an updated version of the " NY/LDN/TOK Stock Exchange Opening Hours " script.
Objective
Displays global stock exchange sessions (New York, London, Tokyo) with session frames, highs/lows, and opening lines. Includes ICT Silver Bullet windows (NY, London, Tokyo) with configurable shading. Past sessions are frozen at close, ongoing sessions update dynamically until closure, and upcoming sessions are pre-drawn. Fully customizable with options for weekends, labels, padding, opacity, and individual session toggles.
It is designed to help traders quickly interpret market context, liquidity zones, and session-based price behavior.
Main Features
Past sessions (historical data)
• Session Frames:
• Each box is frozen at the session’s close.
• The left edge aligns with the opening time, while the right edge is fixed at the closing time.
• The top and bottom reflect the highest and lowest prices during the session.
• Session Labels:
• Names (NY, LDN, TOK) displayed above the frame, aligned left, in the same color as the frame.
• Opening Lines:
• Vertical dotted lines mark the start of each session.
Ongoing and upcoming sessions (live market)
• Dynamic Session Frames:
• The right edge is locked at the future close time.
• The top and bottom update in real time as new highs and lows form.
• Labels and Lines:
• The session label is visible above the active frame.
• Opening lines are drawn as soon as the session begins.
Silver Bullet Time Windows (ICT concept)
• Highlights key liquidity windows within sessions:
• New York: 10:00–11:00 and 14:00–15:00
• London: 08:00–09:00
• Tokyo: 09:00–10:00
• Silver Bullet zones are shaded with configurable opacity (default 5%).
Customization and Options
• Enable or disable individual sessions (NY, London, Tokyo).
• Toggle weekend display (frames and Silver Bullets).
• Adjust label size, padding, and text visibility.
• Control frame opacity (default 0%).
• Optimized memory management with automatic pruning of old graphical objects.
Indicator

Indicator

Indicator

Sessions Full Markets [TradingFinder] Forex Stocks Index 7 Time🔵 Introduction
In global financial markets, particularly in FOREX and stocks, precise timing of trading sessions plays a crucial role in the success of traders. Each trading session—Asian, European, and American—has its own unique characteristics in terms of volatility and trading volume.
The Asian session (Tokyo), Sydney session, Shanghai session, European session (London and Frankfurt), and American session (New York AM and New York PM) are examples of these trading sessions, each of which opens and closes at specific times.
This session indicator also includes a Time Convertor, enabling users to view FOREX market hours based on GMT, UTC, EST, and local time. Another valuable feature of this indicator is the automatic detection of Daylight Saving Time (DST), which automatically applies time changes for the New York, London, and Sydney sessions.
🔵 How to Use
The indicator also displays session times based on the exact opening and closing times for each geographic region. Users can utilize this indicator to view trading hours either locally or in UTC time, and if needed, set their own custom trading times.
Additionally, the session information table includes the start and end times of each session and whether they are open or closed. This functionality helps traders make better trading decisions by using accurate and precise time data.
Key Features of the Session Indicator
The session indicator is a versatile and advanced tool that provides several unique features for traders.
Some of these features are :
• Automatic Daylight Saving Time (DST) Detection : This indicator dynamically detects Daylight Saving Time (DST) changes for various trading sessions, including New York, London, and Sydney, without requiring manual adjustments. This feature allows traders to manage their trades without worrying about time changes.
Below are the start and end dates for DST in the New York, London, and Sydney trading sessions :
1. New York :
Start of DST: Second Sunday of March, at 2:00 AM.
End of DST: First Sunday of November, at 2:00 AM
2. London :
Start of DST: Last Sunday of March, at 1:00 AM.
End of DST: Last Sunday of October, at 2:00 AM.
3. Sydney :
Start of DST: First Sunday of October, at 2:00 AM.
End of DST: First Sunday of April, at 3:00 AM.
• Session Display Based on Different Time Zones : The session indicator allows users to view trading times based on different time zones, such as UTC, the local time of each market, or the user’s local time. This feature is especially useful for traders operating in diverse geographic regions.
• Custom Trading Time Setup : Another notable feature of this indicator is the ability to set custom trading times. Traders can adjust their own trading times according to their personal strategies and benefit from this flexibility.
• Session Information Table : The session indicator provides a complete information table that includes the exact start and end times of each trading session and whether they are open or closed. This table helps users simultaneously and accurately monitor the status of all trading sessions and make better trading decisions.
🟣 Session Trading Hours Based on Market Mode and Time Zones
The session indicator provides precise information on the start and end times of trading sessions.
These times are adjusted based on different market modes (FOREX, stocks, and TFlab suggestions) and time zones (UTC and local time) :
🟣 (FOREX Session Time) Forex Market Mode
• Sessions in UTC (DST inactive) :
Sydney: 22:00 - 06:00
Tokyo: 23:00 - 07:00
Shanghai: 01:00 - 09:00
Asia: 22:00 - 07:00
Europe: 07:00 - 16:00
London: 08:00 - 16:00
New York: 13:00 - 21:00
• Sessions in UTC (DST active) :
Sydney: 21:00 - 05:00
Tokyo: 23:00 - 07:00
Shanghai: 01:00 - 09:00
Asia: 21:00 - 07:00
Europe: 06:00 - 15:00
London: 07:00 - 15:00
New York: 12:00 - 20:00
• Sessions in Local Time :
Sydney: 08:00 - 16:00
Tokyo: 08:00 - 16:00
Shanghai: 09:00 - 17:00
Asia: 22:00 - 07:00
Europe: 07:00 - 16:00
London: 08:00 - 16:00
New York: 08:00 - 16:00
🟣 Stock Market Trading Hours (Stock Market Mode)
• Sessions in UTC (DST inactive) :
Sydney: 00:00 - 06:00
Asia: 00:00 - 06:00
Europe: 07:00 - 16:30
London: 08:00 - 16:30
New York: 14:30 - 21:00
Tokyo: 00:00 - 06:00
Shanghai: 01:30 - 07:00
• Sessions in UTC (DST active) :
Sydney: 23:00 - 05:00
Asia: 23:00 - 06:00
Europe: 06:00 - 15:30
London: 07:00 - 15:30
New York: 13:30 - 20:00
Tokyo: 00:00 - 06:00
Shanghai: 01:30 - 07:00
• Sessions in Local Time:
Sydney: 10:00 - 16:00
Tokyo: 09:00 - 15:00
Shanghai: 09:30 - 15:00
Asia: 00:00 - 06:00
Europe: 07:00 - 16:30
London: 08:00 - 16:30
New York: 09:30 - 16:00
🟣 TFlab Suggestion Mode
• Sessions in UTC (DST inactive) :
Sydney: 23:00 - 05:00
Tokyo: 00:00 - 06:00
Shanghai: 01:00 - 09:00
Asia: 23:00 - 06:00
Europe: 07:00 - 16:00
London: 08:00 - 16:00
New York: 13:00 - 21:00
• Sessions in UTC (DST active) :
Sydney: 22:00 - 04:00
Tokyo: 00:00 - 06:00
Shanghai: 01:00 - 09:00
Asia: 22:00 - 06:00
Europe: 06:00 - 15:00
London: 07:00 - 15:00
New York: 12:00 - 20:00
• Sessions in Local Time :
Sydney: 09:00 - 16:00
Tokyo: 09:00 - 15:00
Shanghai: 09:00 - 17:00
Asia: 23:00 - 06:00
Europe: 07:00 - 16:00
London: 08:00 - 16:00
New York: 08:00 - 16:00
🔵 Setting
Using the session indicator is straightforward and practical. Users can add this indicator to their trading chart and take advantage of its features.
The usage steps are as follows :
Selecting Market Mode : The user can choose one of the three main modes.
Forex Market Mode: Displays the forex market trading hours.
oStock Market Mode: Displays the trading hours of stock exchanges.
Custom Mode: Allows the user to set trading hours based on their needs.
TFlab Suggestion Mode: Displays the higher volume hours of the forex market in Asia.
Setting the Time Zone : The indicator allows displaying sessions based on various time zones. The user can select one of the following options:
UTC (Coordinated Universal Time)
Local Time of the Session
User’s Local Time
Displaying Comprehensive Session Information : The session information table includes the opening and closing times of each session and whether they are open or closed. This table helps users monitor all sessions at a glance and precisely set the best time for entering and exiting trades.
🔵Conclusion
The session indicator is a highly efficient and essential tool for active traders in the FOREX and stock markets. With its unique features, such as automatic DST detection and the ability to display sessions based on different time zones, the session indicator helps traders to precisely and efficiently adjust their trading activities.
This indicator not only shows users the exact opening and closing times of sessions, but by providing a session status table, it helps traders identify the best times to enter and exit trades. Moreover, the ability to set custom trading times allows traders to easily personalize their trading schedules according to their strategies.
In conclusion, using the session indicator ensures that traders are continuously and accurately informed of time changes and the opening and closing hours of markets, eliminating the need for manual updates to align with DST changes. These features enable traders to optimize their trading strategies with greater confidence and up-to-date information, allowing them to capitalize on opportunities in the market.
Indicator

Indicator

Indicator

Indicator

Sessions [TradingFinder] New York, London, Tokyo & Sydney ForexTiming is one of the influential factors in a trader's position. This indicator categorizes transactions into three sessions (Asia, Europe, and America). Five significant trading cities (New York, London, Frankfurt, Tokyo, and Sydney) are selectable.
I recommend using the tool on a 5-minute time frame, but it is usable on all time frames.
Settings:
• Trading sessions: Display or hide each trading session as needed.
• Color: Change the color of each box.
• Session time intervals: The default is based on the main working hours for each time interval and can be adjusted.
• Information table: Delete or display additional information table.
Information Table:
• Trading sessions
• Opening and closing times of each trading session
How to Use:
Initiating trading sessions involves entering with increased liquidity, and the market usually experiences significant movements. Many trading strategies are based on "time" and "session openings." This tool empowers traders to focus intensely on each time interval.
These trading sessions are crucial for all Forex, stock, and index traders:
The total price ceiling and floor in the Asia session (Tokyo and Sydney) are crucial for traders in the European session.
The European session starts with Frankfurt, and an hour later, London begins, collectively forming the European session.
The dashboard provides additional information, displaying hours based on UTC.
Customization options are considered in all sections so that everyone can apply their own settings.
Important: Default times are the most accurate for each region, and in most indicators, this time is not correctly selected. Therefore, the level of influence and time intervals are specified at the beginning of each session. If you are using another indicator, match its default time to the announced time and share the results with me in the comments.
Indicator

London BreakOut ClassicHey there, this is my first time publishing a strategy. The strategy is based on the London Breakout Idea, an incredibly popular concept with abundant information available online.
Let me summarize the London Breakout Strategy in a nutshell: It involves identifying key price levels based on the Tokyo Session before the London Session starts. Typically, these key levels are the high and low of the previous Tokyo session. If a breakout occurs during the London session, you simply follow the trend.
The purpose of this code
After conducting my research, I came across numerous posts, videos, and articles discussing the London Breakout Strategy. I aimed to automatically test it myself to verify whether the claims made by these so-called trading gurus are accurate or not. Consequently, I wrote this script to gain an understanding of how this strategy would perform if I were to follow its basic settings blindly.
Explanation of drawings on the chart:
Red or Green Box: A box is drawn on our chart displaying the exact range of the Tokyo trading session. This box is colored red if the trend during the session was downward and green if it was upward. The box is always drawn between the high and the low between 0:00 AM and 7:00 AM UTC. You can change the settings via the Inputs "Session time Tokyo" & "Session time zone".
Green Background: The green background represents the London trading session. My code allows us to make entries only during this time. If we haven't entered a trade, any pending orders are canceled. I've also programmed a timeout at 11 pm to ensure every trade is closed before the new Tokyo session begins.
Red Line: The red line is automatically placed in the middle of our previous Tokyo range. This line acts as our stop loss. If we cross this line after entering a trade but before reaching our take profit, we'll be stopped out.
When do we enter a trade?
We wait for a candle body to close outside of the previous Tokyo range to enter a trade with the opening of the next candle. We only enter one trade per day.
Where do we put our Take Profit?
The code calculates the exact distance between our entry point and the stop loss. We are trading a risk-reward ratio of 1:1 by default, meaning our take profit is always the same number of pips away from our entry as the stop loss. The Stop Loss is always defined by the red line on the chart. You can change the risk-reward ratio via the inputs setting "CRV", to see how the result changes.
What is the purpose of this script?
I wanted to backtest the London breakout strategy to see how it actually works. Therefore, I wrote this code so that everybody can test it for themselves. You can change the settings and see how the result changes. Typically, you should test this strategy on forex markets and on either 1Min, 5 Min, or 15 Min timeframe.
What are the results?
Over the last 3-6 months (over 100 trades), trading the strategy with my default settings hasn't proven to be very successful. Consequently, I do not recommend trading this strategy blindly. The purpose of this code is to provide you with a foundation for the London Breakout Strategy, allowing you to modify and enhance it according to your preferences. If you're contemplating whether to give it a try, you can assess the results from the past months by using this code as a starting point.
Strategy
