TradingView workflows

Kagi chart generator

A Kagi chart reverses direction after a set price move. Its line becomes thick above a prior shoulder and thin below a prior waist. These are separate events: a falling line can still be thick.

Paste closing prices to compare fixed-amount and percentage reversals. This free tool uses your input rows, with no market feed or account required.

1. Data Input

Paste your historical price data (CSV format). Must include a "Close" or "Price" column. Rows are used oldest to newest; OHLC fields other than close are ignored.

2. Chart Settings

Reversal Type

Price movement required to reverse direction (e.g. 5 points)

How it works

  • Yang (Thick Green): Price breaks above previous high (Shoulder)
  • Yin (Thin Red): Price breaks below previous low (Waist)
  • Reversal: Price moves against current trend by specified amount

Chart visualization

No data available

Reversal, shoulder and waist mean different things

A reversal starts a new column. The horizontal turn from up to down is a shoulder; the turn from down to up is a waist. Line width tracks breaks of those levels, rather than the direction of every move. The construction rules are documented by StockCharts ChartSchool.

A 4-point example you can reproduce

Select Fixed Amount, enter 4, and paste the CSV below. Prices are invented for arithmetic, not a historical performance example. The first nonzero move starts the chart; this tool seeds its first shoulder and waist boundary from the initial close.

Date,Close
1,100
2,110
3,107
4,106
5,99
6,103
7,110
8,112
9,108
10,98
Price moveDirection ruleWidth rule
100 → 110First rising legThick Yang; 100 is the starting boundary.
110 → 107Fall of 3, below the 4-point thresholdNo new column; the plotted extreme stays at 110.
110 → 106Fall of exactly 4Reverse down; shoulder = 110. The line stays thick.
106 → 99Extend the falling legCross 100: thick to 100, then thin below 100.
99 → 103Rise of exactly 4Reverse up; waist = 99. The line stays thin.
103 → 110Reach the previous shoulderStill thin: touching 110 is not a break above it.
110 → 112Break above the shoulderThin to 110, then thick from 110 to 112.
112 → 108 → 98Reverse down at 108, then extendShoulder = 112. Thick to waist 99, then thin to 98.

The result has four columns, indexed 0 through 3. Width changes split a column at 100, 110 and 99; they do not create extra columns. A thick segment descending from 112 to 99 is therefore a valid result.

Fixed amount and percentage use different units

Fixed Amount is measured in price units. At an extreme of 200, a value of 4 reverses a rising leg at 196 or lower. Percentage (%) in this tool is recalculated from the current plotted extreme: at 200, 4% means 8 units and a downward reversal at 192. From a falling extreme of 192, an upward reversal needs 192 × 1.04 = 199.68.

This local percentage mode differs from TradingView Percentage (LTP). TradingView documents a threshold derived from the latest close, rounded to the symbol tick size and applied across the chart. It can rebuild history as that value changes. TradingView also offers ATR; this tool does not calculate ATR or round to an exchange tick size. See TradingView Kagi chart settings.

Use closing prices in chronological order

  1. Paste comma- or tab-separated data with a Close or Price header. A Date or Time column supplies labels; otherwise rows receive point labels.
  2. Order rows from oldest to newest. This tool preserves row order and reads only the closing-price field, even if the file contains OHLC columns.
  3. Use positive finite prices and a positive reversal value. Select Generate Kagi Chart; settings changes then redraw the loaded data.
  4. Compare the result with the worked example before analyzing your own data. A different starting row can change the initial state.

What the chart leaves out

Equal column spacing does not mean equal elapsed time. Keep the source timestamps to measure holding periods. Daily closing rows also omit the order of intraday highs and lows: a move through a threshold and back before the close will be absent from this close-only chart.

An unfinished source bar can change the current Kagi projection. TradingView builds Kagi data from lower-timeframe OHLC, so it is an approximation of a tick-based path. Its Pine API exposes Kagi data through ticker.kagi and request.security; that data alone does not recreate the visual chart. See the non-standard chart data documentation.

Renko builds bricks and Point & Figure builds X/O boxes. Kagi extends vertical lines and uses width changes, so their settings and signals are not interchangeable. Threshold changes can remove or add reversals; no threshold proves that a trading rule will be profitable.

Educational chart construction only, not investment advice. Evaluate any rule on ordinary market prices with trading costs and execution assumptions; synthetic chart values are not guaranteed fill prices. Sources checked October 17, 2026.

Kagi chart questions

Does every Kagi reversal change the line thickness?
No. Reaching the reversal threshold changes direction. A line changes from thin to thick only above the prior shoulder, or thick to thin below the prior waist. A down leg can remain thick and an up leg can remain thin.
How is the percentage reversal calculated here?
This tool multiplies the current plotted extreme by your percentage. At 200 with 4%, the reversal distance is 8. TradingView Percentage (LTP) uses the latest closing price and tick rounding for a chart-wide threshold, so matching percentage inputs need not produce matching charts.
Can I upload OHLC data or get live Kagi prices?
Paste CSV or tab-separated rows containing Close or Price. The generator reads only that column, preserves row order, and does not fetch market prices. Open, high and low fields do not affect the result. There is no file-upload control.
Why can a Kagi chart change during the current bar?
The current price can cross a reversal level and move back before the source bar closes. That can change a projected line. This tool processes supplied rows; it does not reconstruct the missing intraday path or confirm a live trading signal.
Is this Kagi chart generator free?
Yes. You can paste prices, load sample data and change the reversal settings without signing in. The chart is a research view, not an order execution service.

Define a Kagi state alert in Pine Script

Use Pineify's Pine Script AI Coding Agent to draft or revise rules from available Kagi data. Specify the reversal method, source interval and confirmation rule. Check the generated logic on a standard price chart before relying on alerts; this generator does not connect a broker or execute orders.

Explore Pine Script AI Coding Agent