← Back to Indicators

Pi Cycle Top API

Pi Cycle Top indicator — detects Bitcoin cycle peaks when 111-day MA crosses above 2×350-day MA, historically accurate for major tops.

Webhook URL
https://api.hunchmachine.com/webhook/indicators?indicator=pi_cycle_top&api_key=YOUR_API_KEY

Description

Implements the Pi Cycle Top indicator, one of Bitcoin's most referenced historical top signals. The model identifies major market cycle peaks when the 111-day moving average (MA111) crosses above 2× the 350-day moving average (MA350) — a relationship that has historically coincided with macro tops in prior bull markets.

What this endpoint provides

A real-time calculation of the moving averages and their ratio, showing how close the market currently is to a potential cycle-top configuration. This version also includes a clear text signal (Normal, ⚠️ Approaching, 🚨 Triggered) and contextual notes, making it easy for automations and AI agents to interpret at a glance.

Response fields

price_usd

Latest Bitcoin price in USD.

ma111

Current 111-day moving average.

ma350

Current 350-day moving average.

threshold_2x350

Double of the 350-day MA (the top threshold used in the model).

ratio

Ratio between ma111 and 2×ma350; values approaching 1.0 indicate proximity to a historical top trigger.

distance_pct

Percentage distance from the trigger threshold.

signal

Text-based top-state classification (Normal, Approaching, or Triggered).

notes

Description of the model logic and its historical behavior.

timestamp

UTC time of the latest update.

Output example

[
  {
    "indicator": "pi_cycle_top",
    "timestamp": "2025-11-01T02:57:00.000Z",
    "price_usd": 109767.703125,
    "ma111": 113692.42708333333,
    "ma350": 102373.82004464285,
    "threshold_2x350": 204747.6400892857,
    "ratio": 0.5552807692130405,
    "distance_pct": -44.47192307869595,
    "signal": "✅ Normal",
    "notes": "The Pi Cycle Top indicator triggers when the 111-day MA crosses above 2× the 350-day MA."
  }
]

Interpretation & Use

The Pi Cycle Top acts as a cycle overheating detector: • **Signal: "✅ Normal"** → far from top conditions. • **Signal: "⚠️ Approaching"** → MA111 nearing 2×MA350 — market potentially overheating. • **Signal: "🚨 Triggered"** → historical top condition met; cycle peak likely forming. Because this indicator reacts on long moving averages, it's most relevant for macro-level cycle monitoring rather than short-term trading. Automations can use ratio and signal as triggers for top-proximity alerts, while LLMs can interpret notes and summary fields to contextualize macro-cycle risk.