OPEN-SOURCE SCRIPT
تم تحديثه

HTF Accumulation Distribution Zones (Analysis)

2 513
📌 Indicator Name

HTF Accumulation–Distribution Zones (Analysis)

This indicator highlights potential accumulation and distribution contexts on the price chart using a combination of volume behavior, volatility (ATR), momentum, and VWAP positioning.The script is designed to help traders understand market participation and positioning, especially on higher intraday and swing timeframes, where institutional activity tends to leave clearer footprints.

🔍 What the indicator shows

ACC (Accumulation) : Marks areas where controlled buying activity may be present, identified through:

Strong candle structure relative to volatility
Healthy or controlled volume participation
Improving momentum within defined ranges

DIST (Distribution) : Marks areas where selling pressure may be emerging, identified through:

Price stretching away from VWAP
Weakening momentum
Strong bearish candle structure

These labels represent contextual zones, not trade signals.

🧠 How to use it

Use ACC and DIST labels as market context, not as direct buy or sell instructions.

Best used as a confirmation layer alongside:

Trend filters (EMA, VWAP, structure)
Support & resistance
Breakout or pullback strategies

Works well on 15-minute, 30-minute, 1-hour, and higher timeframes

Suitable for indices, futures, and liquid stocks

⚠️ Important Notes

This indicator does not generate buy or sell signals. It does not predict future price movement. All outputs are based purely on historical data analysis. Always apply independent confirmation and proper risk management
ملاحظات الأخبار
Market Phase Engine — Order Flow & Calibrated Probability

Major update

What's new

A rebuild of the phase/cause engine so the output is a measurement, not a label:

Per-event calibration. Eight event classes (spring, upthrust, breakout-of-strength/weakness, A+ context, probability band, no-demand, no-supply) are each tracked forward and past-only with a hit-rate, Wilson 95% interval, direction-matched base rate, edge over base, and MFE/MAE in ATR. You see which events actually pay on the symbol in front of you.
Real order flow replaces the candle-colour proxy — true intrabar signed volume (with a Bulk-Volume estimate as fallback) drives the operator, absorption and effort/result reads, plus a VPIN toxicity gauge.
Edge-weighted probability — each piece of evidence is weighted by its own realised edge; unproven signals shade toward neutral.
Relative strength vs a benchmark and a higher-timeframe bias add two confluence reads.
Compact/Pro information table (Compact default) with an adaptive colour scheme that reads the chart background; directional climax marks; tighter, extreme-anchored climax detection; a repositionable cycle wheel.

Why these belong in ONE script (mashup rationale)

This is one process seen through several lenses, not separate indicators stapled together. A large participant stops a trend, builds a position in a range, tests it, then marks price away — and each part measures a different facet of that same sequence:


Range detection finds the arena; nothing else has meaning without it.
The phase model places price inside it (A–E) by structure, volatility, position and events.
Real signed volume + VPIN read the operator directly — rising delta under flat price is accumulation; toxicity says that flow is one-sided and informed. This is the engine the absorption and operator reads run on.
Cause (width × duration × participation) projects a target; effort-vs-result exposes absorption and efficient trend.
Spring / upthrust detect the failed test of a real structural pivot.
Relative strength and HTF bias check the local read against the larger tape.
The probability model fuses all of it, and the per-event calibration measures whether each event actually preceded follow-through here — then feeds that edge back into the fusion.
Supply/demand, cause/effect and effort/result are three views of one operator; the calibration layer keeps the fusion honest. That interdependence is why they ship as a single engine.

How to use

Read the table: the strongest long context is a late-range phase with a confirmed spring, bullish absorption, a large cause, real buying flow and structure breaking up; the short context mirrors it. Treat the projected target as an objective, not a promise, and trust the probability more where the calibration shows a real (starred) edge.

Originality

A self-checking phase engine: an auto-detected range, a confidence-scored phase model, a measured cause with a projected effect, graded structural-pivot tests, a real signed-volume operator read with a toxicity gauge, and — the part most tools skip — a forward, per-event, base-rate-aware edge measurement that re-weights the probability it feeds.

Inputs

Defaults are tuned for NIFTY; every analytical feature ships on. All reads run off a Price source input (plus optional volume-borrow), so it works on any instrument — change the source, benchmark and lower timeframe to suit.

Limitations

Model estimates of a discretionary method, not certainties. The flow layer needs real (or borrowed) volume; without an L2 book, signed volume is an intrabar / BVC approximation and the live bar is provisional until it closes. Calibration is past-only and lags by design.

Credits

Phase method, the three laws and the composite operator — Richard D. Wyckoff. Volume Spread Analysis — Tom Williams. Bulk-Volume Classification & VPIN — Easley, López de Prado & O'Hara. Efficiency Ratio — Perry Kaufman. Score interval — Edwin B. Wilson. The integration, real-flow operator read, per-event calibration and edge-weighted fusion are original work on those public concepts.

Disclaimer

Study / indicator for chart analysis and education only. Not a strategy, not a recommendation, not financial advice. It places no orders and guarantees no outcome. Markets carry risk; do your own research and manage your own risk.
ملاحظات الأخبار
What's new in this update
Calibration rebuilt to a measured standard. Every event class is now resolved with a triple-barrier (profit / stop / horizon) instead of a fixed horizon, sample-uniqueness weighted and recency-decayed so overlapping or stale samples can't inflate the rate, scored against a regime-matched base rate (trend / volatile / chop), with the significance star corrected for multiple testing across all eight event classes. The per-event table now reports honest Hit%, base rate and edge.
Effort-vs-result made rigorous. Added Price Impact (λ) — price move per unit of signed volume, the canonical thin/deep illiquidity read — and a square-root participation check that separates absorption (move ≪ expected) from ignition (move ≫ expected). These are the literature-grounded forms of the Wyckoff law the engine already claimed to measure; λ now also damps the probability in thin regimes.
Flow Ignition Intensity. A self-exciting, exponentially-decaying accumulator of aggressive signed flow distinguishes one large print from a clustered ignition burst — a momentum read raw delta can't see.
Probability reliability. The markup probability is now reliability-checked (Brier score + calibration gap) and shrinks toward neutral when the model has been over-confident; the adjusted value is shown and exported.
Institution-grade KEY dashboard. Adaptive to chart background, with a top KEY block (state, phase, markup prob + calibrated value, operator, λ, effort/√-law, ignition) above the per-event calibration table, reliability row, target-hit and a legend. Defaults to Pro.
Packaging. Settings reorganized into 14 numbered groups; all feature toggles default-on; NIFTY/NSE defaults retained; configurable price and volume sources for any market; outputs given generic names (EXP_PriceImpact, EXP_Toxicity, EXP_Bias, …) plus new EXP_MarkupProbCal, EXP_SqrtAbsorb, EXP_Ignition, EXP_RegimeAge, EXP_Brier.
Educational/informational only — not financial advice. Calibration is in-sample, forward-measured at fixed barriers; validate out-of-sample before relying on the edge numbers.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.