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

# CandlestickChart

 CandlestickChart makes a chart with candles representing open, high, low, and close prices for each date. CandlestickChartmakes a candlestick chart for the financial entity over the date range daterange.
• The dates are considered an ordered sequence of events, and are not shown on an absolute time scale.
 {datei,ohlci} a pure date and open-high-low-close (ohlc) pair wi[{datei,ohlci},...] a date ohlc and wrapper formi->mi a date ohlc with metadata
• Data not given in these forms is taken to be missing, and is typically excluded when generating the chart.
 {e1,e2,...}, {"name",daterange} data without overall wrapper w[{e1,e2,...}], w[{"name",daterange}] data with overall wrapper
• 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
 Top,Bottom,Left,Right,Center positions within candlestick Above, Below, Before, After positions outside candlestick "Open","High","Low","Close" open, high, low, and close positions in the candlestick {{bx,by},{lx,ly}} scaled position in the label at scaled position in the candlestick
 AspectRatio 1/GoldenRatio overall ratio of width to height Axes True whether to draw axes BarSpacing Automatic spacing between candles ChartBaseStyle Automatic overall style for candles ChartElementFunction Automatic how to generate raw graphics for candlesticks ColorFunction Automatic how to color candles ColorFunctionScaling True whether to normalize arguments to ColorFunction 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 axis
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 from today:
Get data from a specific date range:
Get data from FinancialData:
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 named preset styles:
ChartBaseStyle can be used to set a style for all chart elements:
Style can be used to override styles:
Use built-in programmatically generated bars:
Space between candlesticks is automatically adjusted based on the number of data points:
Appearance changes based on the number of data points:
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   (55)
Use the default axes:
Turn off the axes:
The axes origin is on the left by default:
Place the axis at the end of February:
Use named positions for the axis:
Use automatically determined spacing between candlesticks:
Use no spacing:
Use symbolic presets:
Use explicit spacing between candlesticks:
Use ChartBaseStyle to style candlesticks:
ChartBaseStyle combines with TrendStyle:
TrendStyle may override settings for ChartBaseStyle:
Style may override settings for ChartBaseStyle:
Get a list of built-in settings for ChartElementFunction:
For detailed settings, use PalettesChartElementSchemes:
Write a custom ChartElementFunction:
Color the candlesticks by scaled date, open, high, low, close, or trend value:
Color by the size and direction of price changes:
Color by a trigger point:
ColorFunction overrides styles in TrendStyle:
By default, scaled values are used:
Use ColorFunctionScaling->False to get unscaled values:
Use unscaled dates to color the candlesticks according to the day of the week:
Label a date event:
Use Placed to control label placement outside the candlestick:
Use positions inside the candlestick:
Place labels at the open, high, low, and close prices:
Use callouts:
Use Placed to control label appearance:
GridLines 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 with emphasized year grid lines:
Style grid lines:
The default mouseover effect is a bouncing ball and axis highlight:
Use no mouseover effect:
Use only the bouncing ball:
Style the bouncing ball with :
Use only axis highlight:
Style the axis highlight:
Specify the height in pixels for the axis highlight:
Generate a candlestick chart with interactive highlighting:
Emphasize performance by disabling interactive behaviors:
Typically, less memory is required for non-interactive charts:
CandlestickChart automatically draws all price dates:
Limit to a specific date range:
PlotRange only includes dates for which there is data:
Prices are normally shown on a linear scale:
Show prices on a logarithmic scale:
TrendStyle uses green for up trends and red for down trends by default:
Use black for up trends and red for down trends:
Use named styles:
TrendStyle combines with ChartBaseStyle:
With TrendStyle set to None, the base style is used for up trends and empty bars are used for down trends:
TrendStyle->style uses style for up trends and empty bars for down trends:
Use TradingChart to visualize and analyze financial data:
Use InteractiveTradingChart to visualize and interactively analyze financial data:
Use PointFigureChart, LineBreakChart, RenkoChart, and KagiChart to analyze the relation of financial prices and time:
Use DateListPlot to visualize financial data:
New in 8