This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

TradingChart

TradingChart
makes a chart showing prices and volume for each date.
TradingChart
makes a financial chart for the financial entity over the daterange.
TradingChart
makes a financial chart with indicators , , ....
  • TradingChart by default includes a candlestick chart and a volume indicator.
  • The dates are considered an ordered sequence of events, and are not shown on an absolute time scale. The date formats for are the same as used in DateListPlot.
  • Wrappers can be applied to indicators using the form .
  • Wrappers can be applied to the entire dataset using the form or .
  • The following wrappers can be used:
Annotation[data,label]provide an annotation
Button[data,action]define an action to execute when the element is clicked
EventHandler[data,...]define a general event handler for the element
Hyperlink[data,uri]make the element act as a hyperlink
PopupWindow[data,cont]attach a popup window to the element
StatusArea[data,label]display in the status area when the element is moused over
Style[data,opts]show the element using the specified styles
Tooltip[data,label]attach an arbitrary tooltip to the element
Appearance"Candlestick"appearance to use
AspectRatio1/GoldenRatiooverall ratio of width to height
AxesTruewhether to draw axes
BarSpacingAutomaticspacing between candles
ChartBaseStyleAutomaticoverall style for bars
ChartElementFunctionAutomatichow to generate raw graphics for candlesticks
ColorFunctionAutomatichow to color candles
ColorFunctionScalingTruewhether to normalize arguments to ColorFunction
DateFunctionAutomatichow to convert dates to standard form
EventLabelsNoneevents to label
GridLinesAutomaticgrid lines to draw
GridLinesStyleAutomaticstyle for grid lines
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
TrendStyleAutomatichow to style up and down trends
ScalingFunctionsNonehow to scale the axis
Chart the prices from a list of values:
Use three months of prices from FinancialData entities:
Specify a date range for FinancialData entities:
Show a chart with financial indicators:
Chart the prices from a list of values:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
Use three months of prices from FinancialData entities:
In[1]:=
Click for copyable input
Out[1]=
 
Specify a date range for FinancialData entities:
In[1]:=
Click for copyable input
Out[1]=
 
Show a chart with financial indicators:
In[1]:=
Click for copyable input
Out[1]=
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:
TradingChart automatically includes the volume indicator:
Add a simple moving average:
Specify how many periods to use for the simple moving average using FinancialIndicator:
Indicators may be shown in the main plot or as an additional plot:
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:
TradingChart uses when there are fewer data points:
TradingChart uses when there are more data points:
Change the appearance of the chart:
None can be used to show only indicators:
The axes origin is on the right by default:
Place the axes on the left:
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:
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:
Use blue grid lines for dates and dotted grid lines for prices:
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:
TradingChart 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:
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 for down trends:
TrendStyle->style uses style for up trends and empty bars for down trends:
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