scrub_taq: Scrub a single day of _TAQ_ data in _xts_ format, without...

View source: R/HighFreq.R

scrub_taqR Documentation

Scrub a single day of TAQ data in xts format, without aggregation.

Description

Scrub a single day of TAQ data in xts format, without aggregation.

Usage

scrub_taq(taq, lookb = 51, volm = 2, tzone = "America/New_York")

Arguments

taq

TAQ A time series in xts format.

tzone

The timezone to convert.

Details

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.

Value

A TAQ time series in xts format.

Examples

taq <- HighFreq::scrub_taq(taq=HighFreq::SPY_TAQ, lookb=11, volm=1)
# Create random TAQ prices and scrub them
taq <- HighFreq::random_taq()
taq <- HighFreq::scrub_taq(taq=taq)
taq <- HighFreq::scrub_taq(taq=taq, lookb=11, volm=1)


algoquant/HighFreq documentation built on June 10, 2025, 3:54 p.m.