Port the "trend context + stall + conviction + divergence + long/short coloring" view from CCI Advanced (indicators/momentum/cci_advanced/cci_advanced.pine, v1.2.0) onto a Stoch RSI core. New indicator, not a mode of CCI Advanced.
Why separate (not one indicator with a dropdown)
Pine input defaults are static, so a single morphing indicator can't present per-type OB/OS / scale defaults — the user would re-set levels on every switch. Stoch RSI is also natively K/D and 0–100 bounded, structurally different from CCI's zero-centered/unbounded design. Three focused tools over a jack-of-all-trades.
Keep identical framework structure
Same section order as CCI Advanced so improvements port 1:1: Core → Mid/Levels → Stall → Trend Context → Conviction → Divergence → Plots → Alerts.
Portable as-is
- Trend context line = slow Stoch RSI (longer RSI/Stoch length), faint behind the fast line, long/short colored
- Stall/absorption = oscillator-slope vs ATR-normalized price-slope (threshold rescaled to 0–100, ~15 instead of 40)
- Cross conviction = K/D cross contradicted by flat price or counter-trend → weak/faded triangle
- Trend↔CCI divergence wedge = fill between fast and trend-context line that lights up only when they move opposite (supported dip vs unsupported bounce); n-bar slope + min-slope noise guard. Rescale min-slope to the 0–100 range (~10 instead of 25)
- Long/Short coloring = green/red on trend context line + histogram + divergence wedge, teal/pink reserved for level
Adaptations vs CCI
- K = main line, D = signal line (maps onto cciLine/signal)
- Bounded 0–100: drop the three scale modes
- Midline 50 (not 0); "zero cross" → 50-cross
- OB/OS defaults 80 / 20
- Gradient keyed on 20/80
- Shadow fill to 50
- Long = above 50, Short = below 50
Deliverables
indicators/momentum/stoch_rsi_advanced/stoch_rsi_advanced.pine
README.md, CHANGELOG.md (v1.0)
- Header per CLAUDE.md (
[WavesUnchained], ✓ features, Build date)
- Root
README.md + CATALOG.md entries
- Validate in TradingView for CE errors
Port the "trend context + stall + conviction + divergence + long/short coloring" view from CCI Advanced (
indicators/momentum/cci_advanced/cci_advanced.pine, v1.2.0) onto a Stoch RSI core. New indicator, not a mode of CCI Advanced.Why separate (not one indicator with a dropdown)
Pine input defaults are static, so a single morphing indicator can't present per-type OB/OS / scale defaults — the user would re-set levels on every switch. Stoch RSI is also natively K/D and 0–100 bounded, structurally different from CCI's zero-centered/unbounded design. Three focused tools over a jack-of-all-trades.
Keep identical framework structure
Same section order as CCI Advanced so improvements port 1:1: Core → Mid/Levels → Stall → Trend Context → Conviction → Divergence → Plots → Alerts.
Portable as-is
Adaptations vs CCI
Deliverables
indicators/momentum/stoch_rsi_advanced/stoch_rsi_advanced.pineREADME.md,CHANGELOG.md(v1.0)[WavesUnchained], ✓ features, Build date)README.md+CATALOG.mdentries