1---2name: structure-correlation-monitor-crypto-rotation3description: Compute rolling 6h/1D correlations and betas vs BTC from local OHLCV CSVs, plus 4H CoC and 1H VWAP status. Use when the user requests rotation eligibility or structure checks.4---5
6# Structure & Correlation Monitor
7
8## Instructions
91) Load CSVs from data/ohlcv/1h/*.csv for: BTC, ETH, SOL, ADA, ZEC, DASH, PAXG.
10 Columns: timestamp, open, high, low, close, volume.
112) Calculate hourly-returns:
12 - Pearson correlations: 6h (window=6 bars) and 1D (window=24 bars), EWMA λ=0.94.
13 - Rolling OLS beta: β_ALT,BTC (same window + EWMA).
14 - 4H Change-of-Character (HH/HL or LL/LH from swing pivots).
15 - 1H VWAP reclaim + retest/hold (above/below; hold true/false).
163) Emit JSON:
17 {"corr6h":{}, "corr1d":{}, "beta":{},
18 "structure":{"btc":{"coc":"up|down|none","vwap_hold":true|false},
19 "ethbtc_slope":"up|down|flat","btcd_slope":"up|down|flat"},
20 "eligibility":{"btc_probe":bool,"btc_add":bool,"alt_sleeve":bool,"counterbeta_sleeve":bool},
21 "notes":["..."]}
224) Eligibility:
23 - btc_probe = true if ≥3 of: 4H CoC up, 1H VWAP hold, MACD 1H>0, 60/10 stoch curl up, ETHBTC slope ≥0.
24 - alt_sleeve = true if 6h |ρ(BTC,ALT)|≥0.7 AND 1D ≥0.6 AND ETHBTC slope ≥0.
25 - counterbeta_sleeve = true if 6h ρ≤-0.4 AND that alt shows independent 4H momentum.