Triangle consolidation with fitted geometry TTCX
T_TRIANGLE_CONSOLIDATION | ticker recent pattern | trigger | ticker | proposed
origin = argmax high[t-60:t-1]; hold_frac(close >= ema21*0.99) >= 0.8 over [origin, t-1]; any low <= ema8 in window; res = linreg(swing highs, order 2); sup = linreg(swing lows, order 2); sup_slope > 0Definition
A valid consolidation is present: anchored at the first-leg high (highest high of the last 10-60 bars), price holds EMA20 on at least 80% of bars, touches EMA8 at least once, and both the swing-high resistance line and swing-low support line are fittable (>= 2 swings each) with the support line sloping upward (higher lows). The raw geometry (res/sup R^2, slopes, days-to-apex) is exported as continuous features for threshold search; this atom only asserts that the geometry exists.
Logic Triples
No first-class ontology mapping yet. Showing fallback logic: origin = argmax high[t-60:t-1]; hold_frac(close >= ema21*0.99) >= 0.8 over [origin, t-1]; any low <= ema8 in window; res = linreg(swing highs, order 2); sup = linreg(swing lows, order 2); sup_slope > 0
Strategies Using Atom
| Strategy | Family | Edge | Signals |
|---|