parent.frame
. This allows the columns of the
data to be addressed without any major manipulation, simply
by column name. In most cases in quantstrat, this will be
either the price/return columns, or columns added by
indicators or prior signals. The formula will return
TRUE/FALSE for each row comparison as a time series column
which can then be used for rule execution. The
formula
will be evaluated using eval
as though in an if statement.
sigFormula(label, data = mktdata, formula, cross = FALSE)
mktdata