Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Wolfram Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • System Modeler
  • Wolfram Player
  • Finance Platform
  • Wolfram Engine
  • Enterprise Private Cloud
  • Application Server
  • Wolfram|Alpha Notebook Edition
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

WolframConsulting.com

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Wolfram Notebook Assistant + LLM Kit
    • System Modeler
    • Wolfram Player
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Wolfram Engine
    • Enterprise Private Cloud
    • Application Server
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
TradingChart   
  • See Also
    • InteractiveTradingChart
    • DateListPlot
    • FinancialData
    • CandlestickChart
    • RenkoChart
    • KagiChart
    • LineBreakChart
    • PointFigureChart
  • Related Guides
    • Financial Visualization
    • Date & Time
    • Date & Time Visualization
    • Financial Computation
    • See Also
      • InteractiveTradingChart
      • DateListPlot
      • FinancialData
      • CandlestickChart
      • RenkoChart
      • KagiChart
      • LineBreakChart
      • PointFigureChart
    • Related Guides
      • Financial Visualization
      • Date & Time
      • Date & Time Visualization
      • Financial Computation

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
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Data and Wrappers  
Tabular Data  
Indicators  
Styling and Appearance  
Labeling  
Options  
Appearance  
AspectRatio  
Axes  
Show More Show More
AxesLabel  
AxesOrigin  
AxesStyle  
BarSpacing  
ChartBaseStyle  
ChartElementFunction  
ColorFunction  
ColorFunctionScaling  
EventLabels  
GridLines  
GridLinesStyle  
ImageSize  
Method  
PerformanceGoal  
PlotRange  
PlotTheme  
ScalingFunctions  
Properties & Relations  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • InteractiveTradingChart
    • DateListPlot
    • FinancialData
    • CandlestickChart
    • RenkoChart
    • KagiChart
    • LineBreakChart
    • PointFigureChart
  • Related Guides
    • Financial Visualization
    • Date & Time
    • Date & Time Visualization
    • Financial Computation
    • See Also
      • InteractiveTradingChart
      • DateListPlot
      • FinancialData
      • CandlestickChart
      • RenkoChart
      • KagiChart
      • LineBreakChart
      • PointFigureChart
    • Related Guides
      • Financial Visualization
      • Date & Time
      • Date & Time Visualization
      • Financial Computation

TradingChart   

Listing of Financial Indicators »

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

  • TradingChart by default includes a candlestick chart and a volume indicator.
  • The dates datei are considered an ordered sequence of events, and are not shown on an absolute time scale. The date formats for datei are the same as used in DateListPlot.
  • The "name" and daterange are the same as used in FinancialData.
  • The indicators indi can be any FinancialIndicator object.
  • Wrappers can be applied to indicators using the form w[indi].
  • Wrappers can be applied to the entire dataset using the form w[{{date1,ohlcv1},…}] or w[{"name",daterange}].
  • TradingChart[Tabular[…]cspec] extracts and plots values from the tabular object using the column specification cspec.
  • The following forms of column specifications cspec are allowed for plotting tabular data:
  • {coldate,{colopen,colhigh,collow,colclose,colvol}}plot values from columns {colopen,…,colvol} against dates from coldate
  • 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
  • TradingChart has the same options as Graphics with the following additions and changes: [List of all options]
  • Appearance "Candlestick"appearance to use
    AspectRatio 1/GoldenRatiooverall ratio of width to height
    Axes Truewhether to draw axes
    BarSpacing Automaticspacing between candles
    ChartBaseStyle Automaticoverall style for bars
    ChartElementFunction Automatichow to generate raw graphics for candlesticks
    ColorFunction Automatichow to color candles
    ColorFunctionScaling Truewhether to normalize arguments to ColorFunction
    DateFunctionAutomatichow to convert dates to standard form
    EventLabels Noneevents to label
    GridLines Automaticgrid lines to draw
    GridLinesStyle Automaticstyle for grid lines
    PerformanceGoal $PerformanceGoalaspects of performance to try to optimize
    PlotTheme $PlotThemeoverall theme for the chart
    TargetUnitsAutomaticunits to display in the chart
    TrendStyleAutomatichow to style up and down trends
    ScalingFunctions Nonehow to scale the axis
  • Possible settings for Appearance include: "Candlestick", "OHLC", "Line", and None.
  • The arguments supplied to ChartElementFunction are the box region {{xmin,xmax},{ymin,ymax}}, {datei,{oi,hi,li,ci}}, and metadata {m1,m2,…}.
  • A list of built-in settings for ChartElementFunction can be obtained from ChartElementData["TradingChart"].
  • The arguments supplied to ColorFunction are date,open,high,low,close,volume,close-open.
  • With ScalingFunctions->sy, the function sy is applied to all prices (open, high, low, close). ScalingFunctions only affect the display and none of the controls.
  • Style and other specifications from options and other constructs in TradingChart are effectively applied in the order TrendStyle, ColorFunction, Style and other wrappers, and ChartElementFunction, with later specifications overriding earlier ones.
  • List of all options
  • Highlight options with settings specific to TradingChart
  • AlignmentPointCenterthe default point in the graphic to align with
    Appearance"Candlestick"appearance to use
    AspectRatio1/GoldenRatiooverall ratio of width to height
    AxesTruewhether to draw axes
    AxesLabelNoneaxes labels
    AxesOriginAutomaticwhere axes should cross
    AxesStyle{}style specifications for the axes
    BackgroundNonebackground color for the plot
    BarSpacingAutomaticspacing between candles
    BaselinePositionAutomatichow to align with a surrounding text baseline
    BaseStyle{}base style specifications for the graphic
    ChartBaseStyleAutomaticoverall style for bars
    ChartElementFunctionAutomatichow to generate raw graphics for candlesticks
    ColorFunctionAutomatichow to color candles
    ColorFunctionScalingTruewhether to normalize arguments to ColorFunction
    ContentSelectableAutomaticwhether to allow contents to be selected
    CoordinatesToolOptionsAutomaticdetailed behavior of the coordinates tool
    DateFunctionAutomatichow to convert dates to standard form
    Epilog{}primitives rendered after the main plot
    EventLabelsNoneevents to label
    FormatTypeTraditionalFormthe default format type for text
    FrameFalsewhether to put a frame around the plot
    FrameLabelNoneframe labels
    FrameStyle{}style specifications for the frame
    FrameTicksAutomaticframe ticks
    FrameTicksStyle{}style specifications for frame ticks
    GridLinesAutomaticgrid lines to draw
    GridLinesStyleAutomaticstyle for grid lines
    ImageMargins0.the margins to leave around the graphic
    ImagePaddingAllwhat extra padding to allow for labels etc.
    ImageSizeAutomaticthe absolute size at which to render the graphic
    LabelStyle{}style specifications for labels
    MethodAutomaticdetails of graphics methods to use
    PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
    PlotLabelNonean overall label for the plot
    PlotRangeAllrange of values to include
    PlotRangeClippingFalsewhether to clip at the plot range
    PlotRangePaddingAutomatichow much to pad the range of values
    PlotRegionAutomaticthe final display region to be filled
    PlotTheme$PlotThemeoverall theme for the chart
    PreserveImageOptionsAutomaticwhether to preserve image options when displaying new versions of the same graphic
    Prolog{}primitives rendered before the main plot
    RotateLabelTruewhether to rotate y labels on the frame
    ScalingFunctionsNonehow to scale the axis
    TargetUnitsAutomaticunits to display in the chart
    TicksAutomaticaxes ticks
    TicksStyle{}style specifications for axes ticks
    TrendStyleAutomatichow to style up and down trends

Examples

open all close 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  (26)

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:

Tabular Data  (1)

Get tabular data:

Plot the stock prices and trading volumes:

Include additional financial indicators on the plot:

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

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:

AspectRatio  (2)

By default, TradingChart uses a fixed height-to-width ratio for the plot:

Make the height the same as the width with AspectRatio1:

Axes  (3)

By default, axes are drawn:

Use AxesFalse to turn off axes:

Turn each axis on individually:

AxesLabel  (3)

No axes labels are drawn by default:

Place a label on the axis:

Specify axes labels:

AxesOrigin  (2)

The position of the axes is determined automatically:

Specify an explicit axes origin position for the axes:

AxesStyle  (4)

Change the style for the axes:

Specify the style of each axis:

Use different styles for the ticks and the axes:

Use different styles for the labels and the axes:

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:

ImageSize  (6)

Use named sizes such as Tiny, Small, Medium and Large:

Specify the width of the plot:

Specify the height of the plot:

Allow the width and height to be up to a certain size:

Use maximum sizes for the width and height:

Use ImageSizeFull to fill the available space in an object:

Specify the image size as a fraction of the available space:

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:

PlotTheme  (2)

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

Change the color scheme:

ScalingFunctions  (2)

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

See Also

InteractiveTradingChart  DateListPlot  FinancialData  CandlestickChart  RenkoChart  KagiChart  LineBreakChart  PointFigureChart

Related Guides

    ▪
  • Financial Visualization
  • ▪
  • Date & Time
  • ▪
  • Date & Time Visualization
  • ▪
  • Financial Computation

History

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

Wolfram Research (2010), TradingChart, Wolfram Language function, https://reference.wolfram.com/language/ref/TradingChart.html (updated 2025).

Text

Wolfram Research (2010), TradingChart, Wolfram Language function, https://reference.wolfram.com/language/ref/TradingChart.html (updated 2025).

CMS

Wolfram Language. 2010. "TradingChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/TradingChart.html.

APA

Wolfram Language. (2010). TradingChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TradingChart.html

BibTeX

@misc{reference.wolfram_2025_tradingchart, author="Wolfram Research", title="{TradingChart}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TradingChart.html}", note=[Accessed: 01-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_tradingchart, organization={Wolfram Research}, title={TradingChart}, year={2025}, url={https://reference.wolfram.com/language/ref/TradingChart.html}, note=[Accessed: 01-December-2025]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Player
  • Wolfram Engine

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2025 Wolfram
© 2025 Wolfram | Legal & Privacy Policy |
English