OPEN-SOURCE SCRIPT

Hash Ember Stack

100
Overview
Hash Ember Stack is a multi-period momentum visualizer that displays a structured view of market pressure across ten different lookback windows. It is designed to help operators assess how momentum behaves across short-term, intermediate, and long-term horizons using a unified ribbon-stack format.

The tool does not generate trading entries by itself; instead, it organizes momentum data so traders can better understand how multiple timeframes align or diverge.

Conceptual Framework
The indicator calculates momentum using one of three oscillator families:
  • RSI – measures velocity and magnitude of price movement
  • Stochastic – compares close relative to recent range
  • CCI – measures deviation from the average price


Each oscillator is normalized into a comparable 0–100 scale so all periods can share the same heatmap color logic. This creates a consistent visual framework regardless of which momentum type is selected.

The ten lookback periods range from very short (fast response) to very long (structural regime). Displaying them together helps illustrate momentum compression, expansion, clustering, or divergence across timeframes.

Ribbon Structure & Visual System
Each period is represented as a horizontal band (“ribbon”) with:
  • A fixed vertical height for readability
  • A heat-mapped color derived from momentum value
  • Optional spacing between ribbons to improve separation


The color system transitions from green (momentum weakness), through neutral tones, into red (momentum strength). These colors do not predict price direction; they simply map oscillator values into a standardized visual gradient.

Labels may be shown on the right side to indicate each ribbon’s lookback period.

Extreme Condition Detection (Optional)
The indicator can highlight situations where several momentum periods reach extreme conditions at the same time.
  • Oversold status is defined by user-selected thresholds
  • Overbought status uses an upper threshold
  • A fluorescent cross is plotted when a minimum number of ribbons meet these definitions

These markers do not produce trading signals; they are intended only to highlight statistically uncommon clustering of extreme momentum readings.

Inputs & Controls
  • Momentum Type – Selects which oscillator family is used
  • Smoothing – Applies an SMA to reduce noise
  • Ten customizable lookback periods – Short to macro momentum
  • Ribbon Height & Gap – Adjusts layout density
  • Period Labels – Enables lookback annotations
  • Extreme Signal Settings – Thresholds and minimum ribbon count
  • Signal Position – Above or below the ribbon stack


Intended Use
Hash Ember Stack is suitable for:
  • Identifying how different time horizons align
  • Visualizing periods of momentum compression and expansion
  • Contextualizing reversals or trend continuation environments
  • Supporting discretionary or systematic analysis workflows


The indicator is not a strategy and does not perform backtesting or place trades. It provides structured momentum context that operators can integrate into their own decision-making frameworks.

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.