更多規則細節

R 的金融交易

Ilya Kipnis

Professional Quantitative Analyst and R programmer

ruleSignal 的更多引數

  • orderqty
  • ordertype
  • orderside
R 的金融交易

使用 add.rule()

add.rule(strategy.st, name = "ruleSignal", 
         arguments = list(sigcol = "filterexit", 
                          sigval = TRUE, 
                          orderqty = "all", 
                          ordertype = "market",
                          orderside = "long", ... ),
         type = "exit")
R 的金融交易

一起來練習吧!

R 的金融交易

Preparing Video For Download...