PulseHub
OPEN-SOURCE SCRIPT

Adaptive GMMA Phase Fill with Ichimoku Cloud

254
Adaptive GMMA Phase Fill

Adaptive GMMA Phase Fill is a trend visualization indicator that combines the Guppy Multiple Moving Average (GMMA), short-term momentum phase analysis, market trendiness, and the Ichimoku Cloud.

The indicator is designed to show not only the direction of a trend, but also whether short-term momentum is accelerating, weakening, or transitioning relative to the broader GMMA structure.

Main Features

* Fast GMMA using 3, 5, 8, 10, 12, and 15-period EMAs
* Slow GMMA using 30, 35, 40, 45, 50, and 60-period EMAs
* ATR-normalized slope analysis
* Fast-GMMA phase detection
* Trendiness-based dynamic transparency
* Optional Ichimoku Cloud with bullish and bearish coloring
* Configurable cloud boundary lines
* Optional phase background
* Alert conditions for acceleration and exhaustion transitions

Fast GMMA Phase Colors

The fast GMMA bundle changes color according to its average slope and the relative movement of its component EMAs.

* Green: Bullish movement or bullish acceleration
* Light gray: Possible momentum exhaustion or an early loss of directional strength
* Medium gray: Bearish or weak directional movement
* Dark gray: Bearish acceleration

The phase calculation compares the ATR-normalized slopes of adjacent fast EMAs. This helps identify changes within the fast bundle before they become obvious from price alone.

Slow GMMA Colors

The slow GMMA provides the broader trend structure.

* Red: The fast GMMA mean is above the slow GMMA mean
* Dark gray: The fast GMMA mean is below the slow GMMA mean
* Medium gray: No clear separation between the two bundles

The slow bundle therefore acts as a structural trend reference, while the fast bundle highlights shorter-term changes in momentum.

Adaptive Transparency

The opacity of the GMMA lines and fills is adjusted using a trendiness measure derived from the Choppiness Index.

* Stronger, more directional trends are displayed more clearly.
* Choppy or range-bound conditions are displayed with greater transparency.

This makes prominent trends visually stand out while reducing emphasis during less directional market conditions.

Ichimoku Cloud

The indicator can optionally display only the Ichimoku Cloud, without the Conversion Line, Base Line, or Lagging Span.

* Green cloud: Senkou Span A is above Senkou Span B
* Red cloud: Senkou Span A is below Senkou Span B
* Green boundary: Senkou Span A
* Red boundary: Senkou Span B

The default Ichimoku settings are 9, 26, 52, with a 26-period forward displacement. All settings and cloud colors can be customized.

The cloud provides an additional view of longer-term market structure, while the GMMA phase colors focus on current trend direction and momentum development.

Suggested Interpretation

The indicator is intended as a visual framework rather than a standalone entry or exit system.

For example:

* A green fast bundle above the slow bundle may indicate bullish continuation.
* A light-gray fast bundle during an established uptrend may indicate weakening momentum.
* A dark-gray fast bundle may indicate increasing bearish pressure.
* Agreement between the GMMA structure and Ichimoku Cloud may indicate stronger directional alignment.
* Conflicting GMMA and cloud conditions may indicate a transition or consolidation phase.

Signals should be evaluated together with price action, support and resistance, timeframe context, and appropriate risk management.

Alerts

Alert conditions are included for:

* Bullish acceleration
* Bullish exhaustion
* Bearish acceleration
* Bearish exhaustion

These alerts trigger when a new phase state begins.

Notes

ATR normalization makes the slope calculation more comparable across instruments and volatility environments. However, the interpretation may still vary depending on the asset and timeframe.

This indicator does not predict future price movement and should not be used as the sole basis for trading decisions.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.