scrub_taq | R Documentation |
Scrub a single day of TAQ data in xts format, without aggregation.
scrub_taq(taq, look_back = 51, vol_mult = 2, tzone = "America/New_York")
taq |
TAQ A time series in xts format. |
tzone |
The timezone to convert. |
The function scrub_taq()
performs the same scrubbing
operations as scrub_agg
, except it doesn't aggregate, and returns
the TAQ data in xts format.
A TAQ time series in xts format.
taq <- HighFreq::scrub_taq(taq=HighFreq::SPY_TAQ, look_back=11, vol_mult=1)
# Create random TAQ prices and scrub them
taq <- HighFreq::random_taq()
taq <- HighFreq::scrub_taq(taq=taq)
taq <- HighFreq::scrub_taq(taq=taq, look_back=11, vol_mult=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.