Stat: Class for one statistic

View source: R/Stat.R

StatR Documentation

Class for one statistic

Description

Class for one statistic

Usage

Stat(description, in_report, func, keywords, depends, name, general)

Arguments

description

character description of stat

in_report

logical if TRUE then it will can be accessed in report

func

function how your stats should be calculated, this function should has three arguments

* this - Strategy object

* start - index of starting period of backtest

* end - index of ending period of backtest

keywords

character additional names for your stat

depends

character names of other defined stats, they will be calculated before this stat

name

character name that will be used in report

general

logical, if TRUE then stat will be calculated once for all periods

Value

Stat object


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