Ghost Channels [mph1nance]
Category: trend, volatility, market_structure
Automatically fits parallel trend channels using either Linear Regression or Pivot-based extrema, providing fit quality metrics (R2), rail touch validation, and a proprietary 0-100 Urgency score.
Formula
Slope: $m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}$, Intercept: $b = \frac{\sum y - m\sum x}{n}$, Fit Quality: $R^2 = 1 - \frac{SS_{res}}{SS_{tot}}$, Regression Width: $2 \times \text{std\_mult} \times \sigma(\text{residuals})$
Inputs
- Fit method (default: FitMethod.auto)
- Lookback bars (default: 100)
- Regression rail width (std-devs) (default: 2.0)
- Slope/ATR flat threshold (default: 0.05)
- Touch tolerance (x width) (default: 0.05)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.