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
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
The House of Profitable Traders
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
The House of Profitable Traders
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.