DXcharts Tools: Aggregation Periods, Date and Time Presets

5 min read

See all our DXcharts guides here.

Welcome to the next installment in our series on DXcharts. In our previous articles, we explored the wide range of drawing tools and chart types. Today, we will take a closer look at aggregations and date/time presets. These features play a vital role in customizing chart data and enhancing the accuracy of your analysis. Let’s jump right in and explore the flexibility that DXcharts offers in aggregation periods.

Predefined and custom aggregations

An aggregation is a time period corresponding to 1 bar displayed on the chart. In DXcharts, you can use predefined time-based aggregations consisting of standard time intervals such as ticks, minutes, hours, days, weeks, and years. Additionally, there are ranges, which are price-based aggregations. The ranges take into account only price movements, not time units, and can only be used with the “Bar” chart type.

Aggregation periods in DXcharts - DXcharts tools - Aggregation periods, date and time presets
Aggregation periods in DXcharts

In addition to predefined aggregations, you can set your own interval in a custom aggregation: 5 ticks, 3 minutes, 9 hours, 11 weeks, 2 years, and so on – each of these will define how much data is aggregated for a single bar.

How to create a custom aggregation period

  1. On the Toolbar, click the Agregation period icon that displays the current aggregation period.
  2. At the bottom of the aggregations list, click Custom.
  3. Type in a time interval for aggregation. For example: 2 ticks, 3 hours, or 4 days
  4. Click the Apply icon or press Enter.
Creating a custom aggregation - DXcharts tools - Aggregation periods, date and time presets
Creating a custom aggregation

If you don’t need an aggregation, you can remove it by clicking the Remove icon next to the item.

Date and time presets

For even more flexibility, DXcharts has a tweaking tool for creating date and time presets. The tweaker allows you to set an aggregation period and then adjust a date range for which the entire chart will be plotted. Up to 15 presets can be saved as ready-to-use templates for quick access.

The following table shows all possible date ranges for the selected aggregation period:

AggregationDate range
5 seconds1 hour, 12 hours; 1 day
5 minutes1-10, 20, 25, 30, 60, 90 days
15 minutes1-10, 20, 25, 30, 60, 90 days
30 minutes1-10, 20, 25, 30, 60, 90 days
1 hour1-10, 20, 25, 30, 60, 90, 180, 285 days
2 hours1-10, 20, 25, 30, 60, 90, 180, 285 days
4 hours1-10, 20, 25, 30, 60, 90, 180, 285 days
1 day1, 3, 6, 9 months; 1-10, 15, 20, 25, 30 years
1 week3, 6, 9 months; 1-10, 15, 20, 25, 30 years
1 month1-10, 15, 20, 25, 30 years

How to add a date and time preset

  1. In the bottom left corner of the chart, click the Add icon.
  2. Set the aggregation period.
  3. Adjust the date range.
  4. Click Save.
Creating a date and time preset - DXcharts tools - Aggregation periods, date and time presets
Creating a date and time preset

To remove a preset, click the Edit icon, point to the preset, and click the Remove icon.

We hope this article has shed some light on the rich functionality of DXcharts. Predefined and custom aggregations in DXcharts are great tools to ensure a more granular approach to data analysis, thanks to the flexibility and customization they offer. You can try creating custom aggregations on your own by checking out the DXcharts demo, and it can become a good starting point for exploring other tools.