Funzioni per dimensionare gli ordini

Trading finanziario in R

Ilya Kipnis

Professional Quantitative Analyst and R programmer

Cosa sono le regole?

add.rule(strategy.st, name = "ruleSignal", 
         arguments = list(sigcol = "filterexit", 
                          sigval = TRUE, orderqty = "all", 
                          ordertype = “market",
                          orderside = "long", 
                          replace = FALSE, prefer = “Open"),
         type = "exit")
  • Specifica quanto comprare/vendere se orderqty non è usato
  • Crea dimensioni d’ordine dinamiche rispetto alla dimensione statica di orderqty
Trading finanziario in R

Cosa sono le regole?

add.rule(strategy.st, name = "ruleSignal", 
         arguments = list(sigcol = "filterexit", 
                          sigval = TRUE, orderqty = "all", 
                          ordertype = “market”,
                          orderside = "long",
                          replace = FALSE, prefer = Open”, 
                          osFUN = ..., tradeSize = ..., 
                          maxSize = ...),
         type = "exit")
Trading finanziario in R

Cosa sono le regole?

add.rule(strategy.st, name = "ruleSignal", 
         arguments = list(sigcol = "filterexit", 
                          sigval = TRUE, 
                          ordertype = “market”,
                          orderside = "long",
                          replace = FALSE, prefer = Open”, 
                          osFUN = ..., tradeSize = ..., 
                          maxSize = ...),
         type = "exit")
  • Funzione di dimensionamento ordine nello stesso elenco di argomenti in ruleSignal
  • Simile a apply()
Trading finanziario in R

Esercitiamoci!

Trading finanziario in R

Preparing Video For Download...