calcStat: Calculate statistic

View source: R/genericStrategy.R

calcStatR Documentation

Calculate statistic

Description

Statistic and all dependent statistics will be calculated

Usage

calcStat(this, s, start, end, recalc, args, ...)

## S3 method for class 'Strategy'
calcStat(this, s, start, end, recalc = FALSE, args = list(), ...)

Arguments

this

Strategy

s

Stat or function function(this, start, end)...

start

numeric, start of the period

end

numeric, end of the period

recalc

logical, whether stat will be recalculated with all dependent or evaluated on the basis of precalculated stats

args

list, list of arguments for function / Stat s

...

params to Stat if s is a function


Vitalic57/stratbuilder3gen documentation built on March 30, 2022, 6:58 a.m.