OPEN-SOURCE SCRIPT
Обновлено Multi Timeframe Order-Flow Cockpit

Multi-Timeframe Order-Flow Cockpit
A single overlay that turns raw volume into a multi-timeframe order-flow read. It draws a compact row of higher-timeframe (HTF) candles beside price — each split into buy vs sell volume — and condenses several timeframes' order flow into one plain-language verdict. Unusually, it ships with a built-in calibration layer that forward-tests its own verdict and tells you, in plain words, whether that verdict actually beats a base rate — instead of asserting an edge it cannot show.
WHAT IT DOES
For each timeframe you enable, the script reconstructs the buy/sell volume that built every bar, scores how one-sided that flow is, reads market structure, and fuses everything into a single bias with a stated conviction. It then projects key price levels and marks where current price sits inside each timeframe's range — so you can see, at one glance, what order flow is doing across the whole timeframe stack.
WHY THESE COMPONENTS ARE COMBINED
This is not a pile of unrelated overlays. It is a pipeline where each stage feeds the next, and a final stage audits the whole:
Higher-timeframe candles are the canvas — see several timeframes' auctions at once without flipping charts.
Intrabar delta classifies sub-bar volume into buy vs sell (close-vs-open, or range-weighted). Where your plan and symbol allow, the chart-timeframe strip uses native footprint (real aggressor bid/ask volume), tagged REAL; otherwise it reconstructs the delta and is tagged EST — so data fidelity is never hidden.
Order-flow toxicity (VPIN-family) measures how aggressive/one-sided each timeframe's flow is. It is a conviction input, not a direction.
Market structure (swing breaks, BOS/CHoCH) supplies directional context that can override delta when price structure genuinely shifts.
Probabilistic synthesis fuses the above in log-odds space, averaging correlated inputs so that redundant agreement cannot inflate confidence, plus an optional exogenous volatility-index vote (rising volatility pressures the asset).
Forward calibration resolves every committed verdict N bars later against an ATR-sized move and reports Hit% versus an unconditional Base%, gated by a Wilson score interval so a result is only flagged (star) when it is statistically distinguishable from chance — split by trending versus ranging regime.
The components belong together because the deliverable is the synthesis and its honest scoring, which no single overlay can provide: toxicity needs the delta, structure contextualizes the delta, the verdict needs all of them, and the calibration is meaningless without a verdict to test.
HOW TO USE IT
Read the Compact table (default). Bias = which way flow leans; Conviction = how strongly; Flow = calm vs one-sided; Setup = exhaustion flags; Edge = whether the verdict has measured, significant edge; Use = the bottom line — "Context only" until edge is proven, "Tradeable — still verify" only when the calibration confirms it.
Switch the table to Pro for per-timeframe metrics (delta %, toxicity, structure, calibrated bias) plus the combined verdict and calibration rows. Turn on the Key Info table while learning — it is a plain-language legend.
On-chart aids: each panel tags its true High/Low and shows a position triangle at its edge — green when price is above that timeframe's range, red when below, yellow when inside, with brightness scaling to how far price has stretched. Key levels (POC, value-area high/low, recent swing high/low) are projected at true price as reference zones.
Any market: set your symbol, price source and intrabar resolution in Data Source, and your market's volatility index in Volatility Vote. Defaults are set for NSE NIFTY — change them for other assets.
Alerts are attention cues (verdict shift, toxicity spike, divergence, structure shift) — they tell you where to look, never what to do. Create one alert with the condition "Any alert() function call."
WHAT IS ORIGINAL HERE
Most order-flow and "smart-money" tools assert an edge by drawing confident signals. This one is built around the opposite discipline: a transparent calibration layer that measures and reports its own edge against a base rate, refuses to certify a signal that has not earned statistical significance, and reports it separately by market regime. The multi-timeframe order-flow synthesis with decorrelated log-odds fusion, and the REAL/EST fidelity tagging of delta, are also original to this implementation. The honesty layer is the headline feature — it is designed to tell you when there is no proven edge.
CONCEPT CREDITS (methods, not code)
Bulk Volume Classification / VPIN — Easley, Lopez de Prado and O'Hara. Market/Volume Profile (value area, POC) — J. Peter Steidlmayer. Wilson score interval — E. B. Wilson (1927). Efficiency-ratio regime — Perry Kaufman. Market-structure concepts — classical price action. All original code, architecture, fusion and calibration by the author.
DISCLAIMER
This is an awareness/context tool — not a signal generator and not financial advice. No indicator predicts the future. Past behavior and any displayed statistics do not guarantee future results; the calibration is explicitly designed to report when the tool has no measurable edge — heed it. Trade your own plan and manage your risk.
A single overlay that turns raw volume into a multi-timeframe order-flow read. It draws a compact row of higher-timeframe (HTF) candles beside price — each split into buy vs sell volume — and condenses several timeframes' order flow into one plain-language verdict. Unusually, it ships with a built-in calibration layer that forward-tests its own verdict and tells you, in plain words, whether that verdict actually beats a base rate — instead of asserting an edge it cannot show.
WHAT IT DOES
For each timeframe you enable, the script reconstructs the buy/sell volume that built every bar, scores how one-sided that flow is, reads market structure, and fuses everything into a single bias with a stated conviction. It then projects key price levels and marks where current price sits inside each timeframe's range — so you can see, at one glance, what order flow is doing across the whole timeframe stack.
WHY THESE COMPONENTS ARE COMBINED
This is not a pile of unrelated overlays. It is a pipeline where each stage feeds the next, and a final stage audits the whole:
Higher-timeframe candles are the canvas — see several timeframes' auctions at once without flipping charts.
Intrabar delta classifies sub-bar volume into buy vs sell (close-vs-open, or range-weighted). Where your plan and symbol allow, the chart-timeframe strip uses native footprint (real aggressor bid/ask volume), tagged REAL; otherwise it reconstructs the delta and is tagged EST — so data fidelity is never hidden.
Order-flow toxicity (VPIN-family) measures how aggressive/one-sided each timeframe's flow is. It is a conviction input, not a direction.
Market structure (swing breaks, BOS/CHoCH) supplies directional context that can override delta when price structure genuinely shifts.
Probabilistic synthesis fuses the above in log-odds space, averaging correlated inputs so that redundant agreement cannot inflate confidence, plus an optional exogenous volatility-index vote (rising volatility pressures the asset).
Forward calibration resolves every committed verdict N bars later against an ATR-sized move and reports Hit% versus an unconditional Base%, gated by a Wilson score interval so a result is only flagged (star) when it is statistically distinguishable from chance — split by trending versus ranging regime.
The components belong together because the deliverable is the synthesis and its honest scoring, which no single overlay can provide: toxicity needs the delta, structure contextualizes the delta, the verdict needs all of them, and the calibration is meaningless without a verdict to test.
HOW TO USE IT
Read the Compact table (default). Bias = which way flow leans; Conviction = how strongly; Flow = calm vs one-sided; Setup = exhaustion flags; Edge = whether the verdict has measured, significant edge; Use = the bottom line — "Context only" until edge is proven, "Tradeable — still verify" only when the calibration confirms it.
Switch the table to Pro for per-timeframe metrics (delta %, toxicity, structure, calibrated bias) plus the combined verdict and calibration rows. Turn on the Key Info table while learning — it is a plain-language legend.
On-chart aids: each panel tags its true High/Low and shows a position triangle at its edge — green when price is above that timeframe's range, red when below, yellow when inside, with brightness scaling to how far price has stretched. Key levels (POC, value-area high/low, recent swing high/low) are projected at true price as reference zones.
Any market: set your symbol, price source and intrabar resolution in Data Source, and your market's volatility index in Volatility Vote. Defaults are set for NSE NIFTY — change them for other assets.
Alerts are attention cues (verdict shift, toxicity spike, divergence, structure shift) — they tell you where to look, never what to do. Create one alert with the condition "Any alert() function call."
WHAT IS ORIGINAL HERE
Most order-flow and "smart-money" tools assert an edge by drawing confident signals. This one is built around the opposite discipline: a transparent calibration layer that measures and reports its own edge against a base rate, refuses to certify a signal that has not earned statistical significance, and reports it separately by market regime. The multi-timeframe order-flow synthesis with decorrelated log-odds fusion, and the REAL/EST fidelity tagging of delta, are also original to this implementation. The honesty layer is the headline feature — it is designed to tell you when there is no proven edge.
CONCEPT CREDITS (methods, not code)
Bulk Volume Classification / VPIN — Easley, Lopez de Prado and O'Hara. Market/Volume Profile (value area, POC) — J. Peter Steidlmayer. Wilson score interval — E. B. Wilson (1927). Efficiency-ratio regime — Perry Kaufman. Market-structure concepts — classical price action. All original code, architecture, fusion and calibration by the author.
DISCLAIMER
This is an awareness/context tool — not a signal generator and not financial advice. No indicator predicts the future. Past behavior and any displayed statistics do not guarantee future results; the calibration is explicitly designed to report when the tool has no measurable edge — heed it. Trade your own plan and manage your risk.
Информация о релизе
MTF Order-Flow Cockpit — v2 (MTF Confluence)Major upgrade: the tool is now built around multi-timeframe level confluence. It harvests POC/value-area levels plus prior day/week levels and VWAP, and shades the zones where several align — the highest-quality support/resistance. It reads order flow at the nearest zone, classifies the session (balance vs trend), and keeps the calibration edge-test. The old fused bias is retained as supporting context. Faster, cleaner, and now centred on where price actually reacts.
Информация о релизе
v1.1 — Integration + finishing pass (no engine change)- Added a Data Window (EXP_) export bus so the cockpit's state — multi-timeframe confluence
probability and direction, chart-timeframe delta and bias, flow toxicity, the volatility vote and
the reversion cumulative-delta z-score — can feed other scripts via input.source().
- Standardized the MPL-2.0 licence line (author credit was corrected in the prior update).
- Verified and left unchanged: the seconds→1-minute delta fallback and the five higher-timeframe
panels degrade gracefully on Daily/Weekly charts, and the theme is already background-adaptive.
- No change to the footprint reconstruction, level confluence, verdict or calibration — everyday
behaviour is identical.
Descriptive order-flow awareness tool, not investment advice.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.