OPEN-SOURCE SCRIPT

Pi Cycle Gap (SMA Convergence, Normalized Option)

139
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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.