OPEN-SOURCE SCRIPT
Actualizado Structure Retest Engine Delta Hybrid

Description
Structure Retest Engine Delta Hybrid is a price action tool designed to identify structural shifts (CHoCH) and evaluate their retests using a relative volume delta proxy.
While many structure tools focus only on price location, this script adds a momentum-context layer to help judge whether a breakout appears stronger or weaker when price returns to the level.
--- HOW IT WORKS ---
The engine follows a 4-step process before an entry signal is generated:
1. Structure Shift (CHoCH)
The script identifies a Change of Character when price breaks a significant swing pivot from the opposite trend.
2. Breakout Conviction
Using a relative volume delta proxy, the script captures the momentum profile of the breakout bar. Stronger breakout conditions are marked with a "+" or "⚡", while weaker conditions are marked with a "-".
3. Departure Rule
Unlike basic retest scripts, this engine requires price to clearly leave the level area before a retest can be validated. This helps reduce noise from signals that appear during the initial breakout phase.
4. Hybrid Confirmation
When price returns to the level, the script tracks cumulative delta-proxy behavior during the retest. An entry is only triggered if price respects the level and satisfies the selected confirmation mode:
Touch, Close Outside Level, or Engulfing.
--- DELTA SENTIMENT TAGS ---
Entry labels can include sentiment tags to help judge the quality of the retest:
⚡ = stronger breakout context and retest flow supporting the trend
~ = mixed context
? = weaker or opposing retest sentiment
These tags are context markers, not guarantees of continuation or failure.
--- KEY FEATURES ---
Customizable Confirmation
Choose between Touch, COL (Close Outside Level), or ENG (Engulfing) to match your preferred entry style.
Retest Sensitivity
Adjust the ATR-based proximity buffer to define how close price must come to the level to qualify as a retest.
Departure Logic
Requires price to leave the level area before a new retest entry can be considered.
Visual Clarity
Includes optional CHoCH and Entry triangles, dashed break-level lines, floating entry text, and trend-based bar coloring.
Delta Proxy Context
Adds a relative volume delta proxy to estimate breakout conviction and retest sentiment. This is a candle-and-volume efficiency model, not true bid/ask delta or footprint data.
Alerts
Includes separate alert toggles for CHoCH events and entry confirmations.
--- SETTINGS ---
Pivot Length
The number of bars required on each side to confirm a swing point.
Run Away Threshold
Adjusts the sensitivity of the breakout conviction model relative to recent delta-proxy activity.
Confirmation Mode
Selects how the retest must confirm before an entry is printed.
Entry and CHoCH Visual Controls
Triangle size, text size, and text offset can all be adjusted for readability.
DISCLAIMER
This script is for educational and analytical purposes only.
It is a confirmation and context tool, not a prediction engine.
Past performance does not guarantee future results.
Always use proper risk management.
Structure Retest Engine Delta Hybrid is a price action tool designed to identify structural shifts (CHoCH) and evaluate their retests using a relative volume delta proxy.
While many structure tools focus only on price location, this script adds a momentum-context layer to help judge whether a breakout appears stronger or weaker when price returns to the level.
--- HOW IT WORKS ---
The engine follows a 4-step process before an entry signal is generated:
1. Structure Shift (CHoCH)
The script identifies a Change of Character when price breaks a significant swing pivot from the opposite trend.
2. Breakout Conviction
Using a relative volume delta proxy, the script captures the momentum profile of the breakout bar. Stronger breakout conditions are marked with a "+" or "⚡", while weaker conditions are marked with a "-".
3. Departure Rule
Unlike basic retest scripts, this engine requires price to clearly leave the level area before a retest can be validated. This helps reduce noise from signals that appear during the initial breakout phase.
4. Hybrid Confirmation
When price returns to the level, the script tracks cumulative delta-proxy behavior during the retest. An entry is only triggered if price respects the level and satisfies the selected confirmation mode:
Touch, Close Outside Level, or Engulfing.
--- DELTA SENTIMENT TAGS ---
Entry labels can include sentiment tags to help judge the quality of the retest:
⚡ = stronger breakout context and retest flow supporting the trend
~ = mixed context
? = weaker or opposing retest sentiment
These tags are context markers, not guarantees of continuation or failure.
--- KEY FEATURES ---
Customizable Confirmation
Choose between Touch, COL (Close Outside Level), or ENG (Engulfing) to match your preferred entry style.
Retest Sensitivity
Adjust the ATR-based proximity buffer to define how close price must come to the level to qualify as a retest.
Departure Logic
Requires price to leave the level area before a new retest entry can be considered.
Visual Clarity
Includes optional CHoCH and Entry triangles, dashed break-level lines, floating entry text, and trend-based bar coloring.
Delta Proxy Context
Adds a relative volume delta proxy to estimate breakout conviction and retest sentiment. This is a candle-and-volume efficiency model, not true bid/ask delta or footprint data.
Alerts
Includes separate alert toggles for CHoCH events and entry confirmations.
--- SETTINGS ---
Pivot Length
The number of bars required on each side to confirm a swing point.
Run Away Threshold
Adjusts the sensitivity of the breakout conviction model relative to recent delta-proxy activity.
Confirmation Mode
Selects how the retest must confirm before an entry is printed.
Entry and CHoCH Visual Controls
Triangle size, text size, and text offset can all be adjusted for readability.
DISCLAIMER
This script is for educational and analytical purposes only.
It is a confirmation and context tool, not a prediction engine.
Past performance does not guarantee future results.
Always use proper risk management.
Notas de prensa
Updated NotesAdded BOS into the structure engine so the script can now show both CHoCH and BOS. Added a BOS Mode option so BOS can either stay visual only or be used for continuation retest entries.
Updated the Latest Only logic so it now keeps the current trend family on chart instead of removing same-direction structure too early. Added BOS labels, BOS triangles, and optional BOS alerts to make continuation structure easier to read.
The core retest concept stays the same. Delta proxy analysis, the departure rule, confirmation modes, and the overall entry logic style remain intact.
Notas de prensa
Brought back historical retest boxes in full-history mode, now limited to CHoCH only for cleaner structure reference.Notas de prensa
Kalman trend filter added for trend clarity.Notas de prensa
Update NotesAdded Next BOS/CHoCH Confirmation Levels.
The indicator now projects the latest confirmed swing levels that price must break to validate the next structural event.
Based on the current market structure, each projected level is identified as a potential BOS or CHoCH confirmation level.
These levels update automatically as new confirmed swing highs and lows form, helping traders see the important structure break before the event occurs.
Only the current active confirmation levels are displayed to keep the chart clean.
A new Visual Settings toggle allows the projected levels to be shown or hidden.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.