Appearance
Personalize your experience
Kagi Charts
Speciality ChartA time-independent Japanese chart type that uses thick Yang (rising) lines and thin Yin (falling) lines to reveal pure price structure. Kagi charts reverse direction only when price moves by a specified threshold, filtering noise and exposing the underlying trend through line thickness and shoulder formations.
Origins & History
Kagi charts originate from Japan, with their name derived from the Japanese word <Em >"kagi"</Em > (鍵), meaning "key" or "hook" — a reference to the characteristic hook-like of the line at each reversal . The technique emerged in the rice trading markets of Japan during the <Em > Meiji era (1868-1912)</Em >, a of rapid modernization that saw the formalization of many Japanese charting methods. While Kagi’s exact origins are not as precisely documented as charting (which has been traced to Munehisa Homma’s work in the 1700s), Kagi is believed to have developed in the 1870s as a practical tool for rice traders who needed to visualize price trends across multiple trading sessions without being misled by the irregular timing of rice market activity.
The key innovation of Kagi was its use of <Em > line thickness</Em >> as a indicator of trend direction. In a rising market, the Kagi line is drawn thick (Yang); in a falling market, the line is drawn thin (Yin). This convention is rooted in the Japanese philosophical concept of Yin and Yang — complementary forces whose interaction creates the balance of the market. A thick Yang line represents an active, assertive market with buyers in control. A thin Yin line represents a passive, receptive market where sellers dominate. The thickness change itself becomes a trend signal: when the line switches from thin to thick, the trend has turned bullish; when it switches from thick to thin, the trend has turned bearish.
Kagi remained a niche technique within Japan throughout the 19th and most of the 20th centuries, known primarily to professional rice traders and a circle of Japanese stock market practitioners. The first significant Western exposure came through the work of <Em > </Em >, the American trader who studied Japanese charting techniques during his time at a Japanese brokerage firm in the 1980s. Nison’s 1994 book <Em >"Beyond Candlesticks: New Japanese Charting Techniques Revealed"</Em >> included the first detailed English-language explanation of Kagi chart construction and interpretation, alongside and .
Western of Kagi accelerated in the 2000s as trading platforms began incorporating the chart type. Forex traders were particularly drawn to Kagi because the 24-hour trading cycle made analysis challenging, and Kagi’s noise-filtration properties were well-suited to currency markets' tendency to trend strongly. The financial crisis of 2008-2009 saw renewed interest in Kagi as traders sought alternative charting methods that could provide clearer signals during the extreme volatility of that . By the 2010s, Kagi was a standard chart type on all major trading platforms, from Bloomberg to MetaTrader.
Modern implementations have Kagi’s capabilities significantly. The Quatick Charts implementation supports three reversal amount modes: > (reversalPct), > absolute (reversalAbs), and <Em > -based </Em > (atrPeriod + atrMultiplier). The -based is particularly useful as it automatically adjusts the reversal threshold to the ’s changing volatility, maintaining consistent chart behaviour across different market conditions. Additional modern features include configurable Yang/Yin colours, adjustable line widths, optional shoulder line display, lines for unclosed legs, and minimum leg length filtering.
The academic study of Kagi charts has grown significantly since 2010. Research papers have examined the properties of Kagi legs, the predictive power of shoulder formations, and the integration of Kagi with machine learning models for price prediction. A 2018 study published in the Journal of Financial Econometrics found that Kagi-based trading signals outperformed comparable and signals in trending markets across a universe of 500 stocks, with an information ratio improvement of approximately 0.3-0.5 depending on market conditions.
The historical lineage of Kagi is sometimes traced to the earlier Japanese concept of <Em >"key charts"</Em > — -drawn price records that summarized a day’s trading in a single line. These key charts evolved into the more structured Kagi system as traders formalized the reversal threshold concept. The transition from informal line to the systematic Kagi of the Meiji era represents one of the earliest of a rules-based, algorithmic approach to chart construction in any trading tradition worldwide.
Theory & Core Principles
The Kagi chart operates on a conceptually simple yet analytically powerful principle: a is drawn in the direction of until price reverses by a specified threshold amount, at which the line changes direction and a hook is formed. The line continues in the new direction until another threshold reversal occurs. The line’s thickness reflects the direction of the most recent complete movement: thick lines (Yang) for net rising movement and thin lines (Yin) for net falling movement.
This construction creates a chart that is fundamentally different from both charts and other speciality charts. Unlike , where each brick represents a price distance, Kagi lines are continuous and variable-length — a single Kagi leg may represent 5 or 50 points of price movement, depending on how far price moves before reversing. Unlike , which uses a grid-based X/O structure with , Kagi uses a continuous line that traces the contour of price movement. The continuous line structure is unique to Kagi among the major speciality chart types.
The core theoretical insight of Kagi is that <Em > trend direction is the most piece of information a chart can provide</Em >, and that this information should be visually dominant in the chart design. The thick Yang line demands the viewer’s attention, pulling the eye along the uptrend. The thin Yin line recedes visually, making downtrends feel less significant. This design philosophy is opposite to most , which typically use the same weight for upward and downward movement, differing only in colour. Kagi’s designers understood that visual weight influences -making and designed the chart to bias the viewer toward the primary trend direction.
Kagi’s philosophical foundation is the Japanese concept of <Em >"wa"</Em > (harmony/balance). The alternating thick and thin lines represent the rhythm of markets — periods of accumulation and , expansion and contraction, Yang (active) and Yin (passive). The trader’s goal is to identify when this rhythm is shifting from one phase to another. A prolonged Yang phase suggests the market is in accumulation; a prolonged Yin phase suggests distribution. The transition between phases — the reversal — is the most significant analytical event. This philosophical framework gives Kagi a depth that purely mechanical charting methods lack.
The theoretical foundation of Kagi also relates to the concept of market memory and the fractal nature of price movements. Each Kagi leg represents a complete price cycle: an assertion of direction (the leg itself) followed by a failure of that direction (the reversal). The leg length measures the distance over which the assertion was maintained before the failure occurred. This can be interpreted as a of conviction — longer legs represent stronger conviction in the assertion. The sequence of leg lengths over time forms a narrative of changing market conviction that is the heart of Kagi analysis.
Kagi’s construction also has connections to signal processing theory. The reversal threshold acts as a low-pass on price , removing high-frequency noise ( fluctuations) while preserving the low-frequency trend structure (significant movements). The threshold determines the cutoff frequency of this filter. This signal processing perspective provides a theoretical justification for using -based thresholds: the cutoff frequency should adapt to the signal’s changing characteristics, just as an adaptive filter adjusts its parameters based on input .
The Mathematics
The Kagi chart construction algorithm is defined by the reversal threshold, which determines when the line changes direction. Let <Em > R</Em >> be the reversal amount — the minimum price move required to change the direction of the Kagi line. > R> can be specified as a of price, an absolute , or a multiple of . The choice of threshold type depends on the and the trader’s preference for volatility adaptation.
Let <Em > P <sub > start</sub ></Em >> be the starting price of the current Kagi leg. Let <Em > P <sub > current</sub ></Em >> be the most recent price. Let <Em > D</Em >> be the current direction: +1 for Yang (rising), -1 for Yin (falling). The leg tracking algorithm maintains two key state : the starting price of the current leg and the extreme price reached during the leg.
When <Em > D = +1</Em > (Yang/rising leg), the leg continues upward as long as <Em > P <sub > current</sub > ≥ P <sub > start</sub ></Em >. The price reached during the Yang leg is tracked as <Em > P <sub > high</sub ></Em >. A Yin reversal occurs when <Em > P <sub > current</sub > ≤ P <sub > high</sub > — R</Em >. When this condition is met, a new Yin leg begins at <Em > P <sub > high</sub ></Em >, and the line changes from thick (Yang) to thin (Yin). The direction <Em > D</Em >> becomes -1.
When <Em > D = -1</Em > (Yin/falling leg), the leg continues downward as long as <Em > P <sub > current</sub > ≤ P <sub > start</sub ></Em >. The price reached during the Yin leg is tracked as <Em > P <sub > low</sub ></Em >. A Yang reversal occurs when <Em > P <sub > current</sub > ≥ P <sub > low</sub > + R</Em >. When this condition is met, a new Yang leg begins at <Em > P <sub > low</sub ></Em >, and the line changes from thin (Yin) to thick (Yang). The direction <Em > D</Em >> becomes +1.
For <Em > -based reversal</Em >: > R <sub > pct</sub > = P <sub > current</sub > × (reversalPct / 100). The -based reversal dynamically adjusts the threshold based on the current price level. For a $50 stock with a 2% reversal, R = $1.00. For a $100 stock with the same 2% reversal, R = $2.00. This ensures that the reversal threshold is proportional to the price level, which is appropriate for instruments whose price changes scale with price level.
For <Em > absolute-based reversal</Em >: > R <sub > abs</sub > = reversalAbs. The absolute reversal is a price amount that does not change with the price level. This is appropriate for instruments with relatively stable price levels, such as currency pairs where the price moves in . For EURUSD, a reversalAbs of 0.0050 (50 pips) provides a consistent reversal threshold regardless of whether the pair is trading at 1.0500 or 1.1200.
For <Em > -based reversal</Em >: > R <sub > </sub > = (atrPeriod) × atrMultiplier. The -based reversal dynamically adjusts the threshold based on the ’s recent volatility. During high-volatility periods, R increases, reducing the number of reversals and preventing . During low-volatility periods, R decreases, allowing the Kagi chart to capture the reduced . This is the most sophisticated and is recommended for most applications.
A critical mathematical property of Kagi is that the reversal threshold <Em > R</Em >> is applied at the extreme of the prior leg, not at the current price. This means that for a Yang leg to reverse to Yin, price must first establish a new high (extending the Yang leg) and then fall back by <Em > R</Em >> from that high. This peak-and-reverse requirement ensures that Kagi legs always contain meaningful price extensions — a leg represents a move from one extreme to a counter-extreme. The Kagi line does not simply ; it follows the structure of price reversals.
The <Em > shoulder level</Em >> is calculated as a price level where at least <Em > N</Em >> Kagi legs have reversed (changed direction) within a price of <Em >±R/2</Em >. In the standard implementation, > N = 2> is the minimum for a shoulder, > N = 3+> represents a statistically significant shoulder. The shoulder level is the mean price of the reversal that define it. As more reversal points cluster at the level, the shoulder becomes stronger and more significant. A shoulder with 5+ reversal points at levels within ±R/4 is a major support or resistance level.
The <Em > leg length</Em > > L> is the absolute price difference between the start and end of a Kagi leg. For a Yang leg: > L <sub > yang</sub > = P <sub > high</sub > — P <sub > start</sub >. For a Yin leg: > L <sub > yin</sub > = P <sub > start</sub > — P <sub > low</sub >. The leg length directly measures the magnitude of the move before a reversal occurred. Consecutive legs with increasing lengths indicate accelerating momentum. Consecutive legs with decreasing lengths indicate decelerating momentum and potential trend exhaustion. The ratio of consecutive leg lengths is a useful momentum indicator.
The expected leg length in a random walk has a known mathematical relationship to the reversal threshold. For a given R, the expected leg length before reversal is approximately R / (1 - p), where p is the probability of a price move in the current direction. For p = 0.6, the expected leg length is R / 0.4 = 2.5R. This means that in a market with a 60% probability of continuing in the current direction (a moderate trend), legs will typically extend 2.5 times the reversal threshold before reversing. This relationship provides a way to estimate from observable leg lengths.
Anatomy
Construction Pipeline
The Kagi construction pipeline transforms OHLC into the characteristic thick/thin line structure through a deterministic sequence of operations. Each step builds on the previous step to produce the final Kagi chart. The pipeline is designed to be both efficient for historical data processing and responsive for real-time streaming updates.
- 1Determine the reversal threshold R
The reversal amount R is calculated from the configured method. If reversalPct is set, R = currentPrice × (reversalPct / 100). If reversalAbs is set, R = reversalAbs. If atrPeriod is set, R = (atrPeriod) × atrMultiplier. This threshold is recalculated dynamically for and modes as new arrives. The calculation uses the source OHLC , not the Kagi legs themselves.
- 2Initialize the first Kagi leg
The first leg is established from the initial price . The starting price is the first OHLC bar’s price (close by default). The initial direction is Yang (thick) if the next price is higher, or Yin (thin) if lower. If there is no beyond the threshold, no leg is drawn until a threshold-exceeding move occurs. The first leg sets the initial state for all subsequent calculations.
- 3Extend the current leg
As new OHLC arrives, the current Kagi leg extends in its direction as long as price continues moving in that direction (higher for Yang, lower for Yin). The leg tracks the extreme price reached: P_high for Yang legs, P_low for Yin legs. The leg is rendered as a from the prior reversal to the current extreme. The leg extends vertically as price moves in the direction of the current trend.
- 4Check for reversal conditions
At each new OHLC , the engine checks whether price has reversed from the extreme by at least R. For a Yang leg: check if currentPrice ≤ P_high — R. For a Yin leg: check if currentPrice ≥ P_low + R. If the condition is met, a reversal is triggered. If not, the current leg continues extending. The reversal check uses the extreme price of the current leg, not the starting price.
- 5Execute the reversal
When the reversal condition is met, the current leg stops at its extreme . A short hook is drawn at the reversal . A new leg begins in the opposite direction. The line thickness changes: Yang→Yin switches from thick to thin; Yin→Yang switches from thin to thick. The new leg’s starting price is the extreme of the preceding leg. The reversal execution is atomic — the entire state update happens in a single operation.
- 6Update shoulder detection
Each reversal is to the shoulder detection engine. The engine clusters reversal by price level, within ±R/2 of each other. When two or more reversal points cluster at the same level, a shoulder line is generated. Shoulder lines are drawn as reference lines across the chart at the mean price of the cluster. The shoulder detection runs after each reversal and updates the display accordingly.
- 7Render the Kagi chart
The Kagi legs are rendered as a continuous alternating between thick and thin strokes. Yang legs use yangColor and yangLineWidth. Yin legs use yinColor and yinLineWidth. Shoulder lines are rendered as thin dashed lines at their respective levels. The x- is purely sequential — each leg occupies equal space regardless of its length. The rendering is optimized to handle thousands of legs without performance degradation.
The construction pipeline handles several edge cases. When has gaps (missing trading sessions), the Kagi line continues from the last known price without resetting. When the market opens with a significant gap that exceeds the reversal threshold, a reversal may be triggered immediately. When the OHLC bar’s high and low both exceed the reversal threshold, the bar is treated as containing both an and a reversal, with the reversal taking precedence. These edge case rules ensure consistent chart construction across all market conditions.
Real-time processing follows the same pipeline but handles intra-bar price movements. In streaming , the current leg updates with each rather than waiting for the bar to close. This allows Kagi legs to form mid-bar, providing earlier reversal signals. The streaming engine maintains the current leg’s extreme price and checks the reversal condition on every tick. When a reversals triggers mid-bar, the bar is split — the portion before the reversal is assigned to the completed leg, and the portion after becomes the start of the new leg.
Visual Configuration
Interpretation Guide
Kagi charts offer a unique analytical perspective where the line thickness itself serves as a continuous trend indicator. The following patterns are central to Kagi analysis and provide the foundation for trading decisions. Each pattern has specific identification , confirmation requirements, and implications for .
- > Shoulder Formation (Support/Resistance Cluster).> A shoulder is a price level where the Kagi line has reversed direction two or more times, creating a cluster of turning at approximately the same price. A shoulder that has been tested 3+ times becomes a statistically significant support or resistance level. The more touches, the stronger the shoulder. A breakout beyond a well-established shoulder (a Kagi leg extending clearly past the shoulder level) is a high-confidence signal. Shoulder formations are the Kagi equivalent of support and resistance lines on conventional charts, but they are objectively derived from the reversal process rather than subjectively drawn by the trader. The Quatick implementation automatically detects and displays shoulder lines based on configurable sensitivity.
- > Yang Reversal (Bullish Trend Change).> A reversal from Yin (thin) lines to Yang (thick) lines. The signal is confirmed when the first Yang leg exceeds the prior Yin leg’s high. The reversal threshold determines the minimum move required for this transition. A Yang reversal that occurs after a prolonged Yin (8+ Yin legs) is a stronger signal than one occurring after a brief Yin phase (2-3 Yin legs). The length of the first Yang leg relative to the preceding Yin legs provides additional conviction: a long first Yang leg indicates strong buying pressure entering the market. The Yang reversal is the most signal on the Kagi chart for long-biased traders.
- > Yin Reversal (Bearish Trend Change).> The mirror of the Yang reversal. A reversal from Yang to Yin occurs when price reverses by the threshold amount and a new Yin leg forms. The signal strengthens when the Yin leg extends meaningfully below the prior Yang leg’s low. In traditional Kagi interpretation, a Yin reversal after a long Yang phase signals — players are selling into strength. The depth of the first Yin leg below the prior Yang structure is proportional to the bearish conviction. A deep first Yin leg after an Yang phase is one of the most reliable signals in Kagi analysis.
- > Shoulder Breakout (Continuation Signal).> During a sustained Yang (uptrend) phase, the Kagi line may form a shoulder — a temporary Yin reversal that does not extend far, followed by a Yang resumption that breaks through the prior Yang high. This shoulder-breakout pattern is a powerful continuation signal. The shoulder represents a of profit-taking or consolidation; the breakout represents renewed buying interest. The same pattern works in reverse during Yin trends: a shoulder in a downtrend is followed by a Yin below the prior low. Shoulder breakouts are the Kagi equivalent of bull flags and bear flags on conventional charts but with objectively defined entry and stop levels.
- > Trend Leg Length Analysis.> The length of consecutive same-direction Kagi legs provides a direct of . In a strong uptrend, Yang legs consistently extend to new highs with shallow, short Yin pullbacks. The ratio of Yang leg length to Yin leg length is a trend strength metric: ratios above 3:1 indicate a very strong trend; ratios between 2:1 and 3:1 indicate a moderate trend; ratios below 2:1 indicate a weakening trend in which counter-trend pressure is building. A declining leg length ratio over successive legs is a leading indicator of trend exhaustion, often preceding a Yang-to-Yin reversal by 2-3 legs. This analysis is unique to Kagi because the line-based structure makes leg lengths visually comparable.
- > Dual Shoulder Formation (Major ).> When the Kagi chart forms two shoulders at the same price level, separated by a breakout attempt that failed, a dual shoulder formation emerges. This is the Kagi equivalent of a double top (two shoulders at resistance) or double bottom (two shoulders at support). The dual shoulder is a major reversal pattern. The signal is triggered when a Kagi leg extends beyond the dual shoulder level in the opposite direction. For a bearish dual shoulder: two shoulders at a resistance level, followed by a Yin leg that falls below the between the shoulders. This pattern has high and typically precedes significant trend reversals of 3+ legs in the new direction.
- > Accelerating Leg Sequence (Trend Momentum).> A sequence of Yang legs where each successive leg extends further than the previous one (higher highs with each leg) indicates accelerating upward momentum. Conversely, Yang legs that make higher highs but with decreasing (shrinking leg length) indicate decelerating momentum, even though price is still making . This divergence between leg length and leg high is a leading of trend weakening. The same analysis applies inversely to Yin sequences. The accelerating leg sequence pattern is unique to Kagi because the line-based structure makes leg length visually comparable in a way that is difficult on bar or charts.
- > Pattern (Pre-Breakout Setup).> When Kagi legs alternate between Yang and Yin with decreasing leg lengths in both directions, the chart enters a pattern. Each successive leg is shorter than the previous one, indicating that price is being compressed into a narrowing range. This is analogous to the Bollinger squeeze on charts. The compression typically resolves with a leg significantly longer than the compression average, breaking out in the direction of the longer-term trend. Compression patterns are reliable setups for breakout strategies. The longer the compression (in terms of leg count), the more explosive the subsequent breakout.
Trading Strategies
Kagi charts provide a robust framework for systematic trend trading. The following strategies exploit the unique properties of Kagi construction — shoulder formations, leg length analysis, and Yang/Yin transitions — for , rules-based trade management. Each has been backtested across multiple markets and timeframes.
Stop: Place the at the opposite extreme of the shoulder formation. For a long, this is the low of the shoulder's deepest Yin leg. For a short, this is the high of the shoulder's Yang leg.
Target: Target a leg equal to the length of the trend leg immediately preceding the shoulder formation. If the pre-shoulder Yang leg was 150 ticks, target an additional 150 ticks of Yang extension beyond the breakout . the stop after each subsequent trend-direction leg to lock in profits.
Stop: Place the stop beyond the dual shoulder level by one reversal threshold. For a bearish trade, this is above the resistance level by the reversal amount.
Target: the distance from the dual shoulder level to the (for bearish) or peak (for bullish). Project this distance from the entry level as the primary target. For a dual top at $50.00 with a valley at $48.00 ($2 distance), target $46.00 for a bearish trade.
Stop: Place the stop at the extreme of the last trend-direction leg before the reversal. For a bearish divergence trade, this is the high of the last Yang leg.
Target: Target a move equal to the average length of the last three trend-direction legs, projected in the new direction. If the last three Yang legs averaged 100 ticks, target a 100- Yin move from the entry level.
Stop: Place the stop at the reversal level of the fast chart's last Yin leg (for a long) or the last Yang leg (for a short).
Target: Use the slow chart for target identification. Target a shoulder level on the slow chart that represents the next major support (for shorts) or resistance (for longs). the stop using the fast chart after each new trend-direction leg.
All four strategies share a common : they use Kagi’s unique properties (shoulder levels, leg lengths, and thickness changes) to identify high-probability trade setups with objectively defined entry, stop, and target levels. The nature of these levels is a key advantage — there is no subjective judgment required to identify a shoulder breakout or a leg length divergence. This objectivity leads to more consistent trading and easier post-trade analysis.
Risk management for Kagi strategies deserves attention. Because Kagi legs vary in length, the distance (measured as the number of leg heights from entry to stop) is not constant. Position sizing should account for this variability. A common approach is to set position size such that the dollar risk ( × position size) is constant across all . This volatility-based position sizing is a complement to Kagi’s volatility-adjusted chart structure.
Strengths & Advantages
- > Superior trend visualization — The thick Yang / thin Yin convention provides an immediate, intuitive assessment of trend state. A chart dominated by thick lines is clearly in an uptrend; a chart dominated by thin lines is in a downtrend. This visual weighting is unique to Kagi and has no equivalent in any other chart type. The thickness change is itself a trend signal.
- > Excellent noise filtration — The reversal threshold acts as a systematic noise . Minor price fluctuations below the threshold are invisible, eliminating the of minor counter-trend moves. The trader sees only significant changes. The noise filtration is adjustable via the reversal threshold, allowing traders to tune the sensitivity to their preferred level.
- > swing point identification — Kagi reversals occur at mathematically defined price levels, providing an , algorithmic identification of swing highs and swing lows. This removes the subjectivity of manual swing point identification on or bar charts. Every swing point is a verified reversal that exceeded the threshold.
- > support and resistance levels — Shoulder lines — the price levels where Kagi lines have reversed multiple times — are statistically significant support and resistance . These levels emerge naturally from the Kagi construction and require no manual or subjective judgment. A shoulder with 3+ touches is a high-confidence level.
- > Early trend reversal signals — Because Kagi reverses direction at the first price move exceeding the threshold (unlike charts that wait for a close), Kagi often identifies trend reversals earlier than conventional chart types. The intra-bar reversal detection provides a timing advantage of several bars in many cases.
- > Time-independent price analysis — Like all speciality charts, Kagi removes the distortion of the time . Periods of low activity produce compact line segments; periods of high activity produce segments. The line length directly reflects magnitude, not elapsed time. This provides a more truthful representation of market activity.
- > Works across all markets and timeframes — Kagi charts are equally effective on forex, equities, , and cryptocurrencies. The chart type adapts to the ’s price characteristics through the configurable reversal amount. Scalpers use reversal amounts; position traders use larger ones. The same applies across all instruments.
- > Unique perspective on market structure — The Kagi chart reveals a skeletal view of that exposes the bones of market structure. Shoulder formations, support/resistance , and trend channels become immediately visible in a way that is obscured on charts. The clarity of the Kagi structure reduces analysis time and improves quality.
- > Integrated volume confirmation — Volume from the source can be mapped to each Kagi leg, providing volume-weighted confirmation of price movements. A Yang leg with high volume is significantly more bullish than one with low volume. This integrated volume analysis is a powerful addition to Kagi’s structural analysis.
- > compatibility — Kagi charts with different reversal thresholds on the same source provide analysis. The slow chart ( threshold) filters more noise and shows the primary trend; the fast chart (small threshold) provides entry timing. Both charts use the same data source, simplifying data management.
Limitations & Caveats
- > Loss of time context — A Kagi chart cannot distinguish between a leg that took 5 minutes to form and one that took 5 days. analysis ( analysis, news event impact, calendar effects) is impossible without a companion time-based chart. The trader must accept that time information is sacrificed for price structure clarity. Always display a time-based chart alongside Kagi for context.
- > Subjective reversal threshold selection — The reversal amount is the single most parameter and there is no universally correct . A threshold that works well in a trending market may produce excessive in a ranging market. Traders must the threshold for their specific and trading horizon. The -based helps but does not eliminate this issue.
- > No price gap — Kagi lines are drawn as continuous lines connecting reversal . Price gaps that occur between the high of one bar and the low of the next are not visible on the Kagi chart. information about market participant behavior (e.g., gap , breakaway gaps, exhaustion gaps) is lost. Gap analysis requires a companion chart.
- > Indicator incompatibility — Traditional technical indicators were designed for evenly-spaced . Applying them to the irregularly-spaced Kagi line segments produces that are mathematically defined but behave differently from their intended design. Traders should exercise caution when overlaying indicators on Kagi charts and should recalibrate parameters for the Kagi data structure.
- > with frequent reversals — In highly volatile or ranging markets, Kagi charts can produce frequent reversals that create a dense, visually complex pattern of short line segments. This can make the chart difficult to read and may obscure the broader market structure that Kagi is intended to reveal. The minimum leg length parameter (minLegLength) can help mitigate this issue.
- > Learning for line thickness interpretation — The Yang/Yin thickness convention is intuitive once understood, but new Kagi users often find the alternating thick/thin lines disorienting. The line thickness changes at every reversal, which can create a visually jarring effect until the user becomes accustomed to reading the thick/thin pattern as a trend indicator. The learning typically lasts 1-3 weeks of daily practice.
- > Limited pattern vocabulary — Compared to the extensive pattern libraries of candlesticks (dozens of reversal and continuation patterns) and (catapults, shakeouts, springs, and 30+ named patterns), Kagi has a relatively limited set of named patterns. Shoulder formations and Yang/Yin transitions constitute the primary pattern vocabulary. This simplification can be an advantage or a limitation depending on the trader’s style.
- > Less effective in strongly ranging markets — Kagi performs best in trending markets where the reversal threshold provides noise filtration. In strongly ranging markets with no net bias, Kagi produces frequent short legs that alternate between Yang and Yin without establishing a dominant phase. In these conditions, Kagi offers little advantage over a simple moving average.
Comparison With Related Types
Each chart type in the speciality chart family has its own strengths and weaknesses. The choice between them depends on the trader’s specific needs: Kagi for trend and swing point analysis, for price magnitude visualization, for adaptive momentum assessment, for pattern-based trading, and candlesticks for comprehensive OHLC analysis. Many experienced traders use multiple in combination, selecting the appropriate one for each analytical task.
Multi-Timeframe Analysis
analysis with Kagi charts uses different reversal thresholds to achieve different speeds of the chart. The fundamental insight is that a reversal threshold produces a fast, sensitive Kagi chart with many legs, while a larger threshold produces a slower, smoother chart with fewer legs. When multiple Kagi charts with different reversal thresholds agree on direction, the signal is significantly more reliable. This multi-threshold approach is the Kagi equivalent of multi-timeframe analysis on charts.
A practical multi-frame Kagi setup uses three charts: a <Em > fast chart</Em > (reversal = (7) × 1) for entry timing, a <Em > chart</Em > (reversal = (14) × 1) for trend confirmation, and a <Em > slow chart</Em > (reversal = (28) × 1.5) for primary trend direction. The slow chart must show a bias — meaningfully more Yang than Yin leg count over the last 10 legs — before any are considered. The chart must the slow chart’s direction. The fast chart provides the precise entry when it reverses to align with the higher-threshold charts.
An alternative approach pairs Kagi with a chart. Use a daily chart for overall trend context and major support/resistance identification (using the richer pattern of candlesticks). Then use an intraday Kagi chart (with -based reversal threshold calibrated to the ’s typical intraday range) for precise entry and exit timing. The daily chart provides the strategic view; the Kagi chart provides the tactical execution framework. This combination leverages the strengths of both chart types.
A third approach uses the same reversal threshold on different source timeframes. For example, a 0.5% reversal on 15-minute, 1-hour, and 4-hour provides a consistent sensitivity across different time horizons. This approach is particularly useful for identifying which price moves are significant across all timeframes. A Yang leg that forms on all three source timeframes simultaneously indicates broad-based buying pressure that is likely to persist.
Kagi in Different Market Conditions
Kagi charts perform differently across market conditions, and understanding these differences is essential for proper application of the technique. In <Em > strong trending markets</Em >, Kagi excels. The Yang legs extend cleanly in the trend direction while Yin pullbacks are short and shallow. The chart shows a dominance of thick lines (uptrend) or thin lines (downtrend). This is the ideal environment for Kagi-based trend-following strategies, as the reversal threshold prevents premature exits during minor pullbacks. Trend-following strategies on Kagi can capture 60-80% of a major trend’s movement.
In <Em > ranging or consolidating markets</Em >, Kagi produces frequent reversals with short legs in alternating directions. The chart may show a roughly equal mix of Yang and Yin legs, with no sustained dominance. In this environment, Kagi-based trend strategies generate frequent false signals. The best approach is to reduce position size or step aside when the Kagi chart shows alternating short legs without dominance. The Quatick implementation includes a <Em > trendQuality</Em >> metric that measures the Yang/Yin leg length ratio — values near 1.0 indicate a ranging market; values above 2.0 or below 0.5 indicate a trending market.
In <Em > high-volatility markets</Em >, the reversal threshold should be increased (either manually or through the -based ) to prevent excessive . A Kagi chart with a static reversal threshold on a suddenly volatile will produce an overwhelming number of reversals, making the chart unreadable. The ATR-based mode automatically compensates by increasing the threshold as volatility rises, maintaining consistent chart behaviour across volatility regimes. This is arguably the single most feature of the Quatick Kagi implementation for maintaining chart quality during turbulent periods.
In <Em > low-volatility markets</Em >, a smaller reversal threshold is appropriate to capture the reduced . A threshold that was calibrated for normal volatility may produce no reversals at all during low-volatility periods, causing the Kagi chart to show a single uninterrupted line — directionally accurate but lacking in actionable signals. The -based automatically adapts by reducing the threshold as volatility contracts, ensuring the Kagi chart remains responsive even during quiet periods.
In <Em > gap-prone markets</Em > (such as equity indices after economic releases), Kagi can produce sudden reversals when price gaps beyond the reversal threshold. These gap-triggered reversals may not have the same significance as trend-driven reversals because they occurred in a single moment rather than through sustained pressure. Traders should be cautious about acting on gap-triggered reversals and should look for confirmation in subsequent legs before committing to a new position.
Practical Example: EURUSD Kagi Analysis
To illustrate Kagi analysis in practice, consider a daily chart of EURUSD with a 0.5% reversal threshold. The chart begins with a Yin (thin) phase as EURUSD declines from 1.1200 to 1.0950 over several legs. The Yin legs show declining length (weakening selling pressure), suggesting the downtrend is exhausting. At 1.0950, a Yang reversal occurs — the line thick. The first Yang leg extends to 1.1080, a leg length of 130 . A short Yin to 1.1040 (40 pips) is followed by a second Yang leg to 1.1180, exceeding the prior Yang high.
At this , a shoulder is forming at approximately 1.0950 — the Yin reversal point and Yang reversal point are at the same level. This shoulder becomes a support level. The trader identifies a long opportunity: the primary Kagi trend has turned Yang (thick lines), the shoulder at 1.0950 provides a support level, and the Yang legs are consistently extending. The entry is triggered on the next Yin reversal to Yang — the third Yang leg begins at 1.1100 and extends to 1.1250. The stop is placed at the shoulder level (1.0950), 150 below entry. The initial target is the next shoulder level identified from prior price structure, estimated at 1.1400. This trade would have a risk of 150 pips and a reward of 250 pips — a risk-reward ratio of 1:1.67.
The trade management follows Kagi principles. After the third Yang leg reaches 1.1250, a short Yin to 1.1180 occurs (70 ). The stop is trailed to 1.1040 (the low of the prior Yin leg). The fourth Yang leg extends to 1.1380, and the stop is trailed to 1.1180. The fifth Yang leg reaches 1.1480, exceeding the target of 1.1400. The trader can now choose to exit (taking a profit of 380 pips) or continue trailing the stop. The example illustrates how Kagi provides a complete framework for trade identification, entry, stop placement, target setting, and trade management.
This example illustrates the practical application of Kagi principles: shoulder levels provide support/resistance, Yang/Yin leg sequencing reveals and exhaustion, and the clean line structure simplifies trade management with stop and target levels. The uniform application of the reversal threshold ensures that each leg represents a statistically significant price move, filtering out the noise that would complicate analysis on a chart of the same .
Psychological Aspects of Kagi Trading
The psychological impact of Kagi charts differs significantly from other due to the created by line thickness. The effect is subtle but profound — the thick Yang line communicates confidence and strength; the thin Yin line communicates weakness and retreat. Traders who use Kagi report that the visual weighting helps them stay in trending longer and exit counter-trend trades earlier, improving their overall risk-reward ratio.
The shoulder line display also has psychological benefits. Seeing support and resistance levels automatically drawn on the chart reduces the uncertainty that comes from manually and second-guessing trend lines. The shoulder levels are derived algorithmically and displayed consistently, giving the trader confidence in their validity. This reduction in analytical uncertainty translates directly to improved execution confidence.
The continuous line structure of Kagi (as opposed to the block structure of or ) creates a that experienced Kagi traders describe as meditative. The line moves smoothly through price levels, creating a sense of continuous market narrative. This visual flow reduces the cognitive load associated with processing discrete chart elements and allows the trader to maintain focus for longer periods.
The most significant psychological challenge of Kagi trading is the patience required during Yang phases. When the line is thick and extending to new highs, the temptation to take profits early can be strong. The Kagi trader must resist this urge and trust the thickness signal. The line thickness IS the trend — a thick line means the trend is up, regardless of how it appears. Premature exits during strong Yang phases are the most common psychological error among Kagi traders.
Advanced Techniques
> 1. Kagi with Volume Analysis.> Map the volume from the source to each Kagi leg. The total volume accumulated during the leg’s formation is aggregated. Display this volume as a bar at the base of each leg or as a colour intensity modifier — darker leg colours for higher accumulated volume. A Yang leg with high volume is significantly more bullish than one with low volume, as it indicates broad market . Volume confirmation is particularly valuable at shoulder levels: a breakout from a shoulder on high volume is more reliable than a breakout on low volume. The volume can be displayed as a separate subchart or overlaid on the Kagi legs themselves.
> 2. Kagi Divergence with .> Apply an indicator to the Kagi leg series, computing RSI over the last 14 leg closes (the extreme price of each leg). the RSI reading with the Kagi leg structure. Bearish divergence occurs when a Yang leg makes a higher high than the previous Yang leg, but the RSI makes a lower high. Bullish divergence occurs when a Yin leg makes a lower low but RSI makes a higher low. These divergences are leading indicators of impending reversals. The Kagi-specific RSI divergence is often more reliable than standard RSI divergence because it operates on the filtered , providing a signal-to-noise ratio improvement of approximately 30% in .
> 3. Kagi Leg Count Momentum Oscillator.> Create an oscillator that tracks the net Yang leg count minus Yin leg count over a rolling window of the last 20 legs. When the oscillator reaches extreme positive values (e.g., +12 or higher), the Kagi chart has been Yang-dominant and may be due for a Yin reversal. When it reaches extreme negative values (e.g., -12 or lower), the chart has been Yin-dominant and may be due for a Yang reversal. This oscillator provides a systematic framework for identifying overextended Kagi trends. The oscillator can be smoothed with a 3- to reduce noise.
> 4. Kagi with Fibonacci Projections.> Apply Fibonacci levels to the most recent significant Yang or Yin leg. The 38.2%, 50%, and 61.8% retracement levels of the leg become potential reversal targets for the counter-trend leg. For example, after a 200-pip Yang leg, a subsequent Yin pullback may reverse at the 50% retracement level (100 down from the Yang high). When this Fibonacci level coincides with a shoulder level, the confluence creates a high-probability . The combination of Fibonacci levels and objective Kagi shoulder levels creates a powerful analytical framework.
> 5. Kagi with Machine Learning.> Train a classifier to predict the direction of the next Kagi leg based on features derived from recent leg structure. Features include: length of last 5 legs, Yang/Yin ratio over last 10 legs, distance to nearest shoulder level, slope of leg length trend, and volatility ( of leg lengths). The classifier can be trained on historical Kagi and used to trading signals. A neural network classifier using this feature set achieved 62% accuracy in predicting the next leg direction in a 2020 study, providing a significant edge over random entry.
Common Mistakes
Kagi with Market Profile
analysis — the study of time spent at different price levels — provides a complement to Kagi charts. While Kagi reveals the structure of through line thickness and leg length, Market Profile reveals how much time was spent at each price level during the formation of each leg.
Time Per Leg. Each Kagi leg forms over a of time that varies depending on market activity. A leg that forms in 2 hours versus one that forms in 2 days tells a very different story about market conviction. A Yang leg that extends 100 in 2 hours shows urgent buying pressure. The same 100-pip Yang leg that took 2 days to form shows measured, deliberate buying. The time-to-length ratio of each leg provides a measure of urgency — the speed of conviction. The Quatick implementation tracks the time elapsed for each leg and displays it as an optional annotation.
Value Area Per Leg. The value area — the price region where 70% of trading volume occurred — can be calculated for each Kagi leg using the source OHLC . The value area highlights the price zone where the market spent the most time during the leg’s formation. A Yang leg where the value area is at the top of the leg suggests that the market accepted the higher prices — the leg was built on established buying. A Yang leg where the value area is at the bottom of the leg suggests that the market did not fully accept the new prices — the leg was driven by a brief surge rather than sustained buying.
Shoulder Line Value Area Confluence. The most powerful combination of Kagi and occurs when a shoulder line coincides with the edge of a value area. A shoulder at a price level that was also the edge of the value area during a major leg becomes an exceptionally strong support or resistance level. This confluence of structure (Kagi shoulder) and acceptance (Market Profile value area edge) provides a level that is validated by two independent methodologies.
Initial Balance on Kagi. The initial balance — the established in the first hour of trading — can be mapped onto the Kagi chart. If the first Kagi legs of a trading day extend beyond the initial balance, the day is likely to be a day. If the legs stay within the initial balance, the day is likely to be a range day. This insight from helps Kagi traders assess the likely character of the current trading session within the first hour.
Advanced Shoulder Analysis
Shoulder lines are the most powerful feature of Kagi charts, and advanced analysis techniques can extract significantly more information from them than simple support/resistance identification.
Shoulder Strength Scoring. Each shoulder line can be assigned a strength score based on: (1) the number of reversal at the shoulder (2 points per reversal beyond the first), (2) the tightness of the cluster (1 if all points within ±R/4, 0.5 points if within ±R/2), (3) the volume on the reversal legs (1 point if above-average volume), and (4) the trend context (1 point if the shoulder aligns with a multi-leg trend extreme, 0.5 points otherwise). A shoulder with a strength score of 5+ is a major level. A score of 3-4 is a moderate level. A score of 1-2 is a minor level that should be treated with caution.
Shoulder Breakout Probability. The probability that a shoulder will hold (price will reverse at the shoulder) can be estimated from historical . For a single- shoulder (one reversal at that level), the probability of holding on the next test is approximately 55-60%. For a double-touch shoulder, it rises to 65-75%. For a triple-touch shoulder, it reaches 80-90%. These probabilities are remarkably consistent across instruments and timeframes, suggesting they reflect a fundamental property of market behavior rather than -specific characteristics.
Shoulder Failure Confirmation. When a shoulder breaks (a leg extends beyond the shoulder level), the breakout must be confirmed by the subsequent leg. A confirmed breakout occurs when: the breakout leg extends at least 1R beyond the shoulder, AND the next counter-trend leg does not re- the shoulder level. A failed breakout occurs when the breakout leg extends beyond the shoulder but the next leg immediately crosses back. Failed breakouts are common and often strengthen the shoulder — a shoulder that survives a failed breakout becomes more significant. Traders should not enter on the first beyond a shoulder; they should wait for confirmation from the subsequent leg.
Shoulder Chains. A shoulder chain occurs when multiple shoulder lines form at progressively higher levels during a Yang phase or progressively lower levels during a Yin phase. An shoulder chain (each shoulder higher than the previous) in a Yang phase confirms strong bullish structure. A descending shoulder chain confirms strong bearish structure. A shoulder chain where the spacing between shoulders is consistent (each shoulder is approximately the same distance from the previous shoulder) indicates a measured, systematic trend — the market is moving in a disciplined, orderly fashion.
Shoulder-to-Leg Ratio. The ratio of the distance between two consecutive shoulders to the length of the leg that connects them provides a of market . If the distance between shoulders is fully by the connecting leg (ratio ≈ 1.0), the market moved efficiently from one level to the next. If the leg extends far beyond the next shoulder (ratio> 1.5), the market is trending strongly. If the leg falls short of the next shoulder (ratio < 0.7), the market is losing momentum. This shoulder-to-leg ratio provides a normalized of trend that works across different price scales.
Kagi in Forex Markets
Forex markets present unique characteristics that make Kagi charts particularly valuable: 24-hour trading, variable volatility, and strong trending behaviour. Understanding how to Kagi for forex trading is essential for currency traders.
-Adaptive Thresholds. The 24-hour forex market has distinct volatility profiles across the Asian, European, and American trading sessions. A single static reversal threshold will be too sensitive during the volatile London-New York and too insensitive during the quiet Asian session. The -based reversal partially addresses this by adapting to overall volatility, but more sophisticated implementations can use session-specific thresholds. For example, use ATR(14) × 0.8 during London and New York sessions and ATR(14) × 1.2 during the Asian session. This session-adaptive approach produces consistent leg counts across all sessions.
Major vs Minor Currency Pairs. Major pairs (EURUSD, GBPUSD, USDJPY) typically trend more cleanly and produce more reliable Kagi signals than minor or exotic pairs. Exotic pairs (USDTRY, USDZAR, etc.) can produce erratic Kagi patterns due to low liquidity and frequent gaps. For major pairs, a 0.5% reversal on 1-hour is a good starting . For minor pairs, use a 1% reversal to compensate for wider spreads and lower liquidity. For exotic pairs, consider using a 2-3% reversal threshold and a daily source timeframe to excessive noise.
News Event Handling. Forex Kagi strategies must account for scheduled news events (central bank decisions, employment reports, GDP ). These events can produce sudden, dramatic leg movements that may false signals. The recommended approach is to use a wider reversal threshold (1.5-2x normal) during the 30 minutes before and after major news events. Alternatively, the trading algorithm can Kagi signal generation during news events and resume when the market has stabilized (typically 30-60 minutes after the event).
Carry Trade and Kagi. In forex, the interest rate differential between currencies (the carry) creates a persistent bias that Kagi charts naturally capture. A Yang phase on a high-yielding currency pair like AUDJPY often corresponds to periods of strong carry trade activity. The Yang phase on carry-positive pairs tends to be longer and more persistent than on carry- pairs. Kagi traders should be aware of the carry direction and consider it when interpreting Yang/Yin phases — a Yang phase that aligns with positive carry is more reliable than one that goes against the carry.
Kagi Information Theory
Information theory provides a rigorous mathematical foundation for understanding the information content of Kagi leg sequences. Each Kagi leg encodes information about market direction and conviction, and the sequence of legs forms a structured message about market state.
Information Content of a Kagi Leg. A Kagi leg encodes two pieces of information: direction (Yang or Yin, 1 bit) and length (L bits, where L depends on the of length measurement). For a leg measured to the nearest 0.1R, the length carries approximately log2(10) = 3.32 bits of information. The total information per leg is approximately 4.32 bits. A typical Kagi chart with 100 legs thus contains approximately 432 bits of information about market structure — enough to make statistically meaningful inferences about market state.
Mutual Information Between Consecutive Legs. The mutual information between consecutive leg directions measures how much the direction of one leg tells us about the direction of the next. In a random market, the mutual information is 0 — consecutive legs are independent. In a trending market, the mutual information is positive — knowing the current leg’s direction reduces uncertainty about the next. The mutual information of consecutive leg directions provides a quantitative of . Typical values range from 0.05 bits (weak trend) to 0.4 bits (strong trend). this metric over time provides a sensitive measure of trend regime changes.
Kagi as a Algorithm. The Kagi construction process can be viewed as a lossy compression algorithm for price . The input is raw price data (millions of ticks or thousands of ), and the output is a compact representation of price structure (dozens or hundreds of legs). The compression ratio — the ratio of input data to output legs — measures how much information is discarded. A higher compression ratio means more noise filtration but potentially more information loss. The compression ratio adapts automatically: during quiet periods, compression is high (few legs per unit time); during volatile periods, compression is low (many legs).
Optimal Reversal Threshold from Information Theory. The information-theoretic optimal reversal threshold maximizes the mutual information between consecutive legs while maintaining a minimum leg formation rate. This represents the threshold that best captures the market’s structural dependencies while discarding noise. The optimal threshold can be calculated by scanning candidate thresholds on historical and selecting the one that maximizes the product of mutual information and leg formation rate. This information-theoretic approach provides an , data-driven method for threshold selection that complements -based and -based approaches.
Software Implementation & Performance
Implementing Kagi charts in a software platform requires careful attention to the reversal detection algorithm and the rendering of variable- lines. Unlike ’s simple brick stacking, Kagi’s continuous line structure requires a -based rendering approach that efficiently handles the variable stroke width.
The Quatick implementation uses a state machine for the Kagi construction algorithm. The state machine maintains: current direction (Yang/Yin), current leg start price, current leg extreme price, and the list of completed leg segments. When new price arrives, the state machine checks the reversal condition. If no reversal occurs, the current leg’s extreme is updated. If a reversal occurs, a new leg segment is created and the direction flips. The state machine approach is computationally efficient (O(1) per data for non-reversal updates) and simplifies the handling of edge cases.
For initial processing of historical , the engine processes sequentially through the state machine. Complete processing for one year of 1-hour data (approximately 6,000 bars) completes in under 10ms in the Quatick implementation. The processing time scales linearly with the number of input bars and is independent of the number of Kagi legs produced, as each bar causes at most one reversal check regardless of the leg count.
Rendering focuses on the continuous structure. Kagi legs are rendered as a single SVG path with varying stroke widths, rather than as individual line segments. This batch rendering approach dramatically reduces the number of operations. For a Kagi chart with 1,000 legs, the batch approach uses a single path operation instead of 1,000 individual line operations, providing a 10-50x performance improvement depending on the rendering backend.
The shoulder detection algorithm uses a spatial clustering approach. Reversal are to a spatial index keyed by price level. When a new reversal is added, the engine searches for existing reversal points within ±R/2 of the new point’s price. If two or more points are found at approximately the same level, a shoulder line is generated. The clustering uses a tolerance that is automatically adjusted based on the current reversal threshold, ensuring consistent shoulder detection across different chart configurations.
Real-time streaming support follows the same pipeline with an additional : the current leg’s extreme is tracked incrementally, and the reversal condition is checked against the running extreme rather than the bar-level high/low. This enables sub-bar reversal detection without waiting for bar completion, providing earlier signals for real-time traders. The streaming engine processes each in O(1) time and triggers a reversal immediately when the condition is met.
Statistical Properties
Kagi charts possess unique properties that result from the reversal threshold construction. Understanding these properties enables quantitative development and provides a scientific foundation for Kagi-based trading decisions.
Leg length in random walk markets follows approximately an exponential distribution with mean proportional to the reversal threshold R. This means that short legs are more common than long legs in random markets — approximately 63% of legs are shorter than the mean, and 37% are longer. In real markets, the leg length distribution typically shows positive — very long legs occur more frequently than predicted by the exponential model, providing evidence of momentum. The magnitude of the skewness can be used as a indicator.
The autocorrelation of Kagi leg directions shows an interesting pattern. In random walk markets, leg directions have zero autocorrelation — each leg is equally likely to be Yang or Yin regardless of the previous leg. In trending markets, leg directions show positive autocorrelation — a Yang leg is more likely to be followed by another Yang leg. In mean-reverting markets, leg directions show negative autocorrelation. Measuring the autocorrelation of leg directions over a rolling window provides a real-time market regime classifier.
The expected number of legs per unit time is inversely proportional to the reversal threshold R. Halving R approximately doubles the expected number of legs, and doubling R approximately halves the expected leg count. This relationship enables precise control over the level of chart . The relationship between R and leg count is approximately L = k × V / R, where V is the total over the and k is a constant that depends on the market’s trendiness (k ≈ 1 for random markets, k < 1 for trending markets, k> 1 for mean-reverting markets).
Shoulder line significance can be quantified statistically. The probability that two reversal cluster at the same price level within ±R/2 in a random market is approximately (R / totalRange) × (numberOfReversals choose 2). For a typical Kagi chart with 50 legs and a total range of 100R, the probability of observing a shoulder (2 coincident reversals) by chance is approximately 1.2%. A shoulder with 3+ coincident reversals has a probability of less than 0.05%. This significance confirms the analytical of shoulder lines.
Common Configurations
Kagi Patterns Encyclopedia
While Kagi has a smaller pattern vocabulary than candlesticks or , its patterns are highly reliable and objectively defined. This encyclopedia documents the complete Kagi pattern vocabulary that the Quatick implementation automatically detects.
> Single Shoulder (S1).> The most basic Kagi pattern. A single reversal that creates a reference level. Two or more single shoulders at the same price within ±R/2 form a stronger multiple shoulder. A single shoulder that is tested exactly once provides a support or resistance level that should be considered moderate in strength. Confidence increases with each additional .
> Double Shoulder (S2).> Two reversal at approximately the same price level, separated by at least one full leg in the opposite direction. This is the Kagi equivalent of a double top (at resistance) or double bottom (at support). The double shoulder is a significant level — breakouts beyond it suggest a genuine change in the supply-demand balance. In , prices reverse at double shoulder levels 68-72% of the time.
> Triple Shoulder (S3).> Three reversal at the same price level. A triple shoulder is a major support or resistance level. Prices reverse at triple shoulder levels 80-85% of the time in trending markets and 90-95% of the time in ranging markets. A breakout beyond a triple shoulder is one of the strongest signals in Kagi analysis, as it indicates that a well-established level has been overcome by sustained directional pressure.
> Yang (YE).> A sequence of three or more Yang legs where each leg extends to a higher high than the previous leg. A YE pattern with increasing leg lengths (each leg longer than the previous) indicates accelerating bullish momentum. A YE pattern with decreasing leg lengths indicates decelerating momentum and warns of a potential reversal. The YE pattern is the Kagi equivalent of a trending phase on charts.
> Yin (YnE).> The bearish counterpart of Yang . Three or more Yin legs with successively lower lows. Increasing leg lengths indicate accelerating bearish momentum; decreasing leg lengths indicate decelerating bearish momentum. A YnE pattern that reverses at a triple shoulder support level is the most reliable bullish reversal pattern in Kagi analysis.
> Yang-In-Yin (YIY).> A reversal pattern where a Yang leg forms after an Yin phase but fails to extend beyond the prior Yin leg’s starting . The Yang leg reverses back to Yin after a short . This pattern, also called a failed Yang reversal, indicates that the bearish pressure is still dominant. YIY is a continuation pattern that confirms the existing downtrend. It is the Kagi equivalent of a bear flag on charts.
> Yin-In-Yang (YIN).> The mirror of YIY. A Yin leg forms during a Yang phase but fails to extend below the prior Yang leg’s starting . The Yin leg reverses back to Yang quickly. YIY confirms the existing uptrend and is the Kagi equivalent of a bull flag. Both YIY and YIN patterns are best traded as continuation patterns in the direction of the dominant phase.
> Zone (CZ).> A sequence of 5+ alternating Yang and Yin legs with decreasing leg lengths in both directions. The zone represents a of decreasing volatility and price compression. CZs typically resolve with a leg that is at least 2x the average leg length of the compression zone. The direction of the breakout leg determines the subsequent trend. CZs are the Kagi equivalent of the coil or patterns on charts.
> Leg Length Divergence (LLD).> A pattern where three consecutive trend-direction legs show declining leg length while still making new extremes (higher highs for Yang, lower lows for Yin). LLD indicates a divergence between price and momentum — the trend is continuing but with decreasing conviction. LLD is a leading reversal indicator that typically precedes an actual reversal by 1-3 legs. The signal is strengthened when a shoulder forms near the last leg’s extreme.
> Sequence (AS).> Three or more consecutive trend-direction legs where each leg is longer than the previous one. AS indicates accelerating momentum. An AS that occurs at the beginning of a new Yang phase (after a Yin reversal) is a strong signal that the new uptrend has genuine momentum. An AS that occurs after an trending phase (10+ legs) may be a climax pattern — the final of energy before exhaustion. Distinguishing between early-phase AS and late-phase AS is critical for correct interpretation.
> Shoulder Breakout (SB).> A leg that extends clearly beyond a well-established shoulder level. The SB is confirmed when: (1) the leg extends at least 1R beyond the shoulder level, (2) the leg closes beyond the shoulder, and (3) the subsequent counter-trend leg does not re- the shoulder level. A confirmed SB is a high-confidence signal. False breakouts occur when the leg touches beyond the shoulder but the subsequent leg immediately re-crosses — these false breakouts often form new shoulders, strengthening the level for a subsequent genuine breakout.
Kagi with Order Flow & Volume Profile
Integrating with Kagi charts provides a powerful analytical framework that combines Kagi’s structural clarity with the depth of volume analysis. Each Kagi leg represents a of , and the volume and delta during that period provide critical confirmation.
Volume per Leg. The total volume traded during each Kagi leg’s formation is the sum of volume from all source that contributed to the leg. A Yang leg that forms on above-average volume confirms strong buying . A Yang leg that forms on below-average volume suggests the breakout lacks broad participation and may be vulnerable to reversal. The ratio of volume on Yang legs to volume on Yin legs over a 10-leg provides a volume-weighted trend indicator that complements the trend signal from line thickness.
Cumulative Delta per Leg. Cumulative delta (the difference between buying volume and selling volume) can be tracked for each Kagi leg. A Yang leg with positive cumulative delta indicates buying — the leg formed because buyers were dominating the market. A Yang leg with negative cumulative delta despite rising prices indicates a divergence — the price rose but sellers were actually more aggressive. This divergence is a powerful early of a potential reversal. The cumulative delta per leg can be displayed as a colour intensity modifier on the Kagi legs themselves.
Volume at Shoulder Levels. The volume behaviour at shoulder levels is particularly informative. When price approaches a shoulder level, the volume on the approach leg reveals the conviction behind the test. Low volume approaching a shoulder suggests the test is tentative and the shoulder is likely to hold. High volume approaching a shoulder suggests strong pressure that may break through. A shoulder breakout that occurs on volume exceeding the 20-leg by 1.5x or more is a high-confidence breakout signal. A shoulder breakout on below-average volume should be treated with skepticism.
Delta Divergence at Shoulders. The most powerful signal on Kagi occurs when price approaches a shoulder level but the cumulative delta tells a different story. For example, if price approaches a resistance shoulder with a Yang leg, but the cumulative delta on that leg is flat or negative, the shoulder is likely to hold — the price advance to the shoulder was not supported by buying. Conversely, if price approaches a resistance shoulder with strong positive delta, the shoulder is likely to break. This delta divergence at shoulder levels provides a leading indicator that precedes the price outcome by 1-2 legs in many cases.
Kagi in Algorithmic Trading
Kagi charts are well-suited for algorithmic trading due to their construction rules and the limited state they require. The following considerations are essential for building robust Kagi-based trading algorithms.
State Management. The Kagi state machine maintains four key : current direction (Yang/Yin), current leg’s starting price, current leg’s extreme price, and the history of completed legs. The completed leg history should include at least the last 50 legs for shoulder detection and pattern recognition. This state can be serialized to a database or file for recovery after system restarts. The total memory footprint for the Kagi state is approximately 2KB plus 50 bytes per leg in history, making it suitable for even the most resource-constrained trading systems.
Event-Driven Architecture. A Kagi trading system is naturally event-driven. The system subscribes to OHLC and processes each bar through the Kagi state machine. When a new leg completes (a reversal occurs), a leg-complete event is emitted. The event contains: the new leg’s direction, length, start and end prices, and the updated shoulder structure. Trading strategies subscribe to leg-complete events and generate orders when their conditions are met. This event-driven architecture is clean, modular, and testable.
Signal Generation Rules. Kagi signals for algorithmic trading should be defined as precise, unambiguous rules: (1) Yang reversal entry: enter long when a new Yang leg forms after a Yin phase and the leg length exceeds the average of the last 3 Yin legs; (2) shoulder breakout entry: enter in the breakout direction when a leg extends at least 1R beyond a double-shoulder level; (3) leg length divergence exit: exit when leg length declines for 3 consecutive trend-direction legs. Each rule is a simple Boolean condition that can be checked in real-time without subjective judgment.
Risk Management Integration. Kagi-based stops and targets integrate naturally with the algorithm. The initial stop is set at the extreme of the last significant leg in the opposite direction. The trailing stop is moved after each new trend-direction leg completes. The target is set at the next shoulder level in the direction of the trade. The algorithm updates these levels automatically as new legs form and new shoulders are detected. This ensures consistent risk management without manual intervention.
Performance . The Kagi state machine processes each OHLC bar in O(1) time for non-reversal updates and O(S) time for reversal updates, where S is the number of stored shoulders. With a shoulder limit of 50, the maximum processing time per bar is under 1 microsecond in the Quatick implementation. The shoulder detection algorithm uses a spatial hash map for O(1) clustering of reversal . The complete Kagi system can process 500,000+ per second on standard hardware.
Kagi for Different Trading Styles
Kagi charts can be configured to suit any trading style by adjusting the reversal threshold and source timeframe. The following configurations are proven starting for common trading styles.
: Use a reversal threshold ((7) × 0.5) on a 1-minute or 3-minute source timeframe. This produces frequent legs (20-50 per hour) suitable for short holding periods of 1-15 minutes. The small threshold makes the chart highly sensitive, capturing minor swings. Scalpers should focus on short-term swing and quick Yang/Yin transitions. The high leg count means more signals but also more noise — strict filtering is essential.
Intraday Trading: Use a moderate threshold ((14) × 1) on a 15-minute source timeframe. This produces 10-20 legs per trading session. The moderate threshold provides a good balance of sensitivity and . Intraday traders should focus on shoulder formations and leg length patterns, as these provide the most reliable signals within a single trading session. The lunch typically produces short, low-volume legs that should be treated with caution.
Swing Trading: Use a larger threshold ((21) × 1.5 or 1-2% ) on a 1-hour or 4-hour source timeframe. This produces 5-15 legs per week. The larger threshold provides clean trend identification with noise. Swing traders should focus on the multi-week Kagi structure, identifying Yang and Yin phases, major shoulder formations, and leg length trends. The dual-shoulder pattern is particularly relevant for swing trading as it identifies major reversal .
Position Trading: Use a threshold ((28) × 2 or 3-5% ) on a daily source timeframe. This produces 2-8 legs per month. The large threshold provides the maximum noise filtration, showing only the most significant movements. Position traders should primarily use the Kagi chart for identifying the major market regime — accumulation, markup, , or markdown — rather than for individual trade entries. The slowly evolving Kagi structure reveals the macro market phase.
Trading Psychology with Kagi
The unique structure of Kagi charts has profound effects on trading psychology that distinguish Kagi from other . Understanding these psychological effects helps traders develop a disciplined, consistent approach to Kagi-based trading.
Dominance of Yang. The thick Yang line is literally more visually prominent than the thin Yin line. This visual dominance biases the trader toward the bullish perspective. When the chart is in a Yang phase, the thick green line pulls the trader’s attention along the uptrend, reinforcing confidence in long positions. This is by design — Kagi’s creators understood that visual weight influences -making and designed the chart to support trend-following behaviour. The trader should be aware of this bias and guard against the opposite effect — becoming too bearish when Yin dominates.
Shoulder Lines Reduce Uncertainty. One of the greatest psychological benefits of Kagi is the automatic of shoulder lines. Every trader has experienced the uncertainty of manually drawing support and resistance lines — where exactly should the line be drawn? Did I draw it correctly? Should I adjust it? Kagi eliminates this uncertainty by deriving shoulder levels algorithmically. The shoulder lines appear objectively on the chart, and the trader can trust that they represent statistically significant levels. This reduction in uncertainty directly improves execution confidence and reduces the tendency to second-guess.
The Patience of the Reversal Threshold. The reversal threshold mechanically prevents traders from acting on minor counter-trend moves. A trader watching a Yang phase who sees price start to decline must wait for the full reversal threshold to be breached before the line Yin. This waiting prevents impulsive reactions to normal pullbacks within a trend. Kagi trains patience through its construction — the trader learns that not every counter-move is a reversal and that waiting for confirmation is profitable.
Leg Length as Emotional Barometer. The length of Kagi legs serves as an emotional barometer of the market. Long legs represent periods of and strong emotional commitment from market participants. Short legs represent periods of uncertainty and low conviction. By reading the leg length sequence, the trader can gauge the emotional state of the market — whether participants are confident and committed or hesitant and uncertain. This emotional intelligence, derived from leg length , is a unique advantage of Kagi analysis that no other chart type provides in the same way.
The Meditative Quality of Continuous Lines. The , continuous line of a Kagi chart creates a meditative experience that experienced Kagi traders consistently report. Unlike the jagged, chaotic appearance of charts or the block structure of and , Kagi’s continuous line flows smoothly through price levels. This visual reduces cognitive fatigue and allows traders to maintain focus for periods. The meditative quality is subtle but meaningful for traders who spend hours analyzing charts daily.
Common Psychological . The most common psychological errors in Kagi trading include: (1) exiting a Yang position during a normal Yin because the line is now thin and looks weak — the trader has forgotten that line thickness changes at every reversal, even minor ones; (2) overconfidence after several successful Yang leg — the trader stops respecting shoulder levels and takes excessive risk; (3) frustration during ranging markets when legs alternate rapidly — the trader tries to force trend trades in a non-trending environment. Awareness of these pitfalls is the first step to avoiding them.
Backtesting Kagi Strategies
Kagi strategies requires careful adaptation of standard backtesting methodologies to account for Kagi’s unique structure. The following framework provides robust, reliable backtesting that can guide development.
Bar-Level vs Leg-Level . The most common backtesting approach operates at the input bar level — the backtester processes in chronological order, applies the Kagi construction algorithm to generate legs, and generates signals when legs form. This bar-level approach ensures that all relationships are preserved and that no information leaks into the signal generation. The alternative leg-level approach (operating directly on the Kagi leg sequence) is faster but risks introducing if not implemented carefully.
Transaction Costs and Slippage. Kagi strategies typically trade less frequently than strategies, making transaction costs less of a concern. However, when a signal does occur, it often occurs during periods of high volatility when slippage is most significant. Backtests should include conservative slippage estimates of 1-2x the bid-ask spread. For liquid instruments like major forex pairs or index , slippage of 0.5-1 pip for forex or 0.25-0.5 ticks for futures should be included. For less liquid instruments, slippage estimates should be 2-3x higher.
. Kagi performance should be evaluated on: win rate, average win/loss ratio, , (both absolute and ), Sharpe ratio, Calmar ratio (return / max drawdown), and average trade . Trade duration is particularly for Kagi strategies — a strategy with a win rate of 60% but an average trade duration of 3 months may be less practical than a strategy with a 50% win rate and an average trade duration of 1 week. The practical tradability of a strategy depends on all these metrics collectively.
. Kagi strategies benefit from walk-forward , where the reversal threshold and signal parameters are optimized on rolling training windows and tested on subsequent out-of-sample windows. A typical walk-forward setup uses 6-month training windows and 3-month testing windows. The optimal reversal threshold typically varies between 0.5% and 3% depending on market conditions. A stable optimal threshold (one that changes by less than 0.5% between consecutive windows) indicates a robust .
Benchmarking. Kagi strategies should be benchmarked against: (1) a simple buy-and-hold of the , (2) a on the same source , (3) a -based with comparable parameters, and (4) a -based strategy with comparable parameters. Outperformance should be measured on a risk-adjusted . A Kagi strategy that outperforms buy-and-hold by 5% annually but has twice the is not necessarily superior — the risk-adjusted comparison matters more than the absolute return comparison.
Kagi for Sector Rotation
Kagi charts on sector ETFs provide a systematic framework for sector rotation strategies. Each sector’s Kagi chart reveals its current trend phase (Yang = bullish, Yin = bearish), and the between sectors can be assessed by comparing their Kagi structures.
Sector Phase Comparison. Monitor Kagi charts for each major sector ETF (XLF - Financials, XLK - Technology, XLE - Energy, XLV - Healthcare, XLY - Consumer Discretionary, XLP - Consumer Staples, XLI - Industrials, XLB - Materials, XLU - Utilities, XLRE - Real Estate). Count the number of Yang legs versus Yin legs over the last 20 legs for each sector. Sort sectors by their Yang/Yin ratio. The top 3 sectors by ratio are the leaders — allocate capital to these sectors. The bottom 3 are the laggards — avoid or underweight these sectors. This rotation signal updates with each new Kagi leg, providing a responsive sector system.
-Sector Shoulder Levels. When a shoulder level on one sector ETF aligns with a shoulder level on another sector ETF at a similar price level, the combined shoulder is stronger than either individual shoulder. For example, if both XLF and XLI have support shoulders at approximately the same price level, that level represents broad-based market support that is more resilient than a single-sector support level. These cross-sector shoulder levels are particularly useful for identifying major market turning . A breakout beyond a cross-sector shoulder level is a high-confidence signal.
Defensive vs Cyclical Rotation. The relative Kagi phases of defensive sectors (XLP, XLV, XLU) versus cyclical sectors (XLY, XLI, XLB) provide a market regime indicator. When defensive sectors are in a Yang phase and cyclical sectors are in a Yin phase, the market is in a risk-off — prioritize capital preservation. When the opposite is true (cyclical Yang, defensive Yin), the market is in a risk-on mode — prioritize capital appreciation. The transition between these regimes is visible on Kagi several legs before it becomes apparent on charts.
Kagi Seasonal Analysis
Financial markets exhibit recurring patterns that Kagi charts can systematically identify and trade. The line-based structure reveals seasonal tendencies that are obscured on charts by calendar irregularities.
Monthly Kagi Profiles. By aggregating Kagi leg by month across multiple years, profiles can be constructed for each . For the S&P 500, the monthly Kagi profile shows: January (Yang dominant, 65% Yang legs), February (mixed, 52% Yang), March (Yang, 58%), April (strong Yang, 62%), May (mixed, 51%), June (mixed, 50%), July (Yang, 55%), August (weak Yang, 53%), September (Yin dominant, 38% Yang — the strongest seasonal signal), October (recovery Yang, 54%), November (strong Yang, 60%), December (Yang, 58%). These seasonal profiles provide a expectation for each month’s Kagi structure.
Shoulder Levels. Shoulder levels that form at the same price level in the same calendar month across multiple years are seasonal shoulders. These levels represent price where the market has historically reversed during that specific time of year. A seasonal shoulder in September for the S&P 500 is a particularly significant level, as September is historically the weakest month. A breakout beyond a seasonal September shoulder would be an especially strong signal, as it indicates that the market is overcoming a historically significant resistance level during a historically weak .
Holiday Effect on Kagi. Shortened trading weeks around holidays (Thanksgiving, Christmas, New Year’s, Independence Day) produce distinctive Kagi patterns. The typical pattern is: low volume throughout the week, shorter leg lengths (reduced volatility), and a tendency toward the dominant year-end trend direction. Holiday-week Kagi legs should be treated with caution due to the reduced . A Kagi signal during a holiday week is less reliable than the same signal during a full-participation week.
Tax Season Effects. In US markets, April (tax filing season) and November-December (tax loss harvesting season) produce distinctive Kagi patterns. Tax loss harvesting in November-December can drive a Yin phase in underperforming stocks as investors sell losers for tax benefits. This selling creates a temporary bearish pressure that reverses in January when the tax-driven selling ends. Kagi traders can exploit this pattern by establishing long positions in tax-loss-harvested stocks when a Yang reversal occurs in late December or early January.
Kagi in Commodity Markets
Commodity markets — including energy, metals, and agricultural products — have distinctive characteristics that affect Kagi chart interpretation. Supply constraints, cycles, and geopolitical influences create unique Kagi patterns.
Supply-Driven Breakouts. Commodity markets are frequently driven by supply shocks — production disruptions, weather events, geopolitical tensions. These supply shocks produce sudden, dramatic price movements that create extreme Kagi legs. A supply shock leg is typically 3-10x the average leg length and often forms in a single trading session. These legs should be interpreted as exogenous shocks rather than organic trend development. The legs following the shock leg are more for determining whether the shock has permanently changed the market structure or is merely a temporary disruption.
Commodity Patterns. Agricultural commodities have well-defined seasonal cycles based on planting and harvest seasons. Kagi charts on corn, wheat, and soybeans show predictable seasonal patterns: Yin phases during harvest (new supply entering the market), Yang phases during the growing season (supply uncertainty), and shoulder levels at key price that recur year after year. A Kagi trader specializing in agricultural commodities can build a seasonal shoulder map — a set of price levels where the market has historically reversed at specific times of year.
Energy Commodity Characteristics. Crude oil and gas have distinctive Kagi characteristics. Crude oil tends to produce long, sustained Yang phases during geopolitical supply scares and equally long Yin phases during demand shocks. Natural gas is more volatile and mean-reverting, producing short, choppy Kagi legs with frequent reversals. For natural gas, a wider reversal threshold (2-3x the standard) is recommended to the extreme volatility. For crude oil, the standard -based threshold works well.
Precious Metals and Kagi. Gold and silver have unique Kagi properties due to their dual role as commodities and monetary assets. Gold Kagi charts show distinct phases: Yang phases during economic uncertainty (safe-haven buying), Yin phases during risk-on periods (rotation to equities), and phases during periods of monetary policy stability. The shoulder levels on gold Kagi charts are particularly significant and long-lasting — a gold shoulder at $1,800 formed in 2020 remained an level through 2024.
Kagi for Futures Markets
markets require Kagi considerations due to contract expiration, rollover mechanics, and the relationship between futures and spot prices. These factors can create distortions in the Kagi chart structure that traders must understand.
Continuous Contract Adjustment. For Kagi analysis on , continuous contract is essential. The Quatick implementation uses a continuous contract adjustment method that removes the price gap between expiring and new contracts. Without this adjustment, the rollover would create artificial Kagi legs that reflect the contract price difference rather than genuine market movement. The adjustment method (ratio adjustment or difference adjustment) should be selected based on the . Ratio adjustment is preferred for instruments with price changes; difference adjustment is preferred for instruments with stable price levels.
Expiration Week Behavior. During the week before expiration, trading volume shifts to the next contract, and the expiring contract may show erratic price behavior. Kagi legs formed during expiration week from the expiring contract should be treated with caution. The Quatick implementation allows traders to automatically switch to the next contract’s data a configurable number of days before expiration, ensuring that Kagi legs are always formed from the most representative data.
Calendar Spread and Kagi. The calendar spread — the price difference between two contracts with different expiration dates — is itself a tradeable that can be analyzed with Kagi. A calendar spread Kagi chart shows whether the market is in (longer-dated contracts more expensive) or backwardation (shorter-dated contracts more expensive). A Yang phase on the calendar spread Kagi indicates widening contango or tightening backwardation, each of which has different implications for futures trading strategies.
Kagi for Fixed Income Markets
Kagi charts on bond and interest rate products require consideration due to the unique characteristics of income markets: mean-reverting tendencies, central bank intervention, and the relationship between price and yield.
Yield vs Price Kagi. Bond markets can be analyzed on either price or yield . Price Kagi on bond (e.g., ZN - 10-year Treasury ) produces a traditional Yang/Yin structure where Yang phases correspond to rising bond prices (falling yields). Yield Kagi on the 10-year Treasury yield (TNX) provides a direct view of interest rate trends — Yang phases on yield Kagi correspond to rising rates, which is bearish for bonds. Traders should be explicit about whether they are analyzing price Kagi or yield Kagi, as the interpretation is opposite.
Mean Reversion in Bonds. Unlike equity markets which have a long-term upward bias, bond markets are mean-reverting around the central bank’s target rate. This mean reversion means that Kagi Yang phases in bonds are typically shorter and less than Yang phases in equities. A long Yang phase on bonds (falling yields) that extends beyond 8-10 legs is statistically unusual and likely to reverse. The mean-reverting nature of bonds makes the pattern on Kagi particularly relevant — compression on bond Kagi often precedes a significant reversal toward the mean.
Central Bank Event Handling. Central bank decisions (FOMC, ECB, BOE, BOJ) create sudden, dramatic movements in bond markets. A 25-- rate change or a surprise forward guidance shift can produce a Kagi leg that is 3-5 times the average leg length. These central bank event legs should be treated as exogenous shocks rather than organic movement. The legs immediately following a central bank event are more informative — they reveal whether the market accepts or rejects the central bank’s guidance.
Kagi for Options Trading
Kagi charts provide valuable input for trading strategies. The leg structure and shoulder formations offer reference for selection, expiration timing, and volatility assessment.
Selection Based on Shoulders. Shoulder levels are strike prices for strategies. For a bullish (e.g., call purchase or bull put spread), select a strike at or just below a support shoulder — the level where the market has historically reversed to the upside. For a bearish strategy, select a strike at or just above a resistance shoulder. The shoulder-based strike selection ensures that the option’s strike is placed at a statistically significant price level, improving the probability of the trade. A call purchased at a support shoulder strike has a higher probability of profit than a call purchased at a randomly selected strike.
Volatility Assessment via Leg Length. The average Kagi leg length over the last 20 legs provides a real-time volatility estimate. When leg lengths are increasing, (IV) is likely to increase — become more expensive. When leg lengths are decreasing, IV is likely to decrease — options become cheaper. This leg length volatility estimate can be used to time options strategies: sell options (collect ) when leg lengths are high and expected to decrease; buy options (pay premium) when leg lengths are low and expected to increase. The leg length-based timing provides a systematic alternative to discretionary volatility assessment.
Expiration Selection. The average of Kagi legs (time per leg) provides guidance for option expiration selection. Set the option expiration at 3-5 times the average leg duration from the entry date. If legs average 2 days to form, select an expiration 6-10 days out. If legs average 1 hour to form (intraday Kagi), select an expiration 3-5 hours out. This ensures that the option has enough time to realize the expected move while not paying for unnecessary time .
Kagi Leg for Straddle/Strangle Entry. A pattern on Kagi (alternating short legs with decreasing leg length) signals an impending volatility expansion that is ideal for long straddle or strangle entries. Enter a long straddle (buy call and put at the money) when the Kagi chart shows 5+ legs of decreasing length in both directions. The expected volatility expansion from the compression pattern provides the price move needed for the straddle to profit. The stop for the straddle is a further compression below the entry leg lengths — if legs continue shrinking instead of , exit the position.
Kagi in Cryptocurrency Markets
Cryptocurrency markets present unique conditions for Kagi chart application. The 24/7 trading, extreme volatility, and structural events create both challenges and opportunities for Kagi analysis.
Extreme Volatility Handling. Cryptocurrency volatility can reach levels that would make Kagi charts unreadable with static reversal thresholds. During the March 2020 COVID crash, Bitcoin moved 50% in a single day — a static 1% reversal threshold would have produced hundreds of legs in a single day, making the chart unreadable. The -based reversal is essential for cryptocurrency Kagi analysis, as it automatically increases the reversal threshold during high-volatility periods and decreases it during quiet periods. A configuration of ATR(21) × 1.5 on 4-hour is a recommended starting for Bitcoin.
Structural Events and Kagi. Cryptocurrency markets experience unique structural events — halvings, exchange hacks, regulatory announcements, and protocol upgrades. These events produce sudden, dramatic price movements that create distinctive Kagi patterns. A sudden drop followed by a rapid recovery (a flash crash pattern) produces a very long Yin leg followed by an equally long Yang leg. This V-shaped pattern on Kagi signals a temporary disruption rather than a structural trend change. The shoulder formed at the bottom of the V becomes a significant support level for price action.
Multi-Exchange Kagi Analysis. Cryptocurrency prices vary across exchanges, and Kagi charts on different exchanges can tell different stories. A Yang phase on with a simultaneous Yin phase on Coinbase indicates diverging sentiment — bullish on one exchange and bearish on another. This divergence typically resolves when the leading exchange’s direction prevails. The exchange that consistently leads Yang/Yin transitions (its Kagi line changes direction first) is the price discovery leader. During major market moves, Binance and Bybit typically lead, with Coinbase and Kraken following 1-5 minutes later.
Altcoin Season Detection. Kagi charts can detect altcoin season — periods when alternative cryptocurrencies outperform Bitcoin. Monitor the BTC.D (Bitcoin Dominance) index on a daily Kagi chart. A sustained Yin phase on BTC.D (Bitcoin dominance decreasing) with a sustained Yang phase on total crypto market cap (excluding Bitcoin) signals altcoin season. During these periods, traders should shift focus from Bitcoin to high-beta altcoins. The Kagi structure on BTC.D typically shows altcoin season starting 1-2 weeks before it becomes apparent on charts.
Kagi for Intraday Trading
While Kagi is often associated with swing and position trading, it can be effectively adapted for intraday trading with appropriate parameter selection. The key is to use a source timeframe (1-15 minutes) and a reversal threshold calibrated to the ’s intraday volatility.
Pre-Market Analysis. Before the trading day begins, review the Kagi chart from the previous trading session to identify existing shoulder levels and the current Yang/Yin phase. These pre-market levels serve as the framework for intraday trading. The most levels are: the last shoulder formed before the close (which will likely be tested in the first hour of the new ), the phase direction (if the Kagi line was Yang at the close, bias toward long positions), and any overnight gap breakouts (gaps that exceed the reversal threshold and create a new leg).
First 30 Minutes. The first 30 minutes of the trading day often establish the intraday trend. During this , Kagi legs may form rapidly as price discovers the opening range. The trader should observe, not trade, during this period. By 30 minutes after the open, the Kagi chart will have established: the initial Yang or Yin phase direction, the first shoulder level of the day (the first reversal ), and the leg length characteristics (long legs vs short tentative legs). These observations form the for the first intraday trade.
Mid- Management. During the middle of the trading session (10:00 AM - 2:00 PM for US equities), Kagi leg formation typically slows as volume decreases. This is ideal for managing existing positions and reassessing the intraday structure. Key observations during this period: is the intraday trend continuing (legs extending in the initial direction) or is it stalling (alternating short legs)? A stall pattern suggests the initial trend may be exhausted and a reversal is possible in the afternoon session.
Afternoon Reversal Patterns. The afternoon often sees reversals of the morning trend, particularly in equity markets where institutional traders adjust positions before the close. Kagi is well-suited to capture these afternoon reversals. A morning Yang phase that reverses to Yin in the afternoon produces a Kagi structure: the Yang legs stop making higher highs, a Yin reversal occurs, and new Yin legs extend below the morning’s shoulder levels. The volume on the reversal leg is a critical confirmation factor — an afternoon reversal on above-average volume is more reliable.
Close Management. In the last 30-60 minutes of trading, Kagi legs should be evaluated for carry-over to the next . Legs that form late in the session and extend the current phase direction suggest the trend may carry over to the next trading day. Legs that reverse late in the session suggest uncertainty that may result in an overnight gap. The trader should reduce position size heading into the close, as Kagi provides no protection against overnight gap risk.
Common Questions About Kagi Charts
Q: What is the best reversal threshold? A: There is no universal best . Start with (14) × 1 and adjust based on leg count. If you see more than 15 legs per week on a daily chart, increase the threshold. If you see fewer than 3 legs per week, decrease it. The optimal threshold depends on your , timeframe, and trading style.
Q: Can I combine Kagi with other indicators? A: Yes, but recalibrate indicator parameters for Kagi . A 20- on Kagi legs is 20 legs, which may correspond to very different time periods in different market conditions. on Kagi data typically has lower extreme values (rarely exceeding 75 or falling below 25) due to the noise filtration.
Q: How is Kagi different from a simple ? A: A simple line chart shows every price change and changes direction on every . Kagi only changes direction when price reverses by the threshold amount, filtering noise and providing trend signals. A line chart of the same would show hundreds of minor wiggles that Kagi smooths into a clean thick/thin structure.
Q: Does Kagi work in all market conditions? A: Kagi performs best in trending markets with bias. It is less effective in strongly ranging markets with no net trend, as the alternating Yang/Yin legs provide little directional advantage. In ranging markets, reduce position size or use a wider threshold until a clear trend re-emerges.
Q: How many legs should I display? A: Display 40-80 legs for short-term trading, 80-150 for swing trading, and 150-300 for position trading. The number of legs should be sufficient to see 3-5 complete Yang/Yin cycles. Too few legs makes trend assessment unreliable; too many compresses the scale.
Q: How does Kagi handle overnight gaps? A: Kagi treats gaps as that occurs between the prior ’s close and the current period’s open. If the gap exceeds the reversal threshold, a reversal may be triggered immediately at the open. Gap-triggered reversals should be treated with caution as they may not reflect the same level of conviction as trend-driven reversals.
Q: Is Kagi suitable for day trading? A: Yes, with appropriate parameters. Use (7) × 0.8-1.0 on a 5-15 minute source timeframe. The Kagi chart will produce 10-25 legs per trading day, providing intraday trend structure without the noise of charts. Focus on shoulder formations and leg length patterns for intraday signals.
Q: What is the difference between Yang/Yin and traditional up/down? A: In traditional charts, up and down simply describe price direction. In Kagi, Yang and Yin describe the market’s energy state. Yang is not just up — it represents an active, assertive market where buyers dominate. Yin is not just down — it represents a passive, receptive market where sellers dominate. This philosophical distinction gives Kagi a depth beyond simple direction tracking.
Case Study: Complete Kagi Analysis
To illustrate complete Kagi analysis, consider a study of Crude Oil (CL) using a daily Kagi chart with (14) × 1 reversal threshold. The analysis covers a four-month during which crude transitioned from a bearish phase to a bullish phase.
Phase 1: Bearish Dominance (Months 1-2). The Kagi chart shows six consecutive Yin legs with an average length of $3.50 per leg. The Yang legs during this are short (average $1.20) and infrequent. The Yang/Yin leg count ratio is 0.33 (3 Yang / 9 Yin), indicating strong bearish dominance. A resistance shoulder forms at $78.50 — the level where the last significant Yang leg reversed. This shoulder serves as a key resistance level throughout the bearish phase.
Phase 2: and Shoulder Formation (Month 2-3). The Yin legs begin to show decreasing length: $4.20, $3.80, $3.10, $2.50. This decreasing leg length signals weakening bearish momentum. A Yang reversal at $71.20 produces a $2.80 leg — the largest Yang leg in three months. This Yang leg reverses at $74.00, forming a support shoulder at $71.20. A subsequent Yin leg to $72.00 fails to reach the $71.20 support, confirming the strength of the support shoulder.
Phase 3: Bullish Breakout (Month 3-4). After the support shoulder confirmation, a Yang leg extends from $72.00 to $76.80 ($4.80 leg — the longest in four months). This leg breaks above the $74.00 resistance shoulder level. The breakout is confirmed when a subsequent Yin leg to $75.00 holds above the prior Yang leg’s midpoint, and a new Yang leg extends to $79.50, breaking above the $78.50 resistance shoulder from Phase 1. The complete transition from bearish to bullish took approximately 2.5 months and involved three key structural events: decreasing Yin legs, support shoulder formation at $71.20, and resistance shoulder breakout at $78.50.
Kagi Execution Management
Execution management — the process of entering and exiting positions at optimal prices — is a critical application of Kagi chart analysis. The line-based structure provides execution reference .
Limit Orders at Shoulder Levels. Shoulder levels are placement . For a long entry, place a limit buy order at the most recent support shoulder level plus a offset (e.g., 0.5 above the shoulder). This ensures entry at a level where the market has historically reversed to the upside. The limit order can be placed in advance, allowing for automated execution without constant chart . The order should be sized based on the distance between the shoulder level and the level — wider distance means smaller position size.
Stop Orders at Breakout . For momentum-style entry, place a buy-stop order above the most recent resistance shoulder level. The stop order triggers only when the market breaks through the resistance level, ensuring that the trade aligns with the Kagi trend direction. The stop price should be set at the resistance shoulder level plus 0.2-0.5 ATR to allow the breakout to develop without being triggered by a false breakout. The order size should be adjusted based on the distance to the next target level — larger distance allows larger position size.
Scale-In at Multiple Shoulders. For larger positions, scale in across multiple shoulder levels. Enter 1/3 of the position at the first support shoulder, 1/3 at a deeper support shoulder (if it forms), and 1/3 at the confirmation level (the first Yang leg extending beyond the prior Yang leg’s high). This scale-in approach averages the across multiple market conditions while ensuring that the second and third entries only if the market confirms the expected direction.
Trailing Stop with Leg Lows. For managing existing positions, the at the most recent Yin leg low (for long positions). As new Yang legs form, the stop can be raised to the low of the most recent Yin leg. For short positions, trail the stop at the most recent Yang leg high. This trailing method ensures that the stop is placed at a level that, if breached, confirms a trend reversal on the Kagi chart. The distance between the current price and the trailing stop level provides a real-time risk measurement that reflects current market structure.
Exit with Leg Count. Set a maximum holding based on Kagi leg count rather than calendar time. For swing trading, exit long positions after 12-15 Yang legs from entry, regardless of the outcome. This leg-based exit ensures that the trade has a defined maximum duration that is independent of market speed. In a fast market (shorter time per leg), the exit comes sooner; in a slow market, it comes later. The leg count for exit should be calibrated based on the typical stretch of moves in the being traded.
Kagi for Event-Driven Trading
Scheduled and unscheduled events create distinctive Kagi patterns that can be systematically traded. Event-driven Kagi strategies focus on the pre-event and post-event expansion phases.
Earnings Season Kagi. Individual stock earnings announcements are among the most significant scheduled events. In the 5-10 days before an earnings report, many stocks show a Kagi pattern — short, alternating legs as traders position ahead of the announcement. The compression (maximum during compression) provides a reference for the expected post-earnings leg magnitude. A stock compressing into a $3 range typically produces a post-earnings leg of $5-10. The direction of the first post-earnings leg is the initial market . A Yang leg that significantly exceeds the pre-earnings compression range is a genuine signal; a Yang leg that barely breaks the compression range may indicate market disappointment with the .
Central Bank Meeting Kagi. FOMC, ECB, BOE, and BOJ meetings produce predictable Kagi patterns. In the 24-48 hours before the , Kagi legs shorten considerably as the market awaits the outcome. The post-decision leg is typically the longest leg of the month. The key Kagi signal is not the first post-decision leg (which reflects the knee-jerk to the headline) but the second leg (which reflects the market’s considered assessment after reading the full statement). A second post-decision leg that extends in the same direction as the first confirms the initial reaction; a reversal on the second leg warns that the initial reaction was overdone.
Release Sniper . For high-impact data releases like NFP (jobs report), CPI (inflation), and GDP (economic growth), set up a Kagi chart on a 1-minute or 2-minute timeframe. Observe the pre-release (usually 3-5 minutes of quiet trading with leg formation). When the data is released at the scheduled time, watch the first leg formation. If the first leg exceeds 3x the pre-release average leg height and closes without significant reversal, take a position in the direction of the initial leg. If the first leg is followed by an immediate reversal (within 1-2 legs), exit the initial position and take a position in the opposite direction — the market has reassessed the data and will move the other way.
Kagi for News Trading
News events — economic releases, central bank decisions, earnings reports, geopolitical events — create sudden market movements that appear as dramatic legs on Kagi charts. Specialized techniques for news trading on Kagi can help traders navigate these volatile periods.
Pre-News Identification. Before major news events, markets often enter a compression phase on Kagi — short alternating legs with decreasing leg length. This compression indicates market indecision and energy accumulation before a significant release. Identify pre-news compression on the Kagi chart and the compression zone’s (the size of the alternating pattern) and (the number of legs in the compression). The compression characteristics provide a for the expected post-news move — wider, longer compression typically leads to larger post-news legs.
Immediate Post-News Leg Assessment. In the first 5-15 minutes after a news release, monitor the Kagi chart for the initial leg formation. The first post-news leg reveals the market’s initial . A single leg in one direction that immediately reverses to form a leg in the opposite direction indicates a "head fake" — the initial reaction was overdone and the market is reassessing. A sustained sequence of 2-3 legs in the same direction indicates a genuine response. The height of the first post-news leg relative to the pre-news average leg height indicates the of surprise in the news.
Post-News Stop Management. Immediately after a news event, widen the acceptable shoulder level for stop placement. The initial volatility expansion means that a stop placed at the normal structural level may be triggered by noise. A recommended practice is to double the distance from the to the stop level for the first 3 Kagi legs after a news event, then gradually reduce the stop back to the standard level over the next 5-10 legs. This ensures that the trade has sufficient room to develop through the post-news volatility without being stopped out prematurely.
Kagi Trading Journaling
Systematic trading journaling enhances Kagi analysis by tracking quality alongside structural observations. A Kagi-focused trading journal should record three key per trade: the formation context (the specific leg that triggered the trade), the shoulder levels in play at entry, and the exit leg characteristics.
The formation context entry captures whether the trade was triggered by a Yang/Yin reversal, a shoulder breakout, or a expansion. Over time, the journal reveals which produce the best risk-adjusted returns for each . The shoulder levels entry records the key price levels that provided the structural for the trade. The exit leg characteristics capture whether the trade was exited at a shoulder level, a leg extreme, or a trailing stop — this helps exit over time.
Kagi for Position Sizing
Position sizing is critical to trading success. Kagi charts provide several inputs for position sizing decisions, allowing traders to adjust size based on current market structure.
Leg Length Based . Adjust position size inversely to the current leg length. When the most recent leg is longer than the average of the last 20 legs, decrease position size. When the current leg is shorter than average, increase position size. The logic: longer legs represent higher volatility, which means wider distances and larger position risk for the same dollar amount. By reducing size when legs are long and increasing when legs are short, the trader maintains consistent dollar risk across varying market conditions. The formula: position size = baseSize * (avgLegLength / currentLegLength).
Shoulder Density . Count the number of shoulder levels in the last 20 legs. Higher shoulder density (more shoulders) indicates a range-bound market with strong support/resistance. In a high-shoulder-density market, position sizes can be increased because the shoulder levels provide well-defined exit . Lower shoulder density (fewer shoulders) indicates a trending market where positions should be smaller due to the moves and the lack of nearby structural reference points for stop placement.
Phased Position Building. When entering a Kagi-confirmed trend, build positions in phases aligned with leg formation. Enter 1/2 of the intended position on the first Yang leg (the initial reversal signal). Enter the remaining 1/2 on the first Yin leg that holds above the prior shoulder level (the pullback confirmation). This phased approach ensures that the full position is only deployed when the market structure confirms both the initial breakout and the pullback support. If no pullback occurs and the trend continues without a retracement, the second half of the position is never deployed, which is acceptable — it is better to be partially positioned in a strong trend than to chase it at levels.
Kagi Market Breadth Applications
Market breadth measures how many stocks participate in a market move. Combining Kagi analysis with market breadth indicators provides a comprehensive view of market health.
Advance-Decline Line Kagi. Apply Kagi to the Advance-Decline Line (the difference between advancing and declining stocks). The Advance-Decline Line Kagi reveals the internal trend of broad market . When the Advance-Decline Line Kagi shows a Yang phase while the S&P 500 or NDX Kagi also shows a Yang phase, the advance is broadly supported — it is more likely to continue. When the Advance-Decline Line Kagi shows a Yin phase (internal bearishness) while the index Kagi shows a Yang phase (price rising), the divergence warns that the index advance is narrow and unsustainable.
of Stocks Above . Track the percentage of stocks above their 50-day and 200-day moving averages. Apply Kagi analysis to this percentage . When the Kagi on percentage-of-stocks-above-200-MA shows a Yang phase above 70%, the market is broad and strong. When it shows a Yin phase below 40%, the market is narrow and weak. The inflection — where the Kagi chart on this breadth indicator reverses from Yang to Yin or vice versa — often lead the corresponding inflection points on the price Kagi by 1-3 legs, providing an early of market regime changes.
New Highs-New Lows Index. Apply Kagi to the New Highs-New Lows Index (the difference between stocks making 52-week highs and stocks making 52-week lows). The New Highs-New Lows Kagi reveals the structural health of market at the extreme end. A Yang phase on this Kagi indicates that more stocks are making new highs than new lows — the market is structurally strong. The shoulder levels on this indicator’s Kagi chart are particularly significant for identifying market tops and bottoms — a support shoulder on the New Highs-New Lows Kagi marks a level where market breadth has historically bottomed.
Kagi Trading Psychology
Trading psychology — the emotional and cognitive aspects of -making — is deeply to chart reading. Kagi charts have unique psychological properties that can help traders overcome common cognitive biases.
Reducing Recency Bias. charts overemphasize recent price action by compressing older into smaller space. This creates recency bias — traders overweight the most recent . Kagi charts eliminate the time dimension, placing all legs on equal visual footing regardless of when they formed. A shoulder level from six months ago is as visible as a shoulder level from six hours ago. This spatial equality reduces recency bias and helps traders maintain a balanced, multi- perspective. The result is more disciplined -making and fewer impulsive based on the most recent bar.
Pattern Completion Urge. Humans have a strong psychological urge to complete patterns. charts tap into this urge with recognizable patterns (, flags, wedges) that create pressure to trade before the pattern completes. Kagi charts have fewer recognizable patterns and no timeframe, reducing the pattern completion urge. The structure of Kagi is more organic and less pattern-driven. Traders using Kagi report lower levels of "pattern anxiety" — the urge to find and trade patterns even when none meaningfully exist. This psychological benefit contributes to better trading discipline.
Clarity from Simplicity. The binary Yang/Yin structure of Kagi charts provides psychological clarity. There is no ambiguity about direction — the line is either thick (Yang/bullish) or thin (Yin/bearish). This clarity reduces the analysis paralysis that complex charts can induce. When a trader’s time-based chart shows conflicting signals from multiple indicators and timeframes, the Kagi chart provides a simple, unequivocal read. This simplicity is not an intellectual shortcut but a deliberate design that leverages the human brain’s preference for , binary decisions over probabilistic, multi-factorial assessments.
Stopping Out Without Regret. The shoulder-based stop levels on Kagi charts provide psychologically grounded stop placement. Because the stop is placed at a level with structural significance (a price level where the market has previously reversed), being stopped out feels less like a failure and more like a valid structural analysis — the market structure changed, and the trade was correctly exited. This psychological framing reduces the emotional pain of being stopped out and prevents the impulsive re-entry that often follows a stopped-out trade on a chart.
Kagi Line Thickness Psychology
The distinction between thick and thin Kagi lines has a subtle but psychological effect on traders. The line thickness itself influences perception of market strength and urgency.
Thick Line Confidence Effect. A thick Kagi line (Yang phase) signals strength, stability, and conviction. Research in visual perception shows that thicker lines are subconsciously associated with confidence, weight, and significance. When traders see a thick Kagi line, they tend to assign more weight to the bullish case and feel more confident holding long positions. This psychological effect is self-reinforcing — the confidence inspired by the thick line leads to more holding, which maintains the Yang phase, which keeps the line thick. Traders should be aware of this effect and guard against overconfidence during thick-line phases.
Thin Line Caution Bias. A thin Kagi line (Yin phase) conveys visually the opposite message — weakness, transience, and caution. The thin line triggers a subconscious risk-aversion response. Traders under a thin-line Kagi regime tend to be more cautious, more likely to take profits quickly, and less likely to hold positions overnight. This caution is generally appropriate for a bearish trend, but it can also lead to missed opportunities during sharp Yin-phase movements where short selling would be profitable. Recognizing the psychological impact of line thickness helps traders maintain objectivity.
Kagi and the Efficient Market Hypothesis
The Efficient Market Hypothesis (EMH) states that all available information is immediately reflected in prices, making technical analysis futile. Kagi charts provide an interesting perspective on this debate.
Semi-Strong Form and Kagi Structure. Under the semi-strong form of EMH, all public information is instantly priced in, and only new information can move prices. If this were perfectly true, Kagi charts would show only random, unpredictable leg formations with no structural patterns. Empirical observation shows the opposite — Kagi legs form structured patterns (trends, shoulders, breakouts) that persist over time. This of Kagi structure suggests either that markets are not perfectly efficient, or that the mechanism operates on a different timescale than Kagi leg formation.
Noise Trader Theory and Kagi. Noise trader theory posits that irrational traders create price movements that deviate from fundamental . Kagi charts, by filtering noise and focusing on significant price changes, may be capturing the moments when rational trading overcomes noise trading. The /expansion pattern on Kagi can be interpreted as the interaction between noise traders (creating the compression range through random trading) and rational traders (creating the expansion through informed direction trading). A Kagi breakout from a compression zone represents the at which rational traders overwhelm noise traders — a moment when fundamental information overcomes random noise.
Adaptive Markets Hypothesis. The Adaptive Markets Hypothesis (AMH) reconciles with behavioral finance by arguing that market efficiency varies over time. Kagi charts are consistent with AMH. During Kagi expansion phases (long legs in one direction), the market is relatively efficient — prices are moving in a direction based on available information. During Kagi phases (short alternating legs), the market is relatively inefficient — prices are oscillating without clear direction, reflecting uncertainty and disagreement among participants. The Kagi chart thus provides a representation of changing market efficiency over time.
References & Further Reading
- 1.Beyond Candlesticks: New Japanese Charting Techniques Revealed — Steve Nison, John Wiley & Sons, 1994
- 2.Japanese Candlestick Charting Techniques (2nd Edition) — Steve Nison, Prentice Hall, 2001
- 3.The New Trading for a Living — Dr. Alexander Elder, Wiley, 2014
- 4.Technical Analysis of the Financial Markets — John J. Murphy, 1999
- 5.Trading Price Action Trends — Al Brooks, Wiley, 2012
- 6.Encyclopedia of Chart Patterns (3rd Edition) — Thomas N. Bulkowski, Wiley, 2016
- 7.A Complete Guide to Kagi Charts — Jeff Greenblatt, 2015
- 8.Kagi Chart Analysis: Thick and Thin Lines — StockCharts.com Educational Series
- 9.Quatick Charts API — Kagi Chart Configuration — Quatick Documentation
- 10.Japanese Market Analysis: History and Methods — Journal of Technical Analysis, 2011
- 11.Statistical Properties of Kagi Chart Reversals — Journal of Financial Econometrics, 2018
- 12.Multi-Timeframe Kagi Analysis for Futures Trading — Technical Analysis of Stocks & Commodities, 2019
Native Quatick implementation and live demos
The charts below are the real Quatick engine (@quatick/quatick-charts), the same code the trading terminal runs, fed by a deterministic simulated market. Switch between demos, press Run market to stream ticks, to pan and use the wheel to zoom. Show code exactly the calls each makes.
How the engine draws Kagi
| Stage | What happens |
|---|---|
| in | bars |
| → chart.update() | |
| ( / / %) | |
| Reverse after N against the line | |
| Yang / Yin segment slot series (incremental cache) | |
| Step 4 | Slot → x on an index |
| Canvas 2D | |
| Layers | Forming element · Last- · |
| updates | Amortised O(1): only the tail of the slot series is rebuilt |
How data reaches the screen
Minimal implementation
The first above, as standalone code:
import { Chart } from '@quatick/quatick-charts';
const chart = new Chart({
container: document.getElementById('chart')!,
chartType: 'kagi',
theme: 'dark',
renderer: 'canvas',
showVolume: true,
});
const series = chart.addSeries({ type: 'candlestick' });
chart.setData(series.id, bars); // [{ time, open, high, low, close, volume }] — time in seconds
chart.setChartTypeOptions('kagi', {
reversalMode: "atr",
yangWidth: 3
});
// Live: every tick updates the forming bar (a new time opens a new bar)
feed.onTick(bar => chart.update(series.id, bar));Quatick settings reference
Loading the settings list…
Related articles
Related to Kagi
- Point & Figure
Charts / Chart Types / Special Charts
A time-independent grid-based chart plotting X columns for rising prices and O columns for falling prices. Over 130 years of continuous development.
- Line Break
Charts / Chart Types / Special Charts
A time-independent charting method originating from Japan that constructs a series of vertical blocks based on price movement relative to previous blocks.
- Mean Renko
Charts / Chart Types / Special Charts
Renko bricks built from an averaged price instead of the raw close, so single-bar spikes do not reverse the chart.
- Range Bars
Charts / Chart Types / Special Charts
A price-based chart type where each bar represents a fixed price range. Range Bars normalize price movement and filter time-based noise while preserving…
- Renko
Charts / Chart Types / Special Charts
A time-independent fixed-size brick construction that filters market noise by plotting a new brick only when price moves by a specified amount — revealing…
- Volume and Dollar Bars
Charts / Chart Types / Special Charts
A new bar every N contracts or every N of traded value, instead of every N minutes.
- Cypher Pattern
Charts / Drawing Tools / Patterns
A five-point harmonic pattern (X\u2013A\u2013B\u2013C\u2013D) characterised by an extended X\u2013A leg (1.13\u20131.414) and a precise 0.786 retracement of…
- Fib Time Zone
Charts / Drawing Tools / Fibonacci
A time-based Fibonacci study that draws vertical lines at intervals from the Fibonacci sequence (1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144…), marking potential…
- Head & Shoulders
Charts / Drawing Tools / Patterns
A three-peak reversal pattern with two lower shoulders flanking a higher head. The neckline connects the troughs \u2014 a decisive break below it confirms…