Stat | R Documentation |
Class for one statistic
Stat(description, in_report, func, keywords, depends, name, general)
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 |
Stat object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.