PROTECTED SOURCE SCRIPT
[ACR+]EXPANSION DETECTION

[ACR+] Expansion Detection is a price-action tool that spots true momentum expansions, distinguishes high-quality displacements (CISD), and flags wick-driven reversals—all in the context of internal market structure. It keeps your chart clean: only the trade-relevant signals are plotted; structure lines/labels are computed under the hood.
Signals on the chart
Expansion (non-CISD)
Bullish: ▲ triangle below bar (green)
Bearish: ▼ triangle above bar (red)
CISD (Change In State of Delivery) — expansion with displacement & quality filters
Bullish: ◆ diamond below bar (lime)
Bearish: ◆ diamond above bar (orange)
Reversal (wick-dominant + optional engulf)
Bullish: ● circle below bar (teal)
Bearish: ● circle above bar (purple)
The script automatically prefers CISD: if a bar qualifies as CISD, only the CISD mark is shown (not the plain Expansion).
How it works (under the hood)
Body vs Wick engine
Expansion when body dominates wick (Body/Wick > kBW) and body exceeds its average (Body > kBodyAvg × SMA(Body)).
Reversal when one wick is decisively larger than the body (pin-bar style) with optional engulf confirmation.
Structure context (internal)
Builds short/intermediate/long-term swings internally and checks BOS (Break of Structure) and liquidity sweeps around the latest IT levels for higher signal quality.
CISD filter
Expansion + displacement vs ATR (min body vs ATR)
Optional FVG (3-bar gap) confirmation
Optional BOS confirmation in the same direction
Optional previous Inside Bar requirement
Signals on the chart
Expansion (non-CISD)
Bullish: ▲ triangle below bar (green)
Bearish: ▼ triangle above bar (red)
CISD (Change In State of Delivery) — expansion with displacement & quality filters
Bullish: ◆ diamond below bar (lime)
Bearish: ◆ diamond above bar (orange)
Reversal (wick-dominant + optional engulf)
Bullish: ● circle below bar (teal)
Bearish: ● circle above bar (purple)
The script automatically prefers CISD: if a bar qualifies as CISD, only the CISD mark is shown (not the plain Expansion).
How it works (under the hood)
Body vs Wick engine
Expansion when body dominates wick (Body/Wick > kBW) and body exceeds its average (Body > kBodyAvg × SMA(Body)).
Reversal when one wick is decisively larger than the body (pin-bar style) with optional engulf confirmation.
Structure context (internal)
Builds short/intermediate/long-term swings internally and checks BOS (Break of Structure) and liquidity sweeps around the latest IT levels for higher signal quality.
CISD filter
Expansion + displacement vs ATR (min body vs ATR)
Optional FVG (3-bar gap) confirmation
Optional BOS confirmation in the same direction
Optional previous Inside Bar requirement
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
The House of Profitable Traders
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
The House of Profitable Traders
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.