OPEN-SOURCE SCRIPT
[uPaSKaL] Momentum Structure Candles

Momentum Structure Candles
Momentum Structure Candles is an intrabar-based framework built to show how momentum develops inside each higher timeframe bar.
Instead of reducing momentum to a single line or value, the script reconstructs the internal structure of the bar using lower timeframe data and displays it as a momentum candle. The result is a structural view of direction, stability, expansion, and internal pressure.

🔹 What It Shows
Traditional momentum tools focus on outcome.
Momentum Structure Candles focuses on formation.
Two bars can close in the same direction while having completely different internal behavior:
This script helps reveal:
🔹 Intrabar Momentum Reconstruction
The script requests lower timeframe OHLC data and converts it into momentum-relative values using a configurable lookback.
Those intrabars are then aggregated into a synthetic momentum candle that represents the internal structure of the active bar.
This allows you to read:
🔹 Last-Bar Magnifier
The magnifier expands the current bar into its lower timeframe momentum structure, making it easier to read how the candle is forming in real time.

Useful for:
🔹 Volume-Weighted Momentum
Momentum can optionally be weighted by volume to distinguish between:
🔹 Anchored Mode
The script can also run in anchored cumulative mode.
In this mode, momentum is accumulated and reset on a selected anchor period, creating a session-style structural model similar to a cumulative flow framework.
This is useful for:
🔹 Heatmap Context
An optional heatmap normalizes current momentum strength relative to recent conditions, helping highlight:
🔹 Phase Analysis
The current bar can be split into:
This helps answer a key question:
When was momentum strongest inside the bar?
It can reveal:
🔹 Additional Notes
🔹 Practical Use Cases
🔹 Final Note
Momentum Structure Candles is not built to replace price.
It is built to expose the internal momentum architecture that standard candles hide.
By reconstructing intrabar structure, optionally weighting by volume, supporting anchored cumulative behavior, and providing a real-time magnifier, the script turns momentum into a readable structural process rather than a compressed output.
Momentum Structure Candles is an intrabar-based framework built to show how momentum develops inside each higher timeframe bar.
Instead of reducing momentum to a single line or value, the script reconstructs the internal structure of the bar using lower timeframe data and displays it as a momentum candle. The result is a structural view of direction, stability, expansion, and internal pressure.
🔹 What It Shows
Traditional momentum tools focus on outcome.
Momentum Structure Candles focuses on formation.
Two bars can close in the same direction while having completely different internal behavior:
- one builds smoothly
- one expands early and fades
- one confirms late
- one remains internally mixed
This script helps reveal:
- whether momentum is building cleanly or fragmenting
- whether pressure is stable or unstable
- whether late-bar activity confirms or weakens the move
- whether the bar is structurally directional or internally rotational
🔹 Intrabar Momentum Reconstruction
The script requests lower timeframe OHLC data and converts it into momentum-relative values using a configurable lookback.
Those intrabars are then aggregated into a synthetic momentum candle that represents the internal structure of the active bar.
This allows you to read:
- momentum range
- internal pullbacks
- final position within the structure
- balance versus expansion
🔹 Last-Bar Magnifier
The magnifier expands the current bar into its lower timeframe momentum structure, making it easier to read how the candle is forming in real time.
Useful for:
- tracking acceleration or slowdown during bar development
- spotting late confirmation versus late failure
- avoiding over-reliance on the final candle close
🔹 Volume-Weighted Momentum
Momentum can optionally be weighted by volume to distinguish between:
- low-participation movement
- stronger momentum backed by active participation
- similar structures with different internal conviction
🔹 Anchored Mode
The script can also run in anchored cumulative mode.
In this mode, momentum is accumulated and reset on a selected anchor period, creating a session-style structural model similar to a cumulative flow framework.
This is useful for:
- tracking persistent directional pressure
- identifying compounding momentum
- spotting early loss of structure after expansion
🔹 Heatmap Context
An optional heatmap normalizes current momentum strength relative to recent conditions, helping highlight:
- strong expansion versus ordinary movement
- active versus passive conditions
- high-energy momentum regimes
🔹 Phase Analysis
The current bar can be split into:
- Early
- Mid
- Late
This helps answer a key question:
When was momentum strongest inside the bar?
It can reveal:
- early push followed by failure
- late expansion after consolidation
- internal transitions hidden by the final close
🔹 Additional Notes
- Built from lower timeframe structure, not standard price candles
- Includes optional Light and Dark visual themes
- Best used for structural reading, timing, and execution context
🔹 Practical Use Cases
- confirm whether a move is structurally strong or only visually strong
- detect weakening momentum before price structure shifts
- evaluate continuation versus exhaustion
- analyze pullbacks as corrective or structural
- monitor the live development of the active bar
- combine with liquidity, structure, or SMC-based execution models
🔹 Final Note
Momentum Structure Candles is not built to replace price.
It is built to expose the internal momentum architecture that standard candles hide.
By reconstructing intrabar structure, optionally weighting by volume, supporting anchored cumulative behavior, and providing a real-time magnifier, the script turns momentum into a readable structural process rather than a compressed output.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.