View source: R/modelStrategy.R
Set rule for calculating spread.
Set rule for calculating spread.
1 2 3 4 |
this |
modelStrategy |
fun |
function, it calculates coefs for spread |
args |
list, arguments in setBeta function |
lookback |
numeric, lookback for calculating coefficients, how many periods should be in data |
by_money |
logical, if it is TRUE then coefficients will be interpreted as money position in instruments, else in pieces |
this |
modelStrategy |
fun |
function / numeric vector, it calculates coefs for spread |
args |
list/NULL, default arguments for fun |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.