Usage
tradeModel(x,
signal.threshold = c(0, 0),
leverage = 1,
return.model = TRUE,
plot.model = FALSE,
trade.dates = NULL,
exclude.training = TRUE,
ret.type = c("weeks", "months", "quarters", "years"),
...)
Arguments
x
a quantmod object from buildModel
signal.threshold
a numeric vector describing simple lower
and upper thresholds before trade occurs
leverage
amount of leverage to apply - currently a constant
return.model
should the full model be returned?
plot.model
plot the model?
trade.dates
specific trade interval - defaults to full dataset
exclude.training
exclude the period trained on?
ret.type
a table of period returns
…
additional parameters needed by the underlying modelling function, if any