OPEN-SOURCE SCRIPT

[uPaSKaL] Momentum Structure Candles

1 779
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.

ekran görüntüsü

🔹 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.

ekran görüntüsü

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.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.