TradingChart

TradingChart[{{date1,{open1,high1,low1,close1,volume1}},}]

makes a chart showing prices and volume for each date.

TradingChart[{"name",daterange}]

makes a financial chart for the financial entity "name" over the daterange.

TradingChart[{},{ind1,ind2,}]

makes a financial chart with indicators ind1, ind2, .

Details and Options

Examples

open allclose all

Basic Examples  (4)

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:

Scope  (25)

Data and Wrappers  (9)

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:

Indicators  (4)

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:

Styling and Appearance  (8)

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 a theme with detailed frame ticks and grid lines:

Use a theme with a high-contrast color scheme and edge-fading rectangles:

Labeling  (4)

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  (56)

Appearance  (3)

TradingChart uses "Candlestick" when there are fewer data points:

TradingChart uses "OHLC" when there are more data points:

Change the appearance of the chart:

None can be used to show only indicators:

AxesOrigin  (2)

The axes origin is on the right by default:

Place the axes on the left:

BarSpacing  (4)

Use automatically determined spacing between candlesticks:

Use no spacing:

Use symbolic presets:

Use explicit spacing between candlesticks:

ChartBaseStyle  (5)

Use ChartBaseStyle to style candlesticks:

ChartBaseStyle combines with TrendStyle:

TrendStyle may override settings for ChartBaseStyle:

Style may override settings for ChartBaseStyle:

ChartBaseStyle combines with ColorFunction:

ChartElementFunction  (3)

Get a list of built-in settings for ChartElementFunction:

For detailed settings, use Palettes ChartElementSchemes:

Write a custom ChartElementFunction:

ColorFunction  (4)

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:

ColorFunctionScaling  (2)

By default scaled values are used:

Use ColorFunctionScaling->False to get unscaled values:

EventLabels  (6)

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  (4)

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:

GridLinesStyle  (3)

By default GridLinesStyle uses dotted grid lines with emphasized year grid lines:

Use blue grid lines for dates and dotted grid lines for prices:

GridLines overrides GridLinesStyle:

Method  (4)

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 "HighlightStyle":

Use only axis highlight:

Style the axis highlight:

Specify the height in pixels for the axis highlight:

PerformanceGoal  (3)

Generate a candlestick chart with interactive highlighting:

Emphasize performance by disabling interactive behaviors:

Typically less memory is required for non-interactive charts:

PlotRange  (3)

TradingChart automatically draws all price dates:

Limit to a specific date range:

PlotRange only includes dates for which there is data:

ScalingFunctions  (2)

Prices are normally shown on a linear scale:

Show prices on a logarithmic scale:

PlotTheme  (2)

Use a theme with simple ticks and grid lines in a high-contrast color scheme:

Change the color scheme:

TrendStyle  (6)

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:

Properties & Relations  (3)

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:

Introduced in 2010
 (8.0)
 |
Updated in 2012
 (9.0)
2014
 (10.0)