OPEN-SOURCE SCRIPT
Market Microstructure Pulse [JOAT]

MARKET MICROSTRUCTURE PULSE [JOAT]
A composite microstructure oscillator that fuses three lower-timeframe-reconstructed flow primitives into a single bounded [−1, +1] pulse line — the tick imbalance, the aggressive ask/bid streak, and the single-bar massive imbalance event. The pulse tells you in one number whether buyers or sellers are currently dominant at the tape level, and whether that dominance is at warning or extreme intensity.

Lower-timeframe reconstruction
Real microstructure lives below the chart timeframe. The pulse engine pulls intrabar prints from a configurable LTF (default 1 minute; auto-mode picks ~1/20 of the chart TF) and classifies each tick via the standard tick rule. The classified ticks are then EMA-smoothed by a configurable pulse length (default 14) and optionally volume-weighted (default ON) so a heavy print contributes proportionally more to the read than a light one.
The output is a smoothed signed value bounded approximately in [−1, +1] where:
Aggressive streak histograms
Two separate counters track consecutive same-side ticks — one for aggressive asks, one for aggressive bids. When a streak exceeds the Aggressive Streak Min threshold (default 5), it qualifies as institutional persistence. The two histograms are rendered as a colour-coded background to the pulse line so you can see at a glance which side has been running consecutively. EMA-smoothed for visual stability.
Massive imbalance event
A single-bar event: when one side's share of total bar volume exceeds imbalancePct (default 80%), a Massive Imbalance event fires. This is the script's strongest single-bar read — institutional decisiveness landing on the tape.
Two-tier threshold system
A toggleable Aggression Flip Marker prints a glyph at the bar where the pulse sign actually flips — useful for catching the moment dominance rotates sides.
Visual system
A locked Iridescent palette (magenta buy aggression / cyan sell aggression / yellow extreme accent on pure black) gives the pane a distinctive cyberpunk-tape identity.
Dashboard
Monospaced 11-row table positionable to any of nine corners. Surfaces:
Alerts
Three alert conditions, each independently controllable:

How to read it
Three reads, in order of conviction:
Suggested settings
Defaults (1m LTF, pulse EMA 14, streak EMA 7, volume-weighted ON, ±0.50 / ±0.70 thresholds, 80% imbalance, 5-tick streak min) are tuned for 5m–15m charts on liquid futures and crypto. For lower-timeframe scalping, drop LTF to 15s or 30s (Premium plan required) and pulse EMA to 8. For HTF, set LTF auto-mode and raise streak min to 10. The volume-weighting is the recommended default — without it, equal-tick instruments dominate the read regardless of size.
Originality
The implementation — the LTF tick-rule reconstruction with optional volume weighting, the bounded [−1, +1] pulse formulation, the dual aggressive-streak histograms with EMA smoothing, the two-tier (warning / extreme) threshold system, the single-bar massive-imbalance detector, the aggression-flip marker logic, the chart-overlay extreme tinting, and the iridescent dual-hue palette — is JOAT-original. No third-party code reused. The pulse is the original composite formulation.
Limitations
Reconstructed tick direction is an inference — the tick rule is the accepted public-market proxy but it is not a direct read of bid/ask volume. Sub-minute LTFs require a TradingView Premium or Ultimate plan. The pulse is bounded approximately in [−1, +1] but extreme volume-weighted reads can briefly exceed those bounds; this is intentional and not a bug. EMA smoothing introduces a small lag; turn pulse length to 1 to see the raw imbalance.
—
-made with passion by jackofalltrades
A composite microstructure oscillator that fuses three lower-timeframe-reconstructed flow primitives into a single bounded [−1, +1] pulse line — the tick imbalance, the aggressive ask/bid streak, and the single-bar massive imbalance event. The pulse tells you in one number whether buyers or sellers are currently dominant at the tape level, and whether that dominance is at warning or extreme intensity.
Lower-timeframe reconstruction
Real microstructure lives below the chart timeframe. The pulse engine pulls intrabar prints from a configurable LTF (default 1 minute; auto-mode picks ~1/20 of the chart TF) and classifies each tick via the standard tick rule. The classified ticks are then EMA-smoothed by a configurable pulse length (default 14) and optionally volume-weighted (default ON) so a heavy print contributes proportionally more to the read than a light one.
The output is a smoothed signed value bounded approximately in [−1, +1] where:
- +1 — all recent ticks were buy-classified.
- −1 — all recent ticks were sell-classified.
- 0 — perfectly balanced flow.
Aggressive streak histograms
Two separate counters track consecutive same-side ticks — one for aggressive asks, one for aggressive bids. When a streak exceeds the Aggressive Streak Min threshold (default 5), it qualifies as institutional persistence. The two histograms are rendered as a colour-coded background to the pulse line so you can see at a glance which side has been running consecutively. EMA-smoothed for visual stability.
Massive imbalance event
A single-bar event: when one side's share of total bar volume exceeds imbalancePct (default 80%), a Massive Imbalance event fires. This is the script's strongest single-bar read — institutional decisiveness landing on the tape.
Two-tier threshold system
- Pulse Warning — |pulse| above the warning threshold (default 0.50). Inner band, visual reference.
- Pulse Extreme — |pulse| above the extreme threshold (default 0.70). Triggers the Pulse Extreme alert and tints the chart background.
A toggleable Aggression Flip Marker prints a glyph at the bar where the pulse sign actually flips — useful for catching the moment dominance rotates sides.
Visual system
- Pulse line in the iridescent palette (magenta buy / cyan sell) with configurable width.
- Aggressive streak histograms — two-sided coloured columns behind the pulse (transparency configurable).
- Threshold levels at ±warning and ±extreme (toggleable).
- Gradient fill from pulse line to zero, coloured by current sign (transparency configurable).
- Background tint on extreme — magenta or cyan tint when |pulse| is above extreme threshold (transparency configurable).
- Aggression flip markers at sign-change bars (toggleable).
A locked Iridescent palette (magenta buy aggression / cyan sell aggression / yellow extreme accent on pure black) gives the pane a distinctive cyberpunk-tape identity.
Dashboard
Monospaced 11-row table positionable to any of nine corners. Surfaces:
- Current pulse value with sign.
- Buy streak count and sell streak count.
- Aggressive side dominance with bar age.
- Last extreme event direction with bars-ago.
- Last flip direction with bars-ago.
- Last massive imbalance event with bars-ago.
- LTF in use, volume-weighting flag, pulse EMA length.
- Threshold values for warning and extreme.
Alerts
Three alert conditions, each independently controllable:
- Pulse Extreme — fires when |pulse| crosses above extreme threshold.
- Aggression Flip — fires when pulse sign flips (positive ↔ negative).
- Massive Imbalance — fires when a single bar's directional share exceeds the imbalance threshold.
How to read it
Three reads, in order of conviction:
- Massive Imbalance alert at a structural level — the highest-conviction single read. Institutional decisiveness landed on the tape at a known S/R; the next directional move is more conviction-aligned with the imbalance side.
- Pulse Extreme + matching aggressive streak — sustained dominance. The pulse is decisively past its extreme threshold AND the streak histograms show consecutive same-side runs above the streak minimum. This is the regime where momentum tools have their largest edge.
- Aggression Flip after extreme — exhaustion read. The pulse hit extreme then flipped sign; the institutional commitment that drove the extreme has just rotated. Often produces clean reversals.
Suggested settings
Defaults (1m LTF, pulse EMA 14, streak EMA 7, volume-weighted ON, ±0.50 / ±0.70 thresholds, 80% imbalance, 5-tick streak min) are tuned for 5m–15m charts on liquid futures and crypto. For lower-timeframe scalping, drop LTF to 15s or 30s (Premium plan required) and pulse EMA to 8. For HTF, set LTF auto-mode and raise streak min to 10. The volume-weighting is the recommended default — without it, equal-tick instruments dominate the read regardless of size.
Originality
The implementation — the LTF tick-rule reconstruction with optional volume weighting, the bounded [−1, +1] pulse formulation, the dual aggressive-streak histograms with EMA smoothing, the two-tier (warning / extreme) threshold system, the single-bar massive-imbalance detector, the aggression-flip marker logic, the chart-overlay extreme tinting, and the iridescent dual-hue palette — is JOAT-original. No third-party code reused. The pulse is the original composite formulation.
Limitations
Reconstructed tick direction is an inference — the tick rule is the accepted public-market proxy but it is not a direct read of bid/ask volume. Sub-minute LTFs require a TradingView Premium or Ultimate plan. The pulse is bounded approximately in [−1, +1] but extreme volume-weighted reads can briefly exceed those bounds; this is intentional and not a bug. EMA smoothing introduces a small lag; turn pulse length to 1 to see the raw imbalance.
—
-made with passion by jackofalltrades
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。