Description Usage Arguments Examples
Gets the strategy function parameters of an object of class Strategy
that were used for strategy calculation.
1 2 3 4 | getParameters(object, use.backtest = FALSE)
## S4 method for signature 'Strategy'
getParameters(object, use.backtest = FALSE)
|
object |
An object of class |
use.backtest |
If set to |
1 2 3 4 5 6 7 8 9 10 | ##Not run:
# MA(200)-Strategy
params <- list(k=200)
myStrat.MA <- Strategy(assets=assets, strat="MA", strat.params=params)
# Get parameters from MA(200)-Strategy
getParameters(myStrat.MA)
##End(Not run)
|
$k
[1] 200
$threshold
[1] 0
$period
[1] "none"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.