Loading...
Loading...
Analyze the BTC market using a custom momentum theory with nested multi-timeframe analysis (2-day/1-day/12h/6h/4h/2h/1h/30min). Identify uptrend segments, downtrend segments, discrete regulation, unit adjustment cycles, continuous gap divergences, and DIF-DEA divergences, and generate momentum reports with detailed attribute judgments and trading signals. Automatically activates when users inquire about BTC momentum, segment status, MACD analysis, cycle judgment, or divergence detection.
npx skill4agent add druidss/macd btc-momentum-analyzerpython3 /Users/adrian/Desktop/BA/MACD/.claude/skills/btc-momentum-analyzer/scripts/fetch_btc_data.py \
--symbol BTC-USDT \
--timeframes 2d,1d,12h,6h,4h,2h,1h,30m \
--limit 200 \
--exchange okx--symbol--timeframes--limit--exchangepython3 /Users/adrian/Desktop/BA/MACD/.claude/skills/btc-momentum-analyzer/scripts/calculate_indicators.py \
/Users/adrian/Desktop/BA/MACD/data/btc_multi_timeframe.json \
--ema-periods 26,52 \
--macd-params 12,26,9python3 /Users/adrian/Desktop/BA/MACD/.claude/skills/btc-momentum-analyzer/scripts/analyze_momentum.py \
/Users/adrian/Desktop/BA/MACD/data/btc_indicators.json \
--theory-file /Users/adrian/Desktop/BA/MACD/.claude/skills/btc-momentum-analyzer/THEORY.mdpython3 /Users/adrian/Desktop/BA/MACD/.claude/skills/btc-momentum-analyzer/scripts/generate_report.py \
/Users/adrian/Desktop/BA/MACD/data/btc_analysis.json \
--format text \
--detail full=========================
BTC Momentum Theory Analysis Report
Analysis Time: 2025-12-10 16:30:00 UTC
=========================
## Nested Multi-Timeframe Analysis
【2-Day Timeframe】
Segment Status: Uptrend Segment
- DEA: +1250.3 (above 0-axis, strong bullish)
- DIF: +1580.7
- Histogram: +330.4 (continuously expanding)
- Segment Duration: 8 candlesticks
- EMA Arrangement: EMA26 (98,500) > EMA52 (96,200) ✓
- Unit Adjustment Cycle: 2nd cycle
- Inter-Cycle Divergence: None
- DIF-DEA Divergence: None (DIF and DEA rising in the same direction)
【1-Day Timeframe】
Segment Status: Uptrend Segment
- DEA: +850.5 (above 0-axis)
- DIF: +920.3
- Histogram: +69.8 (positive bar, weakening momentum)
- Segment Duration: 12 candlesticks
- EMA Arrangement: EMA26 (98,200) > EMA52 (96,800) ✓
- Unit Adjustment Cycle: 1st cycle
- Inter-Cycle Divergence: None
- DIF-DEA Divergence: ⚠️ Minor divergence (price hit new high, DIF did not)
- Relationship with Higher Timeframe: Resonating upward with 2-day timeframe
【12-Hour Timeframe】
Segment Status: Uptrend Segment
- DEA: +420.8
- DIF: +380.2
- Histogram: -40.6 (negative bar, momentum turning weak)
- Segment Duration: 18 candlesticks
- EMA Arrangement: EMA26 (98,100) > EMA52 (97,200) ✓
- Unit Adjustment Cycle: 2nd cycle
- Inter-Cycle Divergence: ✓ Detected (high of 1st cycle vs 2nd cycle)
- DIF-DEA Divergence: ✓ Bearish divergence (DIF crossed below DEA, death cross)
- Discrete Regulation: None
- Relationship with Higher Timeframe: 1-day timeframe is uptrending, but 12h momentum is exhausted
【6-Hour Timeframe】
Segment Status: Transition Period (adjustment after uptrend)
- DEA: +180.3
- DIF: +120.5
- Histogram: -59.8 (negative bar, pullback)
- Segment Duration: 6 candlesticks (transition period)
- EMA Arrangement: EMA26 (97,800) < EMA52 (97,850) ✗ (short-term breakdown)
- Unit Adjustment Cycle: N/A (in transition period)
- Discrete Regulation: ✓ Detected (discrete adjustment in candlesticks 3-5)
- Relationship with Higher Timeframe: 12h divergence warning, 6h entered adjustment
【4-Hour Timeframe】
Segment Status: Transition Period
- DEA: +80.2
- DIF: +50.1
- Histogram: -30.1
- Segment Duration: 10 candlesticks
- EMA Arrangement: EMA26 (97,600) < EMA52 (97,700) ✗
- Continuous Gap Divergence: None
- DIF-DEA Divergence: ✓ Death cross divergence
- Relationship with Higher Timeframe: 6h adjustment continues to 4h
【2-Hour Timeframe】
Segment Status: Downtrend Segment (warning)
- DEA: -20.5 (crossed below 0-axis)
- DIF: -45.3
- Histogram: -24.8
- Segment Duration: 4 candlesticks
- EMA Arrangement: EMA26 (97,400) < EMA52 (97,650) ✗
- Unit Adjustment Cycle: 1st cycle (start of downtrend)
- Relationship with Higher Timeframe: 4h adjustment turned into 2h downtrend
【1-Hour Timeframe】
Segment Status: Downtrend Segment
- DEA: -35.8
- DIF: -50.2
- Histogram: -14.4
- Segment Duration: 8 candlesticks
- EMA Arrangement: EMA26 (97,350) < EMA52 (97,550) ✗
- Unit Adjustment Cycle: 1st cycle
- Continuous Gap Divergence: None
- DIF-DEA Divergence: None (declining in the same direction)
- Relationship with Higher Timeframe: 2h downtrend continues to 1h
【30-Minute Timeframe】
Segment Status: Downtrend Segment
- DEA: -45.2
- DIF: -55.8
- Histogram: -10.6
- Segment Duration: 12 candlesticks
- EMA Arrangement: EMA26 (97,300) < EMA52 (97,500) ✗
- Unit Adjustment Cycle: 1st cycle
- Hidden Signal: ⚠️ Histogram convergence (potential reversal imminent)
- Relationship with Higher Timeframe: 1h downtrend continues
---
## Multi-Timeframe Linkage Summary
【Large-Cycle Trend】(2-day - 1-day)
✓ Uptrend confirmed
- 2-day timeframe is in the 2nd unit adjustment cycle, strong uptrend
- 1-day timeframe shows minor DIF-DEA divergence, need to be cautious
【Medium-Cycle Adjustment】(12h - 6h - 4h)
⚠️ Adjustment period
- 12h timeframe detected inter-cycle divergence + DIF-DEA death cross divergence
- 6h timeframe found discrete regulation, entered transition period
- 4h timeframe continues adjustment, momentum weakening continuously
【Small-Cycle Downtrend】(2h - 1h - 30m)
✗ Short-term downtrend
- 2h timeframe confirmed downtrend segment (DEA crossed below 0-axis)
- 1h, 30m timeframes continue downtrend, but 30m shows histogram convergence (hidden reversal signal)
---
## Trading Signals and Recommendations
【Current Market Status】
Bull-bear divergence: Large-cycle bullish vs small-cycle bearish
【Buy Point Analysis】
❌ Not recommended to open long positions immediately
Reasons:
1. 12h timeframe shows obvious bearish divergence (price hit new high, DIF did not)
2. 6h timeframe detected discrete regulation, market is in adjustment period
3. 2h/1h timeframes confirmed downtrend segments, short-term trend downward
4. Wait for small-cycle stabilization before considering entry
【Potential Buy Point Trigger Conditions】(refer to THEORY.md rules)
1. 30m timeframe DEA crosses above 0-axis, confirming reversal
2. 1h timeframe EMA26 crosses above EMA52 again
3. 2h timeframe adjustment ends, resumes resonance with 4h timeframe
4. Large-cycle 1-day, 2-day timeframes maintain uptrend segments
【Sell Point Analysis】
⚠️ Short position risk warning
Reasons:
1. Large-cycle (2-day, 1-day) timeframes are still in strong uptrend segments
2. Current downtrend may just be a normal pullback in the large cycle
3. 30m histogram convergence, potential rebound imminent
【Recommended Operations】
Maintain wait-and-see attitude, wait for one of the following situations:
1. 30m reversal signal confirmed → Open small long positions (follow large-cycle trend)
2. 2h DEA continues to drop below -100 → Consider short-term short positions
3. 1-day DEA crosses below 0-axis → Large-cycle trend reversal, short cautiously
【Risk Level】: Medium
【Confidence Level】: 60% (wait-and-see recommendation)
---
## Key Monitoring Indicators
1. **30-Minute Histogram**: Whether it reverses with volume after convergence
2. **2-Hour DEA**: Whether it continues to decline or stabilizes
3. **12-Hour DIF-DEA**: Whether a new bullish arrangement forms after divergence
4. **1-Day EMA26/EMA52**: Whether bullish arrangement is maintained
=========================
Report Generation Time: 2025-12-10 16:30:12 UTC
Data Source: OKX API
Theoretical Basis: THEORY.md (user-defined momentum theory)
=========================https://www.okx.com/api/v5/market/candles2D1D12H6H4H2H1H30m/Users/adrian/Desktop/BA/MACD/data/btc_cache_{timeframe}.jsondata/--format json--detail simplepython3 scripts/analyze_momentum.py data.json --detail fullpython3 scripts/analyze_momentum.py data.json --focus 1h,4h,1dpython3 scripts/analyze_momentum.py data.json --mode quick.claude/skills/btc-momentum-analyzer/scripts/python3 scripts/fetch_btc_data.py --symbol BTC-USDT --timeframes 1h --limit 10