Usage
tradesCleanup(from,to,datasource,datadestination,ticker,exchanges,
tdataraw,report,selection,...)
Arguments
from
character indicating first date to clean, e.g. "2008-01-30".
to
character indicating last date to clean, e.g. "2008-01-31".
datasource
character indicating the folder in which the original data is stored.
datadestination
character indicating the folder in which the cleaned data is stored.
ticker
vector of tickers for which the data should be cleaned, e.g. ticker = c("AAPL","AIG")
exchanges
vector of stock exchange symbols for all tickers in vector "ticker". It thus should have the same length as the vector ticker.
Only data from one exchanges will be retained for each stock respectively, e.g. exchanges = c("Q","N")
The possible exchange s
tdataraw
xts object containing (ONE day and for ONE stock only) raw trade data. This argument is NULL by default. Enabling it means the arguments
from, to, datasource and datadestination will be ignored. (only advisable for small chunks of data)
report
boolean and TRUE by default. In case it is true the function returns (also) a vector indicating how many trades remained
after each cleaning step.