OPEN-SOURCE SCRIPT
CTZ Cycle support and resistance

**CTZ A/D + Anchored Volume Profile S/R**
A confluence-based support and resistance tool that fuses two independent reads of market structure: an auto-anchored volume profile that maps where the market has accepted price, and an Accumulation/Distribution engine that reveals where smart money has been quietly positioning against price.
**How it works**
*Anchored Volume Profile.* The indicator automatically finds the defining swing of the current market structure and anchors a volume profile to it — the range high in a downtrend, the range low in an uptrend, the same way a professional would anchor manually. From that anchored segment it calculates the Point of Control (the single price level with the most traded volume), plus the Value Area High and Value Area Low containing the majority of the range's volume. These three levels are the market's memory: where business was done, and where it wasn't.
*A/D Divergence Engine.* In parallel, a cumulative Accumulation/Distribution line runs bar by bar, weighting volume by where price closes within each bar's range. At every confirmed price pivot the indicator compares price structure against A/D structure. When price makes a lower low but A/D makes a higher low, buyers are absorbing supply into weakness — an accumulation zone is drawn. When price makes a higher high but A/D makes a lower high, distribution is underway into strength — a distribution zone is drawn.
*Confluence.* When an A/D divergence pivot lands on the POC, VAH, or VAL, that level is tagged ⚡DIV — volume acceptance and smart money divergence at the same price. These are the highest-conviction levels the indicator produces.
**Cycle-based lookback**
The anchor window is defined in cycle degrees rather than arbitrary bar counts: Daily Cycle (60D), Intermediate Cycle (140D), Yearly Cycle (365D), and 4-Year Cycle (1461D), plus a Manual mode. The default is the 4-Year Cycle — on Bitcoin this anchors the profile to the true cycle extreme and maps the macro acceptance structure of the entire cycle. An Auto mode is also included, which starts at the Intermediate degree and automatically escalates to Yearly and then 4-Year whenever the swing that defines the range is older than the window — so the anchor always sits on a genuine structural extreme, never an arbitrary cutoff.
Run two instances at different degrees — 4-Year for the macro map, Intermediate or Daily for tactical levels — to nest cycle context the same way DCL, ICL, YCL, and 4YCL nest within each other.
**On the chart**
Red POC line, white VAH/VAL lines, all drawn from the anchor point (marked ⚓) and extended right. Teal ACCUM and red DIST zones extend from each divergence pivot, sized by ATR. A status panel shows the detected trend, the active cycle window, anchor age, POC price, and divergence count — with a clip warning if the structural swing is older than the selected window. Alerts fire when price approaches the POC, VAH, or VAL.
**How to use it**
Trend context first: the anchor tells you the structure (anchored to a high = declining structure; to a low = advancing structure). POC is the gravitational center — price far above it is extended, far below it is discounted, and revisits are common. VAH and VAL are the acceptance boundaries: rejection there keeps price in balance; acceptance beyond them signals initiative activity and range extension. ACCUM zones below price are demand candidates; DIST zones above price are supply candidates; ⚡DIV-tagged levels are where both systems agree.
**Settings**
Lookback mode (cycle degree), profile rows, value area percentage, A/D signal length, pivot sensitivity, zone height, and all colors are configurable.
**Limitations**
Levels recalculate when a new range extreme redefines the anchor — correct behaviour for anchored profiles, but it means levels are not static. Divergence pivots confirm a few bars after they form, as with all pivot-based detection. Profile quality depends on the volume feed of the chart's symbol. The A/D line does not account for gaps between bars. Best used as a structural map alongside your execution tools, not as a standalone entry signal.
A confluence-based support and resistance tool that fuses two independent reads of market structure: an auto-anchored volume profile that maps where the market has accepted price, and an Accumulation/Distribution engine that reveals where smart money has been quietly positioning against price.
**How it works**
*Anchored Volume Profile.* The indicator automatically finds the defining swing of the current market structure and anchors a volume profile to it — the range high in a downtrend, the range low in an uptrend, the same way a professional would anchor manually. From that anchored segment it calculates the Point of Control (the single price level with the most traded volume), plus the Value Area High and Value Area Low containing the majority of the range's volume. These three levels are the market's memory: where business was done, and where it wasn't.
*A/D Divergence Engine.* In parallel, a cumulative Accumulation/Distribution line runs bar by bar, weighting volume by where price closes within each bar's range. At every confirmed price pivot the indicator compares price structure against A/D structure. When price makes a lower low but A/D makes a higher low, buyers are absorbing supply into weakness — an accumulation zone is drawn. When price makes a higher high but A/D makes a lower high, distribution is underway into strength — a distribution zone is drawn.
*Confluence.* When an A/D divergence pivot lands on the POC, VAH, or VAL, that level is tagged ⚡DIV — volume acceptance and smart money divergence at the same price. These are the highest-conviction levels the indicator produces.
**Cycle-based lookback**
The anchor window is defined in cycle degrees rather than arbitrary bar counts: Daily Cycle (60D), Intermediate Cycle (140D), Yearly Cycle (365D), and 4-Year Cycle (1461D), plus a Manual mode. The default is the 4-Year Cycle — on Bitcoin this anchors the profile to the true cycle extreme and maps the macro acceptance structure of the entire cycle. An Auto mode is also included, which starts at the Intermediate degree and automatically escalates to Yearly and then 4-Year whenever the swing that defines the range is older than the window — so the anchor always sits on a genuine structural extreme, never an arbitrary cutoff.
Run two instances at different degrees — 4-Year for the macro map, Intermediate or Daily for tactical levels — to nest cycle context the same way DCL, ICL, YCL, and 4YCL nest within each other.
**On the chart**
Red POC line, white VAH/VAL lines, all drawn from the anchor point (marked ⚓) and extended right. Teal ACCUM and red DIST zones extend from each divergence pivot, sized by ATR. A status panel shows the detected trend, the active cycle window, anchor age, POC price, and divergence count — with a clip warning if the structural swing is older than the selected window. Alerts fire when price approaches the POC, VAH, or VAL.
**How to use it**
Trend context first: the anchor tells you the structure (anchored to a high = declining structure; to a low = advancing structure). POC is the gravitational center — price far above it is extended, far below it is discounted, and revisits are common. VAH and VAL are the acceptance boundaries: rejection there keeps price in balance; acceptance beyond them signals initiative activity and range extension. ACCUM zones below price are demand candidates; DIST zones above price are supply candidates; ⚡DIV-tagged levels are where both systems agree.
**Settings**
Lookback mode (cycle degree), profile rows, value area percentage, A/D signal length, pivot sensitivity, zone height, and all colors are configurable.
**Limitations**
Levels recalculate when a new range extreme redefines the anchor — correct behaviour for anchored profiles, but it means levels are not static. Divergence pivots confirm a few bars after they form, as with all pivot-based detection. Profile quality depends on the volume feed of the chart's symbol. The A/D line does not account for gaps between bars. Best used as a structural map alongside your execution tools, not as a standalone entry signal.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.