OPEN-SOURCE SCRIPT
已更新 Session Range Candles + 25% Level

# Session Range Candles + 25% Level (SRC25)
** Session Range Candles + 25% Level (SRC25)**, also known as The Essence Model, is a multi-session analysis tool for futures and forex traders who use an ICT-influenced or session-based framework. It consolidates the three primary trading sessions — Asia, London, and New York — into a single, clean overlay that surfaces the session structure, key price levels, and historical behavioural statistics without requiring you to switch timeframes or manually draw levels each day.
The indicator is built around one core idea: that understanding the relationship between how Asia and London sessions form relative to each other, and how New York then behaves within that context, gives you a repeatable, statistical basis for anticipating price delivery. Everything the indicator draws and measures flows from that relationship.
---
## How It Works — Core Concepts
### Session Candles
For each of the three sessions, the indicator builds a composite candlestick representing the full session range — open, high, low, and close — updated live as each session progresses. These session candles are displayed to the right of the current price in the chart's future space, positioned side by side so you can see all three sessions at a glance without cluttering the main chart.
Asia runs 18:00–02:00 ET.
London runs 02:00–08:00 ET.
New York runs 08:00–17:00 ET.
Each candle shows its body (semi-transparent fill), upper and lower wicks, and high/low price labels. The candles are monochrome — direction is read from body position (open vs close) rather than colour, keeping the display uncluttered.
**Candle display rules by session phase:**
During the **Asia session**, only the live Asia candle is shown. London and NY slots are empty — no stale prior-day candles carry over into a new cycle.
During the **London session**, the completed Asia candle is shown alongside the live London candle. The NY slot remains empty until NY opens.
During the **NY session**, all three candles are visible: the completed Asia, the completed London, and the live NY updating in real time.
**Between sessions** (after NY closes and before the next Asia opens), all three completed candles remain visible until the next Asia session starts the cycle fresh.
### The 25% Level
For each completed session candle, the indicator calculates a **25% level** based on the candle's body (the open-to-close range), direction-aware:
On a **bullish candle** (close ≥ open), the level sits in the upper quarter of the body — body top minus 25% of the body range. This marks the zone above which the candle is considered to have delivered into premium.
On a **bearish candle** (close < open), the level sits in the lower quarter of the body — body bottom plus 25% of the body range. This marks the zone below which the candle has delivered into discount.
The 25% level appears in two places. First, as a short horizontal tick extending rightward from the candle body in the session candle panel. Second, as a horizontal line drawn across the main price chart, running from the session's opening bar to the current bar, labelled with the session name and "25%".
The chart line is what traders interact with in real time. It shows where the 25% level sits relative to live price action. The stats table then quantifies — historically and filtered by today's regime — how NY tends to interact with that London 25% level, making it the primary reference for intraday entry context.
### Session H/M/L/O Lines
The indicator also draws up to four horizontal reference lines extending from the session's opening bar to the current bar: the session **High**, the session **Mid** (arithmetic midpoint of high and low), the session **Low**, and the session **Open**. Each is independently togglable and labelled at the right edge. These lines give you the most relevant reference prices from completed sessions without needing to draw them manually.
### Session Open Vertical Lines
At the exact bar where each session opens, a vertical line is drawn extending the full height of the chart, labelled with the session name. These act as visual dividers making session boundaries immediately clear.
---
## Session Structure (Regime)
The core analytical concept driving the statistics table is the structural relationship between Asia and London — specifically, how London's high and low relate to Asia's high and low. The indicator classifies each completed Asia→London pair into one of five regimes, compared wick-to-wick (full session highs and lows, not bodies):
**London Engulfs Asia** — London's high exceeded Asia's high AND London's low went below Asia's low. London expanded beyond Asia in both directions.
**Asia Engulfs London** — Asia's high was at or above London's high AND Asia's low was at or below London's low. London formed entirely within Asia's range.
**London Partial Up** — London's high exceeded Asia's high, but London's low held at or above Asia's low. London broke out to the upside only.
**London Partial Down** — London's low went below Asia's low, but London's high stayed at or below Asia's high. London broke out to the downside only.
**Inside** — London's range fell entirely within Asia's range without touching either extreme.
**Important:** the regime is only confirmed once London has fully closed (i.e. when NY opens). During the Asia and London sessions, the Structure row in the stats table displays "Pending (London open)" to prevent showing an incomplete or misleading classification. The regime shown in the table always refers to the completed Asia→London pair for the current trading day.
---
## Stats Table
The stats table is the indicator's most powerful feature. It answers the question: given today's Asia-London structure, how has New York historically behaved?
### How the History Is Built
Each time a full Asia→London→NY cycle completes — detected at the opening bar of the next Asia session — that cycle's data is committed to a historical array. The number of sessions retained is controlled by the Lookback input (default 252, approximately one trading year). Every percentage shown in the table is derived from this rolling history.
The stats loop filters the history to only those cycles where the Asia-London regime **matches today's current regime**, then calculates frequencies across that filtered subset.
### REGIME Section
**Structure** shows today's Asia-London regime classification, or "Pending (London open)" while London is still active.
**Occurrences** shows how many times this regime has appeared in the lookback window, displayed as N / total sessions analysed. This is your sample size indicator — treat regimes with fewer than 15–20 occurrences with caution.
**Asia Range (avg | cur)** shows the average Asia session range across all sessions in the lookback period, followed by today's Asia range in points.
**London Range (avg | cur)** shows the same for London — historical average versus today's current range in points.
### NY BEHAVIOUR Section
All percentages here are filtered to sessions where the Asia-London regime matches today's.
**NY Bullish** — the percentage of matching sessions where NY closed above its open.
**London High Taken** — the percentage where NY's high reached or exceeded London's session high.
**London Low Taken** — the percentage where NY's low reached or went below London's session low.
**Sequential H+L** — the percentage where NY took both London's high and London's low in the same session. A high reading here suggests NY tends to run both sides of the London range under this regime, implying choppier or more two-sided price action.
**NY Open Above Lon Mid** — the percentage where NY's opening price was above the London session midpoint. This can be read alongside NY Bullish to understand whether the open position tends to predict the close direction.
### Wick Interaction Rows
These rows adapt based on whether today's London session closed bullish or bearish, measuring how NY interacted with the London 25% level. The denominator for all wick rows is the number of bullish (or bearish) London sessions within the regime-matched set — not the total regime count.
**When London closed bullish:**
*NY Stays Above Lon 25%* — the percentage of bullish London sessions (within the regime) where NY's low never traded below the London 25% level. NY respected the upper quarter of the London body throughout the session.
*Wick < Lon 25% → Close Above* — NY wicked below the London 25% level at some point but ultimately closed above it. This is the classic liquidity sweep and recovery pattern — historically the most operationally useful row for identifying long entry context when NY trades into that zone.
*Wick < Lon 25% → Close Below* — NY wicked below the London 25% level and failed to recover. A high reading here would warn that trading below the 25% zone is a bearish continuation signal rather than a sweep.
*Wick < Lon Low → Close Above* — NY extended below London's full session low (a complete sweep of the London low) but closed back above it. A high reading here indicates the London low is frequently swept as a stop-hunt before NY recovers.
**When London closed bearish:**
*NY Stays Below Lon 25%* — NY's high never reached the London 25% level. The bearish delivery was uninterrupted.
*Wick > Lon 25% → Close Below* — NY wicked above the London 25% level but closed below it. The mirror of the bullish sweep pattern — potential short entry context when NY rallies into that zone.
*Wick > Lon 25% → Close Above* — NY wicked above the 25% level and failed to close below it. A high reading signals that moves above the 25% zone tend to hold, warning against fading rallies.
*Wick > Lon High → Close Below* — NY extended above London's full high but closed back below it. A high reading indicates the London high is frequently swept before NY resumes lower.
### TODAY Section
**London 25%** — whether the completed London session's close was above its open ("Above (bull)") or below its open ("Below (bear)"). This determines which set of wick interaction rows is shown.
**NY Open** — whether NY's opening price was above or below the London session midpoint. Updated once NY opens.
**London High** — whether NY has taken London's high yet ("Taken ✓") or not yet ("Pending"). Updates live during the NY session.
**London Low** — whether NY has taken London's low yet ("Taken ✓") or not yet ("Pending"). Updates live during the NY session.
---
## Interpreting the Stats Table
**Step 1 — Check the regime and sample size.** Once London closes, read the Structure row. Then check Occurrences. A regime appearing 40 or more times in 252 sessions gives you a meaningful base rate. Fewer than 15 occurrences is too thin to trade mechanically from.
**Step 2 — Read the directional bias.** NY Bullish gives you the baseline expectation for NY's close direction under this regime. Combine it with NY Open Above Lon Mid — if NY opens above the London midpoint AND NY Bullish is high, the probability of a bullish close is further supported by position. If they diverge, the session is more likely to be contested.
**Step 3 — Set the 25% level expectation.** This is the most operationally useful step. If London closed bullish, look at the three wick rows. A high "Wick < Lon 25% → Close Above" reading (e.g. 60%+) tells you that historically, when NY dips below that upper quarter of the London body, it tends to recover above it. This provides a framework for anticipating where NY might seek liquidity before continuing higher, and gives you a probabilistic basis for a long setup in that zone.
**Step 4 — Assess the London level take rates.** High London High Taken combined with low London Low Taken suggests NY tends to run to the upside of the London range. High Sequential H+L suggests NY routinely sweeps both extremes — in that case, plan for multiple liquidity events rather than a clean one-directional move.
**Step 5 — Track the TODAY section during NY.** Once NY is open, the London High and London Low rows tell you in real time whether the key liquidity levels have been swept. Cross-reference with the historical rates from the behaviour section to assess whether NY is behaving consistently with its historical pattern or deviating from it.
---
## Input Configuration
### Asia, London, and NY Sessions
Each session has an identical set of inputs configured independently:
**Show [Session] Candle** enables or disables the session candle in the right-side panel.
**Show Session Open Line** draws a vertical line at the moment the session opens. The line colour, style (Solid / Dashed / Dotted), and width are configurable. An optional label can be shown alongside the line, with size options of tiny, small, or normal.
**Show H/M/L/O Lines** enables the horizontal reference lines on the main chart. Each of the four levels — High, Mid, Low, and Open — has its own toggle so you can show only the levels relevant to your workflow. The line colour, style, and width are shared across the four levels for that session. Label size is also configurable.
**Show 25% Line on Chart** enables the horizontal 25% level line on the main chart. Colour, line style, width, and label size are independently configurable per session.
*Note: NY does not have H/M/L/O or 25% chart lines while the NY session is live — those lines only appear once NY has closed, so they do not interfere with reading the active session.*
### Session Candles (shared settings)
**Offset from chart (bars)** — how far to the right of the last price bar the candle panel begins. Increase this if the candles overlap with your price action or labels.
**Candle width (bars)** — the width of each session candle box measured in bar units. Adjust to taste based on your chart zoom level.
**Spacing between candles** — the gap between adjacent session candles in bar units.
**Body fill transparency** — controls how transparent the candle body fill is. 0 is fully opaque, 100 is invisible. Default 85 gives a subtle fill.
**Show wicks** — enables the upper and lower wick lines on each session candle.
**Show high/low labels** — shows price labels at the high and low of each session candle.
**Label size** — applies to the candle price labels (tiny / small / normal).
**Show 25% tick on candle** — draws a short horizontal tick at the 25% level extending rightward from the candle body in the panel.
### Stats Table
**Show Stats Table** — master toggle for the entire table.
**Lookback (sessions)** — the number of completed Asia→London→NY cycles to include in the historical analysis. Default is 252 (approximately one trading year). Minimum 10, maximum 2000. A longer lookback smooths out regime-specific anomalies but may include structural market conditions that are no longer relevant. A shorter lookback is more reactive but produces smaller sample sizes per regime.
**Table Position** — nine position options covering all corners and edge midpoints of the chart.
**Text Size** — Tiny, Small, or Normal. Small is the default and works well on most monitor sizes.
**Background** — background colour and transparency of the table panel.
**Text colour** — colour applied to all table text.
**Border** — colour of the table cell borders and outer frame.
---
## Chart Elements Summary
**Vertical lines** at each session open, labelled Asia, London, or NY — mark the session boundaries across the full chart height.
**Session candle panel** to the right of price — three side-by-side composite candles showing the OHLC of each session, with wicks, price labels, and 25% ticks.
**Horizontal lines on the main chart** — H/M/L/O and 25% lines from completed sessions, each starting from the session's opening bar and extending to the current bar, labelled at the right edge.
**Stats table** — historical frequency analysis conditioned on today's Asia-London regime, showing NY behavioural tendencies and live session tracking.
---
## Recommended Usage
**Timeframe:** The indicator is designed for intraday charts, typically 1-minute through 15-minute. Session detection is time-based, not candle-count-based, so it works correctly on any timeframe as long as your chart covers the relevant session hours.
**Instrument:** Originally developed for NQ (Nasdaq 100 E-mini Futures). Works on any instrument that trades during the defined session windows. All session times are referenced to the America/New_York timezone.
**Daily workflow:**
During Asia — observe the Asia candle building. The H/M/L/O lines begin plotting from the Asia open. Note the range size relative to the historical average shown in the table.
At the London open — Asia is now complete. The regime begins forming as London trades relative to the Asia range. Monitor London's progress.
At the NY open — London is complete. The regime is confirmed and the stats table populates with the full historical analysis. Read the NY Behaviour section to set your expectations for the session. Note whether NY opened above or below the London midpoint, and note the current London 25% level on the chart.
During NY — use the wick interaction rows to frame entries. Watch the London High and London Low rows in the TODAY section to track whether liquidity levels are being swept. Assess NY's behaviour against the historical tendencies for this regime.
---
## Notes and Limitations
**Sample size matters.** Regimes with fewer than 15–20 occurrences in your lookback window should be treated with caution. The percentages are directionally informative but not statistically robust at small sample sizes. Always read Occurrences before relying on the behaviour rows.
**The 25% level uses candle bodies, not wicks.** It measures where price closed relative to the open, not the full session range. This is intentional — body-based levels represent committed directional delivery, while wicked extremes may represent temporary liquidity events that the body then rejected.
**Regime is confirmed at NY open only.** Showing a regime mid-London-session would compare a developing candle against a completed Asia candle, producing classifications that can change as London continues. The "Pending (London open)" display is by design.
**History is built session by session.** If you add the indicator mid-session, the current incomplete session will not be committed to history until the next Asia open. All statistics reflect only fully completed Asia→London→NY cycles.
**The wick interaction row denominators are direction-matched, not regime-total.** The bullish wick rows divide by the count of bullish London sessions within the regime. The bearish wick rows divide by bearish London sessions. This means these rows cannot be compared directly against NY Bullish or the London take-rate rows, which use the full regime count as their denominator.
** Session Range Candles + 25% Level (SRC25)**, also known as The Essence Model, is a multi-session analysis tool for futures and forex traders who use an ICT-influenced or session-based framework. It consolidates the three primary trading sessions — Asia, London, and New York — into a single, clean overlay that surfaces the session structure, key price levels, and historical behavioural statistics without requiring you to switch timeframes or manually draw levels each day.
The indicator is built around one core idea: that understanding the relationship between how Asia and London sessions form relative to each other, and how New York then behaves within that context, gives you a repeatable, statistical basis for anticipating price delivery. Everything the indicator draws and measures flows from that relationship.
---
## How It Works — Core Concepts
### Session Candles
For each of the three sessions, the indicator builds a composite candlestick representing the full session range — open, high, low, and close — updated live as each session progresses. These session candles are displayed to the right of the current price in the chart's future space, positioned side by side so you can see all three sessions at a glance without cluttering the main chart.
Asia runs 18:00–02:00 ET.
London runs 02:00–08:00 ET.
New York runs 08:00–17:00 ET.
Each candle shows its body (semi-transparent fill), upper and lower wicks, and high/low price labels. The candles are monochrome — direction is read from body position (open vs close) rather than colour, keeping the display uncluttered.
**Candle display rules by session phase:**
During the **Asia session**, only the live Asia candle is shown. London and NY slots are empty — no stale prior-day candles carry over into a new cycle.
During the **London session**, the completed Asia candle is shown alongside the live London candle. The NY slot remains empty until NY opens.
During the **NY session**, all three candles are visible: the completed Asia, the completed London, and the live NY updating in real time.
**Between sessions** (after NY closes and before the next Asia opens), all three completed candles remain visible until the next Asia session starts the cycle fresh.
### The 25% Level
For each completed session candle, the indicator calculates a **25% level** based on the candle's body (the open-to-close range), direction-aware:
On a **bullish candle** (close ≥ open), the level sits in the upper quarter of the body — body top minus 25% of the body range. This marks the zone above which the candle is considered to have delivered into premium.
On a **bearish candle** (close < open), the level sits in the lower quarter of the body — body bottom plus 25% of the body range. This marks the zone below which the candle has delivered into discount.
The 25% level appears in two places. First, as a short horizontal tick extending rightward from the candle body in the session candle panel. Second, as a horizontal line drawn across the main price chart, running from the session's opening bar to the current bar, labelled with the session name and "25%".
The chart line is what traders interact with in real time. It shows where the 25% level sits relative to live price action. The stats table then quantifies — historically and filtered by today's regime — how NY tends to interact with that London 25% level, making it the primary reference for intraday entry context.
### Session H/M/L/O Lines
The indicator also draws up to four horizontal reference lines extending from the session's opening bar to the current bar: the session **High**, the session **Mid** (arithmetic midpoint of high and low), the session **Low**, and the session **Open**. Each is independently togglable and labelled at the right edge. These lines give you the most relevant reference prices from completed sessions without needing to draw them manually.
### Session Open Vertical Lines
At the exact bar where each session opens, a vertical line is drawn extending the full height of the chart, labelled with the session name. These act as visual dividers making session boundaries immediately clear.
---
## Session Structure (Regime)
The core analytical concept driving the statistics table is the structural relationship between Asia and London — specifically, how London's high and low relate to Asia's high and low. The indicator classifies each completed Asia→London pair into one of five regimes, compared wick-to-wick (full session highs and lows, not bodies):
**London Engulfs Asia** — London's high exceeded Asia's high AND London's low went below Asia's low. London expanded beyond Asia in both directions.
**Asia Engulfs London** — Asia's high was at or above London's high AND Asia's low was at or below London's low. London formed entirely within Asia's range.
**London Partial Up** — London's high exceeded Asia's high, but London's low held at or above Asia's low. London broke out to the upside only.
**London Partial Down** — London's low went below Asia's low, but London's high stayed at or below Asia's high. London broke out to the downside only.
**Inside** — London's range fell entirely within Asia's range without touching either extreme.
**Important:** the regime is only confirmed once London has fully closed (i.e. when NY opens). During the Asia and London sessions, the Structure row in the stats table displays "Pending (London open)" to prevent showing an incomplete or misleading classification. The regime shown in the table always refers to the completed Asia→London pair for the current trading day.
---
## Stats Table
The stats table is the indicator's most powerful feature. It answers the question: given today's Asia-London structure, how has New York historically behaved?
### How the History Is Built
Each time a full Asia→London→NY cycle completes — detected at the opening bar of the next Asia session — that cycle's data is committed to a historical array. The number of sessions retained is controlled by the Lookback input (default 252, approximately one trading year). Every percentage shown in the table is derived from this rolling history.
The stats loop filters the history to only those cycles where the Asia-London regime **matches today's current regime**, then calculates frequencies across that filtered subset.
### REGIME Section
**Structure** shows today's Asia-London regime classification, or "Pending (London open)" while London is still active.
**Occurrences** shows how many times this regime has appeared in the lookback window, displayed as N / total sessions analysed. This is your sample size indicator — treat regimes with fewer than 15–20 occurrences with caution.
**Asia Range (avg | cur)** shows the average Asia session range across all sessions in the lookback period, followed by today's Asia range in points.
**London Range (avg | cur)** shows the same for London — historical average versus today's current range in points.
### NY BEHAVIOUR Section
All percentages here are filtered to sessions where the Asia-London regime matches today's.
**NY Bullish** — the percentage of matching sessions where NY closed above its open.
**London High Taken** — the percentage where NY's high reached or exceeded London's session high.
**London Low Taken** — the percentage where NY's low reached or went below London's session low.
**Sequential H+L** — the percentage where NY took both London's high and London's low in the same session. A high reading here suggests NY tends to run both sides of the London range under this regime, implying choppier or more two-sided price action.
**NY Open Above Lon Mid** — the percentage where NY's opening price was above the London session midpoint. This can be read alongside NY Bullish to understand whether the open position tends to predict the close direction.
### Wick Interaction Rows
These rows adapt based on whether today's London session closed bullish or bearish, measuring how NY interacted with the London 25% level. The denominator for all wick rows is the number of bullish (or bearish) London sessions within the regime-matched set — not the total regime count.
**When London closed bullish:**
*NY Stays Above Lon 25%* — the percentage of bullish London sessions (within the regime) where NY's low never traded below the London 25% level. NY respected the upper quarter of the London body throughout the session.
*Wick < Lon 25% → Close Above* — NY wicked below the London 25% level at some point but ultimately closed above it. This is the classic liquidity sweep and recovery pattern — historically the most operationally useful row for identifying long entry context when NY trades into that zone.
*Wick < Lon 25% → Close Below* — NY wicked below the London 25% level and failed to recover. A high reading here would warn that trading below the 25% zone is a bearish continuation signal rather than a sweep.
*Wick < Lon Low → Close Above* — NY extended below London's full session low (a complete sweep of the London low) but closed back above it. A high reading here indicates the London low is frequently swept as a stop-hunt before NY recovers.
**When London closed bearish:**
*NY Stays Below Lon 25%* — NY's high never reached the London 25% level. The bearish delivery was uninterrupted.
*Wick > Lon 25% → Close Below* — NY wicked above the London 25% level but closed below it. The mirror of the bullish sweep pattern — potential short entry context when NY rallies into that zone.
*Wick > Lon 25% → Close Above* — NY wicked above the 25% level and failed to close below it. A high reading signals that moves above the 25% zone tend to hold, warning against fading rallies.
*Wick > Lon High → Close Below* — NY extended above London's full high but closed back below it. A high reading indicates the London high is frequently swept before NY resumes lower.
### TODAY Section
**London 25%** — whether the completed London session's close was above its open ("Above (bull)") or below its open ("Below (bear)"). This determines which set of wick interaction rows is shown.
**NY Open** — whether NY's opening price was above or below the London session midpoint. Updated once NY opens.
**London High** — whether NY has taken London's high yet ("Taken ✓") or not yet ("Pending"). Updates live during the NY session.
**London Low** — whether NY has taken London's low yet ("Taken ✓") or not yet ("Pending"). Updates live during the NY session.
---
## Interpreting the Stats Table
**Step 1 — Check the regime and sample size.** Once London closes, read the Structure row. Then check Occurrences. A regime appearing 40 or more times in 252 sessions gives you a meaningful base rate. Fewer than 15 occurrences is too thin to trade mechanically from.
**Step 2 — Read the directional bias.** NY Bullish gives you the baseline expectation for NY's close direction under this regime. Combine it with NY Open Above Lon Mid — if NY opens above the London midpoint AND NY Bullish is high, the probability of a bullish close is further supported by position. If they diverge, the session is more likely to be contested.
**Step 3 — Set the 25% level expectation.** This is the most operationally useful step. If London closed bullish, look at the three wick rows. A high "Wick < Lon 25% → Close Above" reading (e.g. 60%+) tells you that historically, when NY dips below that upper quarter of the London body, it tends to recover above it. This provides a framework for anticipating where NY might seek liquidity before continuing higher, and gives you a probabilistic basis for a long setup in that zone.
**Step 4 — Assess the London level take rates.** High London High Taken combined with low London Low Taken suggests NY tends to run to the upside of the London range. High Sequential H+L suggests NY routinely sweeps both extremes — in that case, plan for multiple liquidity events rather than a clean one-directional move.
**Step 5 — Track the TODAY section during NY.** Once NY is open, the London High and London Low rows tell you in real time whether the key liquidity levels have been swept. Cross-reference with the historical rates from the behaviour section to assess whether NY is behaving consistently with its historical pattern or deviating from it.
---
## Input Configuration
### Asia, London, and NY Sessions
Each session has an identical set of inputs configured independently:
**Show [Session] Candle** enables or disables the session candle in the right-side panel.
**Show Session Open Line** draws a vertical line at the moment the session opens. The line colour, style (Solid / Dashed / Dotted), and width are configurable. An optional label can be shown alongside the line, with size options of tiny, small, or normal.
**Show H/M/L/O Lines** enables the horizontal reference lines on the main chart. Each of the four levels — High, Mid, Low, and Open — has its own toggle so you can show only the levels relevant to your workflow. The line colour, style, and width are shared across the four levels for that session. Label size is also configurable.
**Show 25% Line on Chart** enables the horizontal 25% level line on the main chart. Colour, line style, width, and label size are independently configurable per session.
*Note: NY does not have H/M/L/O or 25% chart lines while the NY session is live — those lines only appear once NY has closed, so they do not interfere with reading the active session.*
### Session Candles (shared settings)
**Offset from chart (bars)** — how far to the right of the last price bar the candle panel begins. Increase this if the candles overlap with your price action or labels.
**Candle width (bars)** — the width of each session candle box measured in bar units. Adjust to taste based on your chart zoom level.
**Spacing between candles** — the gap between adjacent session candles in bar units.
**Body fill transparency** — controls how transparent the candle body fill is. 0 is fully opaque, 100 is invisible. Default 85 gives a subtle fill.
**Show wicks** — enables the upper and lower wick lines on each session candle.
**Show high/low labels** — shows price labels at the high and low of each session candle.
**Label size** — applies to the candle price labels (tiny / small / normal).
**Show 25% tick on candle** — draws a short horizontal tick at the 25% level extending rightward from the candle body in the panel.
### Stats Table
**Show Stats Table** — master toggle for the entire table.
**Lookback (sessions)** — the number of completed Asia→London→NY cycles to include in the historical analysis. Default is 252 (approximately one trading year). Minimum 10, maximum 2000. A longer lookback smooths out regime-specific anomalies but may include structural market conditions that are no longer relevant. A shorter lookback is more reactive but produces smaller sample sizes per regime.
**Table Position** — nine position options covering all corners and edge midpoints of the chart.
**Text Size** — Tiny, Small, or Normal. Small is the default and works well on most monitor sizes.
**Background** — background colour and transparency of the table panel.
**Text colour** — colour applied to all table text.
**Border** — colour of the table cell borders and outer frame.
---
## Chart Elements Summary
**Vertical lines** at each session open, labelled Asia, London, or NY — mark the session boundaries across the full chart height.
**Session candle panel** to the right of price — three side-by-side composite candles showing the OHLC of each session, with wicks, price labels, and 25% ticks.
**Horizontal lines on the main chart** — H/M/L/O and 25% lines from completed sessions, each starting from the session's opening bar and extending to the current bar, labelled at the right edge.
**Stats table** — historical frequency analysis conditioned on today's Asia-London regime, showing NY behavioural tendencies and live session tracking.
---
## Recommended Usage
**Timeframe:** The indicator is designed for intraday charts, typically 1-minute through 15-minute. Session detection is time-based, not candle-count-based, so it works correctly on any timeframe as long as your chart covers the relevant session hours.
**Instrument:** Originally developed for NQ (Nasdaq 100 E-mini Futures). Works on any instrument that trades during the defined session windows. All session times are referenced to the America/New_York timezone.
**Daily workflow:**
During Asia — observe the Asia candle building. The H/M/L/O lines begin plotting from the Asia open. Note the range size relative to the historical average shown in the table.
At the London open — Asia is now complete. The regime begins forming as London trades relative to the Asia range. Monitor London's progress.
At the NY open — London is complete. The regime is confirmed and the stats table populates with the full historical analysis. Read the NY Behaviour section to set your expectations for the session. Note whether NY opened above or below the London midpoint, and note the current London 25% level on the chart.
During NY — use the wick interaction rows to frame entries. Watch the London High and London Low rows in the TODAY section to track whether liquidity levels are being swept. Assess NY's behaviour against the historical tendencies for this regime.
---
## Notes and Limitations
**Sample size matters.** Regimes with fewer than 15–20 occurrences in your lookback window should be treated with caution. The percentages are directionally informative but not statistically robust at small sample sizes. Always read Occurrences before relying on the behaviour rows.
**The 25% level uses candle bodies, not wicks.** It measures where price closed relative to the open, not the full session range. This is intentional — body-based levels represent committed directional delivery, while wicked extremes may represent temporary liquidity events that the body then rejected.
**Regime is confirmed at NY open only.** Showing a regime mid-London-session would compare a developing candle against a completed Asia candle, producing classifications that can change as London continues. The "Pending (London open)" display is by design.
**History is built session by session.** If you add the indicator mid-session, the current incomplete session will not be committed to history until the next Asia open. All statistics reflect only fully completed Asia→London→NY cycles.
**The wick interaction row denominators are direction-matched, not regime-total.** The bullish wick rows divide by the count of bullish London sessions within the regime. The bearish wick rows divide by bearish London sessions. This means these rows cannot be compared directly against NY Bullish or the London take-rate rows, which use the full regime count as their denominator.
發行說明
Updated to allow users to select the session times開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。