Financial Trading in R
Ilya Kipnis
Professional Quantitative Analyst and R programmer
add.rule(strategy.st, name = "ruleSignal",
arguments = list(sigcol = "filterexit",
sigval = TRUE, orderqty = "all",
ordertype = "market",
orderside = "long",
replace = FALSE, prefer = "Open"),
type = "exit")
replace: TRUE is other signals canceled, else FALSE
prefer: when to enter into a position
Financial Trading in R