D024 KagiClarity Flow — Kagi Reversal + Regression Clarity Trading System

2026年8月12日 · git_editor

This article walks through D024 KagiClarity Flow, a D024 KagiClarity Flow trading strategy. It covers the strategy logic, signals and parameter settings, and ships ready-to-use MT4 / MT5 EAs with source download and live position tracking so you can evaluate and deploy it fast.

Magic 1047

[tv_ticker]

D024 KagiClarity Flow trading strategy chart 1

Why Kagi + Clarity?

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.

Reversal Amount = ReversalATRMult(0.5) × ATR(14)

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.

R² = 1 − (SS_residual / SS_total), over the last 20 H1 closes

D024 KagiClarity Flow trading strategy chart 1

Entry Rules 入场条件

LONG Setup

  • Kagi line flips UP: price reverses ≥ 0.5 × ATR(14) off the swing low
  • R²(20) ≥ 0.35 on the last 20 closes
  • Regression slope over those 20 closes is positive
  • Enter long at the close of the signal bar

SHORT Setup

  • Kagi line flips DOWN: price reverses ≥ 0.5 × ATR(14) off the swing high
  • R²(20) ≥ 0.35 on the last 20 closes
  • Regression slope over those 20 closes is negative
  • Enter short at the close of the signal bar
D024 KagiClarity Flow trading strategy chart 2

[mt5_calc_profit]

Exit & Risk Management 出场条件

Fixed, volatility-adaptive risk plan

  • Stop Loss: entry ∓ 1.6 × ATR(14)
  • Take Profit: entry ± 2.8 × ATR(14) — reward:risk ≈ 1.75 : 1
  • Position Sizing: risk exactly 1% of account balance per trade, lot size derived from stop distance
  • Exposure: one position at a time, no averaging, no martingale
  • Daily Cap: maximum 10 new entries per day, resets automatically at the next session
D024 KagiClarity Flow trading strategy chart 3

Execution Flow 执行流程

1TRACKRebuild and update the Kagi reversal-line state on every new closed H1 bar.
2WAITDo nothing while the line holds its current direction — no flip, no interest.
3CONFIRMOn a flip bar, run the 20-bar linear regression and check R² ≥ 0.35 and slope direction.
4ENTEROpen with 1% risk, SL at 1.6×ATR, TP at 2.8×ATR.
5MANAGEHold until SL/TP; daily entry counter caps activity at 10 trades, resets next day.

D024 KagiClarity Flow trading strategy chart 4

[tv_minichart symbol=”XAUUSD”]

Full Parameter Set 参数设置

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
D024 KagiClarity Flow trading strategy chart 5

Strengths & Limitations

Strengths

  • Reversal threshold scales with volatility — no re-tuning needed across symbols
  • Regression clarity filter naturally screens out choppy, low-conviction moves
  • All risk parameters scale with ATR — portable across instruments
  • Simple two-condition logic is easy to audit and journal

Limitations

  • Kagi flips lag the actual turning point by the reversal amount
  • Regression clarity can stay low for extended periods in ranging markets — fewer signals then
  • Thresholds (0.5 ATR reversal, 0.35 R²) may need tuning per symbol/timeframe
  • Backtest thoroughly before any live deployment

Risk Disclaimer: This material is for educational purposes only and does not constitute investment advice.
Trading foreign exchange, gold, and indices carries a high level of risk and may not be suitable for all investors.
Past performance is not indicative of future results. Always test on a demo account first and never risk money you cannot afford to lose.

D024 KagiClarity Flow · Daily Alternative Strategy Series · 2026-07-17
D024 KagiClarity Flow trading strategy chart 6

[tv_analysis symbol=”XAUUSD”]

Strategy Visuals 图示说明

Signal Rules
Execution Flow
D024 KagiClarity Flow trading strategy chart 7
D024 KagiClarity Flow trading strategy chart 8

Source & Download

⚠️ Before You Start
1. Place the EA file in MQL5/Experts/ folder
2. Add https://jybj.org to WebRequest whitelist: Tools → Options → Expert Advisors → Allow WebRequest for listed URL
3. One invite code = one account (non-transferable)

Ready to use · MT4 / MT5 · Parameters preconfigured 即开即用,参数已预设

📥 Download MT4 (.ex4)

📥 Download MT5 (.ex5)

Source code & compiled files: GitHub
Full documentation: Online strategy page
Live performance: View this strategy live →

Live Positions 实时持仓

[mt5_position magic=1047]

Related Trading Strategies

Want to compare more automated strategies? These related ones are worth a look:

D024 KagiClarity Flow Trading Strategy FAQ

Which symbols and timeframe does D024 KagiClarity Flow suit?

D024 KagiClarity Flow adapts to major FX and gold symbols; validate on demo first. Fine-tune for your broker’s spread and leverage, and rely on demo results before going live.

How do I download and run the D024 KagiClarity Flow MT4/MT5 EA?

The Source & Download section provides compiled MT4/MT5 files and source. Drop it into MT5’s Experts folder, restart, and attach it to a chart — parameters are preset.

What are the risks of the D024 KagiClarity Flow trading strategy?

No trading strategy guarantees profit; past and backtested results don’t predict the future. Run it on demo, cap per-trade and total risk, and understand the logic before trading live.

Further Reading

Risk Warning: The results shown are based on simulated or historical trading data. Past performance is not indicative of future results and does not constitute investment advice. Trading involves risk; please proceed with caution.
风险提示:本文所示为模拟/历史交易数据,过往表现不代表未来收益,不构成任何投资建议。