Description Usage Arguments Details Value
The traditional OHLC bars based on buckets of time.
1 2 3 4 5 6 7 8 |
ticks |
The original trade data. |
align_period |
Length of the time period to align by. |
align_by |
Unit of the time period, can be:
|
name |
Name of the symbol. |
prev_bar |
Bar from a previous call to |
add_name |
Should the name of the symbol be added to the column names? |
Bars are aligned on multiples of the time period since midnight, that is a tick happening at 01:06:41 will be in a bar starting on:
01:06:40 if the bar length is 5 seconds
01:06:30 if the bar length is 30 seconds
01:06:00 if the bar length is 1 minute
01:05:00 if the bar length is 5 minutes
01:00:00 if the bar length is 1 hour
The highfrequency
package uses the same logic but the timestamp of the bar
is the end of the bar period.
Time based OHLC bars.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.