How to Create a Kagi Chart

Table of Contents

What is a Kagi Chart

Kagi charts are time-independent charts used to track price movements and to make decisions on purchasing stock.

Kagi charts show kind of a Step Line that changes direction when the price reaches a preset Reversal Amount value. When a direction change occurs, a horizontal line is drawn between the lines of opposite direction.

The color of the line changes when the price reaches the high or low of the previous vertical line.

Steps to Create a Kagi Chart

Start Visual Xtractor or Data Xtractor. Connect to a database. Create or design a SQL query. Run the query and check the results.

  1. Display and enable the Chart query builder.
  2. Select your first numeric column as Price ChartsKagi.
  3. For multiple separate Kagi charts, select other columns with the same chart type.
  4. Select one optional column as chart Label.

Kagi Chart Demo Query

This is a great alternative to learn about and play with this type of chart, if you don’t want to create it from scratch.

Kagi Chart Demo
Look for the ready-to-use single-series 3D Kagi Chart generated query under the Queries > Demo Queries > Charts > Price Charts folder. Click on the “add demo queries” command link, if not already there. You can switch anytime between 3D and 2D chart views.

The generated demo queries must work for any database, with no restriction. They use constant values generated on-the-fly and your database SQL engine, but do not depend on data from your tables, and never alter your database in any way.

Multiple Kagi Charts Demo Query

Kagi charts are always single-series, and you may not combine more than one Kagi series on the same chart. However, multiple separate charts will be created when you select more than one data column as Kagi chart.

Each Kagi chart may get its own Reversal Amount value: select the Kagi chart or series by name from the toolbar combo, then adjust parameter’s value from the drop-down button.

Multiple Kagi Charts

Look for the ready-to-use single-series 3D Multiple Kagi Chart generated query under the Queries > Demo Queries > Charts > Multiple Charts folder. Click on the “add demo queries” command link, if not already there. You can switch anytime between 3D and 2D chart views.

Customize your Kagi Chart

The chart toolbar at the bottom has many options you may change with one single click, to alter the graph. Here is just an example of what you can further do with this type of chart:

  1. Switch from the 3D to a 2D Kagi chart.
  2. Change the Reversal Amount (by default 3%) with another predefined value.
  3. Remove the up-and-down colors, to make the graph monochrome.
  4. Click on the date values until they appear as staggered labels.
  5. Show markers, and select X as your custom marker style.
  6. You can also make markers appear as lollipops (i.e. with data labels inside).

Custom Kagi Chart

Conclusion

  • Creating Kagi charts in Data Xtractor or Visual Xtractor is fast, simple and trivial: set one price/stock data column as Kagi chart, one optional column as Label, and that’s it!
  • Quickly adjust the Reversal Amount to another typical predefined value.
  • Create multiple separate Kagi charts with more than one data column selected as Kagi.
  • Many builtin powerful features of these chart type are common to most other charts: filtering series through the legend items, interactivity, monochrome or grayscale colors etc.
  • Switch to another builtin chart theme, or customize your own, for any possible color or other styles.