Pi Cycle Top/Bottom Indicator

SkillCommerce & finance

Skill #80 | Category: Analysis | Inspired by: TradingView Pi Cycle Indicator

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Pi Cycle Top/Bottom Indicator skill

About this capability

About AI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading

What this skill tells your AI

The instructions your AI receives, as published by signal-execution-labs/forex-trading-ai-agent in skills/pi-cycle/SKILL.md and read by ahel’s review.

Skill #80 | Category: Analysis | Inspired by: TradingView Pi Cycle Indicator

Detect Bitcoin market cycle tops and bottoms using the Pi Cycle indicator - historically accurate for identifying major BTC peaks.

Overview

The Pi Cycle Top Indicator uses the 111-day and 350-day moving averages (multiplied by 2) to identify market cycle tops. When the 111 DMA crosses above the 350 DMA x2, it has historically signaled BTC cycle tops with remarkable accuracy.

Historical Accuracy

DateEventBTC PriceAccuracy
Apr 2013Cycle Top$230✅ Within 3 days
Dec 2013Cycle Top$1,150✅ Within 3 days
Dec 2017Cycle Top$19,800✅ Within 3 days
Apr 2021Local Top$64,000✅ Within 3 days
Nov 2021Cycle Top$69,000✅ Within 1 week

How It Works

Top Detection

Condition: 111 DMA > (350 DMA × 2)
Signal: Extreme overheating - potential cycle top

Bottom Detection (Extended)

Condition: Price < 200 WMA and RSI(Monthly) < 30
Signal: Extreme oversold - potential cycle bottom

K.I.T. Enhancements

Beyond basic Pi Cycle, K.I.T. adds:

  1. Distance Tracking: How far until crossover?
  2. Velocity Analysis: Rate of MA convergence
  3. Time Estimation: "~X days until potential crossover"
  4. Multi-Asset: Apply to ETH, SOL, other crypto
  5. Alert System: Notify when approaching danger zone
  6. Bottom Indicator: Extended version for bottoms
  7. Confidence Score: Based on convergence pattern

Usage

import { getPiCycleStatus } from 'kit/skills/pi-cycle';

const status = await getPiCycleStatus('BTCUSD');

console.log(status);
// {
//   symbol: 'BTCUSD',
//   ma111: 68500,
//   ma350x2: 72000,
//   distance: -4.86%,    // Negative = not crossed
//   velocity: 0.5%/day,  // Rate of convergence
//   daysToConvergence: 10,
//   signal: 'Approaching',
//   riskLevel: 'High',
//   historicalContext: 'Similar to Nov 2021 pattern'
// }

Alerts

import { setPiCycleAlert } from 'kit/skills/pi-cycle';

// Alert when within 5% of crossover
setPiCycleAlert({
  symbol: 'BTCUSD',
  threshold: 5, // percent
  notify: ['telegram', 'email']
});

Risk Zones

DistanceRisk LevelAction
> 20%LowAccumulate
10-20%MediumBe cautious
5-10%HighConsider taking profits
0-5%ExtremeExit most positions
CrossedTOP SIGNALMax defense mode

API

Endpoints

  • GET /api/pi-cycle/:symbol - Current Pi Cycle status
  • GET /api/pi-cycle/:symbol/history - Historical crossovers
  • POST /api/pi-cycle/alert - Set alert

WebSocket

Subscribe to real-time Pi Cycle updates:

ws.subscribe('pi-cycle:BTCUSD');
// Receives updates when distance changes significantly

Comparison

FeatureTradingViewGlassnodeK.I.T.
Top indicator
Bottom indicator
Distance tracking
Time estimation
Multi-asset
AlertsPaidPaid✅ Free
APIPaid✅ Free

Signals

GitHub stars
136
Forks
870
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
pi-cycle
Source
github.com/signal-execution-labs/forex-trading-ai-agent