Learn R Programming

highfrequency (version 0.7.0.1)

autoSelectExchangeTrades: Retain only data from the stock exchange with the highest trading volume

Description

Function returns a data.table or xts object containing only observations of the exchange with the highest value for the variable "SIZE", i.e. the highest trade volume.

Usage

autoSelectExchangeTrades(tData)

Arguments

tData

an xts object with at least a column "EX", indicating the exchange symbol and "SIZE", indicating the trade volume. The chosen exchange is printed on the console.

  • A: AMEX

  • N: NYSE

  • B: Boston

  • P: Arca

  • C: NSX

  • T/Q: NASDAQ

  • D: NASD ADF and TRF

  • X: Philadelphia

  • I: ISE

  • M: Chicago

  • W: CBOE

  • Z: BATS

Value

data.table or xts object depending on input

Examples

Run this code
# NOT RUN {
autoSelectExchangeTrades(sampleTDataRawMicroseconds)

# }

Run the code above in your browser using DataLab