OPEN-SOURCE SCRIPT
Continuation Order Block Lite [EmpArchitect]

█ OVERVIEW
Continuation Order Block Lite [EmpArchitect] maps bullish and bearish order-block zones that form only after a defined continuation-structure sequence.
Many order-block tools identify an opposing candle and plot a zone without showing the structural sequence that made the zone relevant.
This script separates the sequence from the zone:
• CHoCH establishes a possible change in structural direction
• BUILD BOS advances the continuation sequence
• CONT BOS confirms or extends the selected continuation model
• A qualifying continuation order block is then mapped
• The zone is tracked through interaction, invalidation, expiry, or supersession
It is an analytics-only structure tool. It does not provide entries, stop losses, targets, position sizing, risk/reward, probability scores, performance claims, or trade signals.
█ WHAT IT MAPS
Bullish continuation zone:
A full-candle zone taken from the most recent bearish structure-timeframe candle before a qualifying bullish continuation break.
Bearish continuation zone:
A full-candle zone taken from the most recent bullish structure-timeframe candle before a qualifying bearish continuation break.
The script tracks one current active continuation zone. Older zones may remain visible as inactive historical boxes.
█ CONTINUATION MODELS
Model B — CHoCH + first BOS:
The structural direction changes through CHoCH. The first same-direction BOS completes the continuation sequence.
Model A — CHoCH + two BOS:
The structural direction changes through CHoCH. The first BOS builds the sequence. The second same-direction BOS completes the stricter continuation sequence.
The model changes the number of confirmed structural breaks required before the structure state becomes ready.
█ HOW THE STRUCTURE SEQUENCE WORKS
The script uses confirmed pivots from the selected structure timeframe.
A pivot high or pivot low becomes available only after the selected left-side and right-side confirmation bars have completed.
A close beyond the latest live swing level creates a structural break:
• CHoCH — the break changes the current structural direction
• BUILD BOS — the break continues the new direction but has not yet completed the selected model
• CONT BOS — the break completes or extends the selected continuation sequence
The script uses the most recently confirmed internal pivot. A newer confirmed pivot can replace an older unbroken pivot.
Equal highs and equal lows are not accepted as pivots because the comparison is strict.
█ ORDER-BLOCK ORIGIN
After a qualifying continuation break, the script searches backward through completed structure bars.
For a bullish continuation zone, it selects the most recent bearish candle.
For a bearish continuation zone, it selects the most recent bullish candle.
The complete candle high-to-low range is used. The zone is not reduced to the candle body.
The search is limited by the Origin search window setting.
The zone begins when the continuation condition is confirmed. It is not back-projected as though it had already been known on the original candle.
█ DISPLACEMENT AND FVG QUALIFICATION
A candidate zone must pass the selected displacement / imbalance rule.
Displacement is measured against ATR from the structure timeframe.
Immediate FVG refers to a three-candle imbalance anchored at the selected origin candle.
When “Require both displacement and immediate FVG” is OFF:
• Displacement OR immediate FVG can qualify the zone
When it is ON:
• Displacement AND immediate FVG are both required
The dashboard displays the active rule and ATR multiplier.
█ VISUAL LANGUAGE
The structure sequence uses different line styles so the events are not presented as equivalent.
CHoCH:
• Dashed line
• Muted directional colour
• Context transition only
BUILD BOS:
• Dotted line
• Muted label
• Sequence is still below the selected confirmation threshold
CONT BOS:
• Solid line
• Stronger directional colour
• Thicker line at the break that completes the selected continuation model
Bullish structure and zones use green.
Bearish structure and zones use orange.
Active zones use stronger solid styling.
Inactive historical zones retain their bullish or bearish colour with a faded fill and dotted outline.
█ ZONE LIFECYCLE
The script tracks the zone separately from the structural break that created it.
An active zone can be:
• Fresh
• Touched
• Gap-through
• Structurally invalidated
• Expired by maximum age
• Superseded by a newer same-side continuation zone
First interaction:
A zone is marked as touched when price first reaches the zone and overlaps its range.
Gap-through:
A gap-through event is recorded when the first interaction bar moves completely beyond the zone without overlapping it.
Structure invalidation:
• Bullish zone — a completed structure-timeframe close below the zone bottom
• Bearish zone — a completed structure-timeframe close above the zone top
Age expiry:
The zone becomes inactive after exceeding the selected maximum number of completed structure bars.
Supersession:
A newer qualifying same-side continuation zone replaces the currently active zone.
A touch does not automatically delete the zone.
█ TIMEFRAME MODES
Auto mode:
• Charts up to and including 4H use 4H structure
• Charts above 4H through 1D use 1D structure
• Charts above 1D through 1W use 1W structure
• Charts above 1W use 1M structure
Examples:
• 15m chart → 4H structure
• 1H chart → 4H structure
• 4H chart = 4H structure
• 1D chart = 1D structure
Manual mode:
Select a structure timeframe equal to or higher than the chart timeframe.
Examples:
• 1H chart → 4H structure
• 4H chart → 1D structure
• 1D chart → 1W structure
A structure timeframe below the chart timeframe is rejected.
Same-timeframe mode processes the prior completed chart bar directly.
Higher-timeframe mode processes the prior confirmed structure bar when a new structure bar begins.
█ STATUS PANEL
The panel shows the current continuation state:
• Chart timeframe and structure timeframe
• Auto or Manual mode
• Same-timeframe or higher-timeframe view
• Selected continuation model
• Current sequence progress
• Most recent structural break
• Active bullish-zone state, age, and range
• Active bearish-zone state, age, and range
• Most recent zone lifecycle event
• Current displacement / FVG qualification
• Structure-data readiness
The panel describes the current state. It does not recommend an action.
█ ALERTS
Included structure-context events:
• New bullish or bearish continuation zone
• Bullish or bearish zone interaction
• Bullish or bearish gap-through
• Zone deactivation
Zone-deactivation messages include the reason:
• Structure reversal
• Structure invalidation
• Age
• Superseded
These are structure-event alerts only. They are not trade signals.
█ WORKED EXAMPLE
Example: 1H chart with 4H structure and Model B.
1. A confirmed 4H close breaks the latest opposite-side swing and creates CHoCH.
2. A later confirmed 4H close breaks the next same-direction swing.
3. That break is displayed as CONT BOS because Model B requires CHoCH plus the first BOS.
4. The script searches backward for the most recent opposing 4H candle.
5. The full high-to-low range of that candle becomes the candidate continuation zone.
6. The candidate appears only if the displacement / immediate-FVG rule passes.
7. A touch changes the zone from fresh to touched but does not deactivate it. The zone remains active until structure reversal, structure invalidation, age expiry, or supersession.
The sequence establishes why the zone was mapped. It does not establish that price will return to the zone or that the zone will hold.
█ HOW IT DIFFERS FROM SMC STRUCTURE ENGINE
SMC Structure Engine [EmpArchitect] is a broader chart-structure tool.
It maps general CHoCH and BOS events, multiple order blocks, liquidity sweeps, break strength, zone scoring, touch counts, and broader regime context.
Continuation Order Block Lite is narrower by design.
It focuses on:
• A selected structure timeframe
• A defined CHoCH-to-BOS continuation sequence
• A continuation-specific origin candle
• Displacement / immediate-FVG qualification
• One current active continuation zone, with older zones retained as inactive history
• A compact continuation-zone lifecycle
The two scripts answer different questions.
SMC Structure Engine asks:
What is the broader structure and order-block context on this chart?
Continuation Order Block Lite asks:
Did a defined continuation sequence complete, and what happened to the resulting origin zone?
█ SETTINGS
Model settings:
• Structure timeframe mode
• Manual structure timeframe
• Trend-state model
• Pivot left bars
• Pivot right bars
• Origin search window
• Displacement threshold
• Require both displacement and immediate FVG
• Maximum zone age
Display settings:
• Show zone boxes
• Show continuation sequence
• Show structure swing levels
• Show status panel
█ IMPORTANT LIMITATIONS
• Confirmed pivots introduce delay.
• Structural breaks use completed closes, not intrabar assumptions.
• A valid continuation sequence does not prove that continuation will persist.
• A mapped zone does not imply that price will return.
• A zone interaction does not imply that the zone will hold.
• The script keeps only one current active continuation zone.
• A newer same-side zone supersedes the previous active zone.
• Zones use the full candle range, not the body.
• Equal highs and equal lows are excluded by the strict pivot definition.
• The script does not evaluate volume, liquidity sweeps, session quality, macro events, or market regime outside the defined sequence.
• Results depend on pivot settings, origin lookback, ATR threshold, FVG requirement, market, and timeframe.
• Same-timeframe and higher-timeframe views can show different structural granularity.
• Lower-liquidity or highly irregular markets may produce noisier structure.
█ NOTES
• Pine Script v6
• Public and open-source
• Built by EmpArchitect
• Analytics-only structure tool
• Designed for chart review and structural inspection
• Not a signal service
• No entries, exits, stop losses, targets, or performance claims
█ CORE IDEA
Continuation Order Block Lite does not treat every opposing candle as an order block.
It first requires a defined continuation sequence.
It then maps the origin zone and records what happened to it.
Structure observations, not signals.
Continuation Order Block Lite [EmpArchitect] maps bullish and bearish order-block zones that form only after a defined continuation-structure sequence.
Many order-block tools identify an opposing candle and plot a zone without showing the structural sequence that made the zone relevant.
This script separates the sequence from the zone:
• CHoCH establishes a possible change in structural direction
• BUILD BOS advances the continuation sequence
• CONT BOS confirms or extends the selected continuation model
• A qualifying continuation order block is then mapped
• The zone is tracked through interaction, invalidation, expiry, or supersession
It is an analytics-only structure tool. It does not provide entries, stop losses, targets, position sizing, risk/reward, probability scores, performance claims, or trade signals.
█ WHAT IT MAPS
Bullish continuation zone:
A full-candle zone taken from the most recent bearish structure-timeframe candle before a qualifying bullish continuation break.
Bearish continuation zone:
A full-candle zone taken from the most recent bullish structure-timeframe candle before a qualifying bearish continuation break.
The script tracks one current active continuation zone. Older zones may remain visible as inactive historical boxes.
█ CONTINUATION MODELS
Model B — CHoCH + first BOS:
The structural direction changes through CHoCH. The first same-direction BOS completes the continuation sequence.
Model A — CHoCH + two BOS:
The structural direction changes through CHoCH. The first BOS builds the sequence. The second same-direction BOS completes the stricter continuation sequence.
The model changes the number of confirmed structural breaks required before the structure state becomes ready.
█ HOW THE STRUCTURE SEQUENCE WORKS
The script uses confirmed pivots from the selected structure timeframe.
A pivot high or pivot low becomes available only after the selected left-side and right-side confirmation bars have completed.
A close beyond the latest live swing level creates a structural break:
• CHoCH — the break changes the current structural direction
• BUILD BOS — the break continues the new direction but has not yet completed the selected model
• CONT BOS — the break completes or extends the selected continuation sequence
The script uses the most recently confirmed internal pivot. A newer confirmed pivot can replace an older unbroken pivot.
Equal highs and equal lows are not accepted as pivots because the comparison is strict.
█ ORDER-BLOCK ORIGIN
After a qualifying continuation break, the script searches backward through completed structure bars.
For a bullish continuation zone, it selects the most recent bearish candle.
For a bearish continuation zone, it selects the most recent bullish candle.
The complete candle high-to-low range is used. The zone is not reduced to the candle body.
The search is limited by the Origin search window setting.
The zone begins when the continuation condition is confirmed. It is not back-projected as though it had already been known on the original candle.
█ DISPLACEMENT AND FVG QUALIFICATION
A candidate zone must pass the selected displacement / imbalance rule.
Displacement is measured against ATR from the structure timeframe.
Immediate FVG refers to a three-candle imbalance anchored at the selected origin candle.
When “Require both displacement and immediate FVG” is OFF:
• Displacement OR immediate FVG can qualify the zone
When it is ON:
• Displacement AND immediate FVG are both required
The dashboard displays the active rule and ATR multiplier.
█ VISUAL LANGUAGE
The structure sequence uses different line styles so the events are not presented as equivalent.
CHoCH:
• Dashed line
• Muted directional colour
• Context transition only
BUILD BOS:
• Dotted line
• Muted label
• Sequence is still below the selected confirmation threshold
CONT BOS:
• Solid line
• Stronger directional colour
• Thicker line at the break that completes the selected continuation model
Bullish structure and zones use green.
Bearish structure and zones use orange.
Active zones use stronger solid styling.
Inactive historical zones retain their bullish or bearish colour with a faded fill and dotted outline.
█ ZONE LIFECYCLE
The script tracks the zone separately from the structural break that created it.
An active zone can be:
• Fresh
• Touched
• Gap-through
• Structurally invalidated
• Expired by maximum age
• Superseded by a newer same-side continuation zone
First interaction:
A zone is marked as touched when price first reaches the zone and overlaps its range.
Gap-through:
A gap-through event is recorded when the first interaction bar moves completely beyond the zone without overlapping it.
Structure invalidation:
• Bullish zone — a completed structure-timeframe close below the zone bottom
• Bearish zone — a completed structure-timeframe close above the zone top
Age expiry:
The zone becomes inactive after exceeding the selected maximum number of completed structure bars.
Supersession:
A newer qualifying same-side continuation zone replaces the currently active zone.
A touch does not automatically delete the zone.
█ TIMEFRAME MODES
Auto mode:
• Charts up to and including 4H use 4H structure
• Charts above 4H through 1D use 1D structure
• Charts above 1D through 1W use 1W structure
• Charts above 1W use 1M structure
Examples:
• 15m chart → 4H structure
• 1H chart → 4H structure
• 4H chart = 4H structure
• 1D chart = 1D structure
Manual mode:
Select a structure timeframe equal to or higher than the chart timeframe.
Examples:
• 1H chart → 4H structure
• 4H chart → 1D structure
• 1D chart → 1W structure
A structure timeframe below the chart timeframe is rejected.
Same-timeframe mode processes the prior completed chart bar directly.
Higher-timeframe mode processes the prior confirmed structure bar when a new structure bar begins.
█ STATUS PANEL
The panel shows the current continuation state:
• Chart timeframe and structure timeframe
• Auto or Manual mode
• Same-timeframe or higher-timeframe view
• Selected continuation model
• Current sequence progress
• Most recent structural break
• Active bullish-zone state, age, and range
• Active bearish-zone state, age, and range
• Most recent zone lifecycle event
• Current displacement / FVG qualification
• Structure-data readiness
The panel describes the current state. It does not recommend an action.
█ ALERTS
Included structure-context events:
• New bullish or bearish continuation zone
• Bullish or bearish zone interaction
• Bullish or bearish gap-through
• Zone deactivation
Zone-deactivation messages include the reason:
• Structure reversal
• Structure invalidation
• Age
• Superseded
These are structure-event alerts only. They are not trade signals.
█ WORKED EXAMPLE
Example: 1H chart with 4H structure and Model B.
1. A confirmed 4H close breaks the latest opposite-side swing and creates CHoCH.
2. A later confirmed 4H close breaks the next same-direction swing.
3. That break is displayed as CONT BOS because Model B requires CHoCH plus the first BOS.
4. The script searches backward for the most recent opposing 4H candle.
5. The full high-to-low range of that candle becomes the candidate continuation zone.
6. The candidate appears only if the displacement / immediate-FVG rule passes.
7. A touch changes the zone from fresh to touched but does not deactivate it. The zone remains active until structure reversal, structure invalidation, age expiry, or supersession.
The sequence establishes why the zone was mapped. It does not establish that price will return to the zone or that the zone will hold.
█ HOW IT DIFFERS FROM SMC STRUCTURE ENGINE
SMC Structure Engine [EmpArchitect] is a broader chart-structure tool.
It maps general CHoCH and BOS events, multiple order blocks, liquidity sweeps, break strength, zone scoring, touch counts, and broader regime context.
Continuation Order Block Lite is narrower by design.
It focuses on:
• A selected structure timeframe
• A defined CHoCH-to-BOS continuation sequence
• A continuation-specific origin candle
• Displacement / immediate-FVG qualification
• One current active continuation zone, with older zones retained as inactive history
• A compact continuation-zone lifecycle
The two scripts answer different questions.
SMC Structure Engine asks:
What is the broader structure and order-block context on this chart?
Continuation Order Block Lite asks:
Did a defined continuation sequence complete, and what happened to the resulting origin zone?
█ SETTINGS
Model settings:
• Structure timeframe mode
• Manual structure timeframe
• Trend-state model
• Pivot left bars
• Pivot right bars
• Origin search window
• Displacement threshold
• Require both displacement and immediate FVG
• Maximum zone age
Display settings:
• Show zone boxes
• Show continuation sequence
• Show structure swing levels
• Show status panel
█ IMPORTANT LIMITATIONS
• Confirmed pivots introduce delay.
• Structural breaks use completed closes, not intrabar assumptions.
• A valid continuation sequence does not prove that continuation will persist.
• A mapped zone does not imply that price will return.
• A zone interaction does not imply that the zone will hold.
• The script keeps only one current active continuation zone.
• A newer same-side zone supersedes the previous active zone.
• Zones use the full candle range, not the body.
• Equal highs and equal lows are excluded by the strict pivot definition.
• The script does not evaluate volume, liquidity sweeps, session quality, macro events, or market regime outside the defined sequence.
• Results depend on pivot settings, origin lookback, ATR threshold, FVG requirement, market, and timeframe.
• Same-timeframe and higher-timeframe views can show different structural granularity.
• Lower-liquidity or highly irregular markets may produce noisier structure.
█ NOTES
• Pine Script v6
• Public and open-source
• Built by EmpArchitect
• Analytics-only structure tool
• Designed for chart review and structural inspection
• Not a signal service
• No entries, exits, stop losses, targets, or performance claims
█ CORE IDEA
Continuation Order Block Lite does not treat every opposing candle as an order block.
It first requires a defined continuation sequence.
It then maps the origin zone and records what happened to it.
Structure observations, not signals.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.