Blog / Strategy
Strategy

Kagi Line Reversal

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Kagi Line Reversal strategy is a trend-reversal trading system built around the Kagi chart — a classic Japanese charting method that, like Renko, Point-and-Figure, or Three-Line-Break, filters out both time and minor price noise. Instead of plotting one candle per fixed time interval, a Kagi line simply keeps extending in its current direction as price makes fresh extremes, and it only reverses when price retraces by a defined threshold called the reversal amount. In this implementation the reversal amount is scaled by the Average True Range (ATR) — a common measure of recent volatility — so the chart automatically adapts to each instrument rather than relying on a fixed pip distance.

What makes the Kagi chart distinctive is the concept of line thickness. Each reversal leaves behind a turning point: an up-line that reverses down stamps a shoulder (a local peak), while a down-line that reverses up stamps a waist (a local trough). The line then changes thickness — from thin (called yin) to thick (called yang) — whenever price breaks one of these prior turning points. The strategy treats that thickness flip as its trading signal, giving it a clean, rules-based way to define when a trend has genuinely resumed rather than merely wobbled.

This strategy is best understood as a learning tool for traders who want to study alternative charting logic and stop-and-reverse system design. It is designed for markets that produce sustained directional swings, and it may appeal to anyone curious about how noise-filtering charts translate into automated MetaTrader 5 entries. It is not a shortcut to results — it is a structured example of how a volatility-adaptive reversal engine can be built and tested.

How It Works

The strategy processes one signal per freshly closed bar. On each completed bar it recalculates ATR, derives the reversal amount, advances the internal Kagi line, and checks whether the line's thickness has flipped. Here is the logic in plain English:

Because the entire chart is driven by ATR, the reversal threshold and the risk distances all breathe together with volatility: quiet markets produce tighter swings and tighter stops, while volatile markets widen everything proportionally.

Kagi Line Reversal MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
ReversalMult 1.0 0.3 4.0 The Kagi reversal amount as a multiple of ATR. Larger values require bigger retracements to flip the line, producing fewer but larger swings.
AtrPeriod 14 5 50 The ATR lookback in bars. It sizes both the reversal amount and the stop/target distances.
StopAtrMult 2.5 0.5 6.0 Protective stop-loss distance, expressed in ATR multiples, measured from the entry price.
TpAtrMult 4.0 0.5 10.0 Take-profit distance, expressed in ATR multiples, measured from the entry price.
Lots 0.10 0.01 1.0 The fixed trade volume in lots for each new position.
Kagi Line Reversal MT5 EA — MQL5 source code

Recommended Chart Settings

The Kagi Line Reversal EA is symbol-agnostic because its reversal threshold is ATR-scaled, but it is most naturally studied on major forex pairs such as EUR/USD or GBP/USD, where liquidity is deep and ATR behaves smoothly. A good starting point for research is the H1 (1-hour) or H4 (4-hour) timeframe, where directional swings are large enough for the shoulder/waist thickness rule to generate meaningful signals without excessive churn.

Higher timeframes tend to produce fewer, cleaner reversals; lower timeframes produce more signals but also more noise-driven flips. Remember that Kagi behavior — and therefore performance — will vary considerably across different instruments, sessions, and market conditions. Always test any configuration on your own broker's data before drawing conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

The Kagi approach has genuine strengths as a study subject. By discarding time and filtering out sub-threshold noise, it can help you focus on structurally significant turning points rather than every small wiggle. The shoulder/waist thickness rule gives an objective, unambiguous definition of trend continuation, and the ATR scaling means the same code adapts across volatility regimes without manual re-tuning. As a stop-and-reverse engine, it also keeps position management simple: the system is always either flat or aligned with the latest confirmed swing.

That said, this style of system has well-known limitations. Like all trend-reversal and breakout logic, it tends to perform best when markets trend and can struggle badly in choppy, range-bound conditions, where price repeatedly crosses shoulders and waists to produce a string of losing whipsaws. Because signals fire only on confirmed thickness flips, entries are inherently lagging — the strategy sacrifices early entry in exchange for confirmation, which may mean giving back part of a move before a signal appears. The fixed lot size does not scale risk to account equity, and the ATR-based stops, while adaptive, do not guarantee execution at the intended price during gaps or fast markets. None of these traits make the strategy good or bad on their own; they simply define the conditions under which it may indicate useful signals versus underperform.

Risk Management Tips

Sound risk management matters more than any single strategy. Consider the following general principles as you study this EA:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog