Financial Trading in R
Ilya Kipnis
Professional Quantitative Analyst and R programmer
deals with bounded indicators interacting with critical (and usually fixed) values
Examples:
add.signal(strategy.st, name = “sigThreshold",
arguments = list(column = "str1",
threshold = 20,
cross = TRUE,
relationship = "lt" ),
label = "siglabel")
cross = TRUE mimics sigCrossover
cross = FALSE mimics sigComparison
add.signal(strategy.st, name = “sigThreshold",
arguments = list(column = "DVO_2_126",
threshold = 20,
cross = FALSE,
relationship = “lt"),
label = "thresholdfilter")
add.signal(strategy.st, name = “sigThreshold",
arguments = list(column = "DVO_2_126",
threshold = 80,
cross = TRUE,
relationship = "gt"),
label = "thresholdfilter")
Financial Trading in R