Learn R Programming

Strategy (version 1.0.1)

getFilters: Get strategy values from Strategy-object

Description

Gets the strategy values of an object of class Strategy that were output from strategy calculation.

Usage

getFilters(object, which = NULL)

# S4 method for Strategy getFilters(object, which = NULL)

Arguments

object

An object of class Strategy.

which

Which filters shall be returned. Either list number or names to be passed.

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 strategy values from MA(200)-Strategy
getFilters(myStrat.MA) # all strategy values returned

##End(Not run)
# }

Run the code above in your browser using DataLab