Learn R Programming

Strategy (version 1.0.1)

getParameters: Get strategy function parameters from Strategy-object

Description

Gets the strategy function parameters of an object of class Strategy that were used for strategy calculation.

Usage

getParameters(object, use.backtest = FALSE)

# S4 method for Strategy getParameters(object, use.backtest = FALSE)

Arguments

object

An object of class Strategy.

use.backtest

If set to TRUE, the calibrated parameters of the backtest are returned. Requires backtest to be executed first.

Examples

Run this code
# NOT RUN {
##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)
# }

Run the code above in your browser using DataLab