Description Usage Arguments Details Value
Input data dt should have these columns: Code, Date, Time, Open, High, Low, Close, Vol, Tnvr
1 | resample_ohlc_ashare(dt, period, align_time = FALSE)
|
dt |
OHLC data.table |
period |
resample time period |
align_time |
whether to align time to resampled time intervals |
Output data contains these columns: Code, Date, Time, Open, High, Low, Close, Vol, Tnvr, VWAP, Avg
Among which, VWAP stands for volume weighted average price and Avg stands for average price traded in corresponding bar.
data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.