# Candlestick aggregation time?

**URL:** <https://community.wolfram.com/t/candlestick-aggregation-time/4344>\
**Category:** Questions\
**Tags:** finance, mathematica, graphics-and-visualization\
**Created:** [December 16, 2014, 6:57pm UTC](https://community.wolfram.com/t/candlestick-aggregation-time/4344 "2014-12-16T18:57:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcraig](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rcraig](https://community.wolfram.com/u/rcraig)\
**Post date:** [December 16, 2014, 6:57pm UTC](https://community.wolfram.com/t/candlestick-aggregation-time/4344/1 "2014-12-16T18:57:06Z")

</div>

Hello,

It’s not clear how to change the default candle aggregation time from a Day to Minute or Week, for example, in the Trading Charts.

It’s probably just a simple list but any help would be appreciated as it is not discussed in the documentation or help.

Thanks

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [December 16, 2014, 8:42pm UTC](https://community.wolfram.com/t/candlestick-aggregation-time/4344/2 "2014-12-16T20:42:17Z")

</div>

TradingChart, by default, uses the data from FinancialData. It’s important to know that FinancialData doesn’t provide historical information up to the minute. You usually have to purchase historical data of that quality from somewhere, like Bloomberg or Reuters for example. If you have a Bloomberg subscription for this purpose, you may be interested in the Wolfram Finance Platform instead of generic Mathematica. It has extra facilities that help you use a Bloomberg subscription.

The best way to control TradingChart is by changing what data you feed into it.

This example gives the weekly OHLCV for the SP500:

```
FinancialData["SP500", "OHLCV", {{2009, 5, 1}, {2010, 4, 30}, "Week"}]

```

This example gives the daily OHLCV for the SP500:

```
FinancialData["SP500", "OHLCV", {{2009, 5, 1}, {2010, 4, 30}, "Day"}]

```

Both of these can be given to TradingChart to produce charts at different resolutions.

```
TradingChart[
 FinancialData["SP500", "OHLCV", {{2009, 5, 1}, {2010, 4, 30}, "Day"}]]

```

---

<div class="post-metadata">

**Author:** ![rcraig](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rcraig](https://community.wolfram.com/u/rcraig)\
**Post date:** [December 16, 2014, 8:48pm UTC](https://community.wolfram.com/t/candlestick-aggregation-time/4344/3 "2014-12-16T20:48:20Z")

</div>

Got it. Thanks Sean!

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [December 16, 2014, 10:39pm UTC](https://community.wolfram.com/t/candlestick-aggregation-time/4344/4 "2014-12-16T22:39:40Z")

</div>

You can also use this syntax:

```
TradingChart[{"SP500", {{2009, 5, 1}, {2010, 4, 30}, "Week"}}]

```
