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.