Algostream_risk_management.Correlation_breakdownDetect when a tracked correlation drifts away from its baseline.
Two EWMAs over the correlation feed: a long-period baseline (default 60) and a short-period current (default 10). The status ladder reports increasing severity:
Stable — current is within breakdown_threshold/2 of baselineWeakening — diff > threshold/2 but < thresholdBroken_down — diff ≥ thresholdSign_flipped — current and baseline have opposite signs AND |current| > threshold (overrides the other levels)Built on top of Algostream_analytics.Filters.Ewma.