This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# KagiChart

 KagiChart makes a Kagi chart with prices at date . KagiChartmakes a Kagi chart of closing prices for the financial entity over the date range daterange. KagiChartmakes a Kagi chart with reversal threshold rt.
• A Kagi chart is drawn as a series of vertical lines connected by horizontal lines. Prices are drawn in a column until the price reverses by more than the threshold rt, when a new column is started with a horizontal line connecting to the previous column.
• The style of the lines changes when the price rises above the high of the previous column, or drops below the low of the previous column.
• KagiChart[...] is equivalent to KagiChart for a reversal threshold of 2% of the average price.
• The following arguments can be used to specify the reversal threshold rt:
 {"Percent",p} percent of previous price {"Relative",p} fraction of price range (default) {"Absolute",p} absolute price change
• The dates are considered an ordered sequence of events, and are not shown on an absolute time scale.
• Data elements for KagiChart can be given in the following forms:
 {datei,pi} a pure date-price pair wi[{datei,pi},...] a date-price pair and wrapper formi->mi a date-price pair with metadata
• A line segment may represent several date-price pairs and the corresponding wrappers will apply to the entire line segment.
• Data not given in these is taken to be missing, and typically is excluded when generating the chart.
• Data for KagiChart can be given in the following forms:
 {e1,e2,...} list of elements with or without wrappers w[{e1,e2,...}] wrapper applied to the whole data
• The following wrappers can be used for data elements:
 Annotation[e,label] provide an annotation Button[e,action] define an action to execute when the element is clicked EventHandler[e,...] define a general event handler for the element Hyperlink[e,uri] make the element act as a hyperlink Labeled[e,...] display the element with labeling PopupWindow[e,cont] attach a popup window to the element StatusArea[e,label] display in the status area when the element is moused over Style[e,opts] show the element using the specified styles Tooltip[e,label] attach an arbitrary tooltip to the element
 Above, Below, Before, After positions outside point or figure {lx,ly} scaled position in the label
 AspectRatio 1/GoldenRatio overall ratio of width to height Axes True whether to draw axes ChartBaseStyle Automatic overall style for bars DateFunction Automatic how to convert dates to standard form EventLabels None events to label GridLines Automatic grid lines to draw GridLinesStyle Automatic style for grid lines PerformanceGoal \$PerformanceGoal aspects of performance to try to optimize TrendStyle Automatic how to style up and down trends ScalingFunctions None how to scale the y axis
• Style and other specifications from options and other constructs in KagiChart are effectively applied in the order TrendStyle, Style, and other wrappers, with later specifications overriding earlier ones.
Chart the prices from a list of values:
Use three months of prices from FinancialData entities:
Specify a date range:
Chart the prices from a list of values:
 Out[2]=

Use three months of prices from FinancialData entities:
 Out[1]=
Specify a date range:
 Out[2]=
 Scope   (20)
Automatically get quarterly data for a financial entity:
Get data for a specific date range:
Get data from FinancialData:
Reversal threshold by default is a fraction of the price range:
Use thresholds relative to the overall price range:
Use thresholds that are a percentage of the current price:
Use absolute thresholds:
Use wrappers on individual data:
Use wrappers on entire datasets:
Wrappers can be nested:
Override the default tooltips:
Use PopupWindow to provide additional drilldown information:
Button can be used to trigger any action:
Specify styles for up and down trends:
Use preset styles:
ChartBaseStyle can be used to set a style for the entire chart:
Style can be used to override styles:
Use Labeled to add a label to a candlestick:
Use symbolic positions for label placement:
Label a list of date events:
Use Placed to control the positioning of labels, using the same positions as for Labeled:
 Options   (28)
Use the default axes:
Turn off the axes:
Axes origin is on the left by default:
Place the axis at the end of February:
Use named positions for the axis:
Use ChartBaseStyle to apply overall styles to lines:
Events are labeled at the price by default:
Use Placed to control label placement:
Use Placed to control label appearance:
Grid lines are used by default:
Turn off date grid lines:
Turn off price grid lines:
Place grid lines at month or year boundaries:
Use dotted grid lines for months and red grid lines for years:
By default, GridLinesStyle uses dotted grid lines:
Year grid lines are emphasized:
Style grid lines:
Generate a KagiChart with interactive highlighting:
Emphasize performance by disabling interactive behaviors:
Typically, less memory is required for non-interactive charts:
KagiChart automatically draws all price dates:
Limit to a specific date range:
PlotRange only includes dates for which there is data:
Show prices on a logarithmic scale:
Style up and down trends: