Kagi Chart MT5: How to Read Yin and Yang Lines on Gold

Gold has been whipsawing traders all week. It fell to a one-year low near $3,830 on Monday, bounced about $45 on Tuesday, and slipped again on Wednesday as markets waited for the Fed minutes. On a 15-minute candle chart that looks like dozens of “reversals”. A Kagi chart on MT5 asks a simpler question: did price actually reverse by an amount that matters? This guide explains how Kagi charts work, what Yang and Yin lines mean, how to choose the reversal amount, and how to read gold’s current swings with the Kagi Chart indicator for MetaTrader 5.
01What a Kagi chart is (and why time is missing)
A Kagi chart is a Japanese charting method that ignores time. Candlestick and bar charts print a new bar every period, even when nothing happens. A Kagi line keeps running in one direction until price reverses by a set amount, and only then turns. Quiet hours disappear, and small counter-moves below the threshold are ignored entirely.
The Kagi Chart MT5 indicator draws these lines directly on your existing MetaTrader 5 chart window, so you keep your normal candles and add the Kagi structure on top. It handles session gaps and weekends and uses even column spacing based on bar index, so the line stays readable regardless of time gaps.
Reversal threshold
The line only changes direction when price moves back by your chosen amount. Everything smaller is treated as noise.
Yang and Yin
Yang (up) and Yin (down) states show whether buyers or sellers currently control the structure.
Shoulders and waists
Turning points mark levels where price previously reversed, which you can read as support and resistance.
02How to read Yang and Yin lines
The most important idea in Kagi is that a change of direction and a change of control are not the same thing. The line can turn down many times while still in a Yang state. It switches state only when a previous structural level breaks.
- Yang line: price has pushed above a previous high (a “shoulder”). Buyers are in control of the structure.
- Yin line: price has fallen below a previous low (a “waist”). Sellers are in control.
- Shoulder: the top of an up segment, where price turned down by at least the reversal amount.
- Waist: the bottom of a down segment, where price turned up by at least the reversal amount.
The indicator shows Yang and Yin transitions at the exact price level where structure is broken, including mid-segment transitions, and it lets you set custom colours and line thickness for each state. An on-chart display shows the current Yang or Yin state, the swing count and the current trend direction.
đ Bullish structure
- The line turns from Yin to Yang by breaking above the last shoulder
- New waists form above earlier waists
- Down segments stay short and fail to break the last waist
đ Bearish structure
- The line turns from Yang to Yin by breaking below the last waist
- New shoulders form below earlier shoulders
- Rebounds turn the line up but stall under the last shoulder
03Choosing the reversal amount: the setting that matters most
Everything in a Kagi chart depends on the reversal threshold. Too small and you are back to reading noise. Too large and the chart reacts late to real turns. The Kagi Chart indicator supports four reversal modes:
| Reversal mode | How it works | Suggested starting point to test |
|---|---|---|
| Percentage | Reversal is a percent of price, so it scales with the market | Gold and indices: try 0.5% for intraday structure, 1â2% for swing structure |
| ATR | Reversal adapts to recent volatility | Forex pairs: ATR period 14 (the product page’s recommendation for forex) |
| Fixed price | Reversal is a set price distance | Gold: a round figure such as $20 or $40, matched to your timeframe |
| Broker points | Reversal in points as quoted by your broker | Useful when you compare symbols on the same broker feed |
The product page recommends percentage mode for indices and metals, ATR mode with period 14 for forex, and percentage mode with higher values for crypto. The specific numbers in the right-hand column are only starting points; test them on your own symbol and timeframe before relying on them.
Volatility changes the right threshold. With gold moving tens of dollars a day this month, a threshold that looked fine in a quiet market can now flip the line far too often.
04Gold this week: a live example of noise vs structure
Gold is a useful test case right now. Spot gold dropped to a one-year low of about $3,830 on Monday, 16 November, then recovered to around $3,875 on Tuesday, according to Brisk Markets and RoboForex. On Wednesday it was under pressure again, with US 10-year Treasury yields above 5% and futures pricing more than a 90% chance of a quarter-point Fed rate hike in December, as reported by Mitrade and RoboForex. The minutes of the Fed’s last meeting are due on 18 November, after a hotter-than-expected October inflation report.
Here is how the reversal threshold changes what you see, using simple arithmetic on those levels:
- 0.5% reversal (about $19 at $3,850): Tuesday’s $45 bounce turns the Kagi line up clearly. If it fails to clear the last shoulder, the line stays Yin, which tells you the bounce has not changed control.
- 1% reversal (about $38): the bounce still registers as an up segment, but only just. The chart now shows the move without the intraday wiggles.
- 2% reversal (about $77): the bounce is ignored. The line simply continues the Yin downtrend from higher levels, which is how a swing trader would want it summarised.
None of these views is “right”. They answer different questions, and comparing them is the quickest way to understand whether a bounce is noise or the start of a structural change.
What the chart above shows: on the XAUUSD H1 chart with the Kagi Chart indicator (reversal setting 1.0), the line turned to Yin after the shoulder near $4,140 on 13 November. Each rebound since then has formed a lower shoulder. A few short Yang segments around $3,850â3,880 on 17 November failed to hold, and on 18 November the Yin line dropped straight through the earlier waists to about $3,771. The indicator’s readout shows the current state as YIN with the trend down. In Kagi terms, buyers have not reclaimed a single prior shoulder during this slide.
05Step-by-step: setting up Kagi Chart on MT5
Install and attach
Place the indicator in your MQL5/Indicators folder (or install it from the MQL5 Market), then drag it from the Navigator panel onto an XAUUSD chart.
Pick a reversal mode
For gold, start with percentage mode. For forex pairs, try ATR mode with period 14.
Set the threshold for your style
Use a smaller value to see intraday swings and a larger value to see only major swings. Note how many swings the on-chart swing count shows.
Style the lines
Choose clear Yang and Yin colours, adjust line thickness and column width, and enable even spacing if you want a compact view.
Turn on alerts
Enable the optional notification so MT5 alerts you when the trend state changes between Yang and Yin, instead of watching every tick.
06Practical ways traders use Kagi structure
Trend filter
Only look for long setups on your normal chart while Kagi is Yang, and short setups while it is Yin.
Levels map
Mark recent shoulders and waists as zones where price reversed before. On gold this week, Monday’s waist near the one-year low is the obvious one.
Multi-threshold view
Compare a small and a large threshold, or the same threshold on different timeframes, to see whether short-term and swing structure agree.
Exit discipline
Treat a Yang-to-Yin change as a prompt to review an open long position, rather than reacting to every red candle.
Kagi works well alongside a momentum or trailing tool. The NRTR Indicator for MT5 also flips only after a percentage reversal and can serve as a trailing line, while RSI Cyclic Smoothed adds an adaptive momentum view in a separate window.
07Limitations to know before you rely on it
Kagi Chart is a visualisation tool. It does not execute trades, does not provide trading signals as indicator buffers, and does not expose data buffers for Expert Advisor integration.
The chart is recalculated on each update and does not predict future market behaviour. In low-volatility conditions it may show very few movements.
If you want Kagi-style reversal logic inside an automated strategy, that needs to be written into the EA itself. Our custom EA development service can build an Expert Advisor around your own reversal and structure rules.
Frequently asked questions
Does the Kagi Chart indicator replace my normal MT5 chart?
No. It draws the Kagi lines on your existing MT5 chart window, so you keep your candles, other indicators and drawings.
What reversal amount should I use for gold?
The product page recommends percentage mode for metals. A small percentage shows intraday swings and a larger one shows only major swings; test a few values on your timeframe and compare the swing count.
Can an Expert Advisor read the Kagi lines?
Not directly. The indicator does not expose data buffers for EA integration. A custom EA can calculate the same reversal logic internally.
Is there a free demo?
Yes. You can download a free demo from the MQL5 Market and run it in the MetaTrader 5 Strategy Tester before buying.
See gold’s real structure, not the noise
Add time-independent Kagi lines to your MT5 charts, choose percentage, ATR, fixed price or point reversals, and get an alert when the trend state flips between Yang and Yin. Try the free demo on XAUUSD or any symbol you trade.
Trading involves risk. This article is educational, describes software tools only and is not financial advice.
Federal Reserve ¡ Gold ¡ Kagi Chart ¡ mt5 ¡ XAUUSD
Related articles
Automate Your Trading Strategy: Turn Manual Rules Into an MT5 EA
Automate your trading strategy in MT5: learn which rules a computer can follow, how to turn them into an EA and test it safely.…
Read more âCrypto Liquidation Alert Bot: Lessons From Bitcoin’s Drop to $45K
A crypto liquidation alert bot warns you before Bitcoin crashes close your positions. Learn what it watches, how to build one safely and get…
Read more âMT5 Trade Journal: Send Every Trade to a Database and Dashboard
Build an automatic MT5 trade journal: log every deal to SQLite or a database with MQL5 or Python, then see results per strategy. Get…
Read more âNeed a team that can design, build and maintain it all?
Let's talk. Tell us about your project and we'll reply with honest timelines.


