exchangeHoursOnly | R Documentation |
xts
object for the exchange hours onlyFilter raw trade data such and return only data between market close and market open.
By default, marketOpen = "09:30:00"
and marketClose = "16:00:00"
(see Brownlees and Gallo (2006) for more information on good choices for these arguments).
exchangeHoursOnly(
data,
marketOpen = "09:30:00",
marketClose = "16:00:00",
tz = NULL
)
data |
a |
marketOpen |
character in the format of |
marketClose |
character in the format of |
tz |
fallback time zone used in case we we are unable to identify the timezone of the data, by default: |
xts
or data.table
object depending on input.
Jonathan Cornelissen, Kris Boudt, Onno Kleen, and Emil Sjoerup.
Brownlees, C. T. and Gallo, G. M. (2006). Financial econometric analysis at ultra-high frequency: Data handling concerns. Computational Statistics & Data Analysis, 51, pages 2232-2245.
exchangeHoursOnly(sampleTDataRaw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.