Kagi Reversal-Line Flip + Linear-Regression Clarity Filter
A complete trading system built on the classic Kagi charting idea — a line that only reverses on a real, volatility-scaled price move — combined with a regression-based "clarity" check that keeps it out of choppy, directionless markets.
Most reversal-line systems (ZigZag, swing-high/low, fixed-pip reversals) flip constantly in range-bound markets, generating a stream of low-quality signals. KagiClarity Flow borrows the century-old Kagi charting technique: the line only changes direction once price reverses against the current swing extreme by a real, ATR-scaled amount — not a fixed number of pips, so the threshold automatically widens in volatile conditions and tightens in quiet ones.
But a Kagi flip alone doesn't tell you whether the move that follows is trustworthy. So every flip is passed through a second filter: a least-squares linear regression of the last 20 closes. Its R-squared value measures how well those closes fit a straight line — high R² means a clean, directional move; low R² means noisy chop. Only flips with R² ≥ 0.35 and a regression slope that agrees with the flip direction are allowed to trade.
| Parameter | Value | Meaning |
|---|---|---|
| Kagi Reversal | 0.5 × ATR(14) | Minimum reverse move to flip the Kagi line |
| ATR Period | 14 | Volatility unit for the reversal threshold and stops |
| Clarity Lookback | 20 bars | Window for the linear-regression fit |
| Clarity Threshold | R² ≥ 0.35 | Minimum goodness-of-fit to treat the move as directional |
| Stop Loss | 1.6 × ATR | Initial protective stop |
| Take Profit | 2.8 × ATR | Fixed target, RR ≈ 1.75 |
| Risk per Trade | 1% | Of account balance |
| Max Entries/Day | 10 | Hard daily cap, auto-resets |
| Timeframe | H1 | Primary design & test timeframe |
| Markets | Major FX, Gold, Indices | Liquid instruments preferred |