OPEN-SOURCE SCRIPT

Pi Cycle Gap (SMA Convergence, Normalized Option)

134
This indicator visualizes the “gap” between the classic Pi Cycle Top moving averages, used for Bitcoin cycle analysis: the 111-day Simple Moving Average (SMA) and 2 × 350-day SMA.

Histogram Bars: Show the distance between these lines, highlighting when the cycle is healthy (green), near a historic “top” (orange), or at a rare crossover (red).

Normalization Option: You can view the gap as either:

Percent of 2 × 350-day SMA (recommended for multi-cycle analysis)
— This is the default.

Absolute USD difference (classic mode)

Orange bars warn when the gap is within a configurable proximity to zero (cycle convergence).
Red triangle marks the rare actual crossover event, historically correlated with market cycle tops.

Settings:
Fast MA Length (SMA): Default 111

Slow MA Length (SMA): Default 350 (doubled internally)

Proximity Warning (%): How close (as percent) to flag convergence

Show Normalized Gap (%): Toggle between percent and absolute USD

How to Use:
Green bars: Market is safely in “bull cycle mode”—top is not near

Orange bars: Approaching cycle convergence (potential top)

Red: Actual crossover—historically a signal of major cycle tops

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.