Description Usage Arguments Value
a collection of basic statistics on durations of trades–most freely available data will be on daily frequency
1 2 | durationStatistics(Portfolio, Symbols,
includeOpenTrade = FALSE, aggregate = TRUE, ...)
|
Portfolio |
– the portfolio name |
Symbols |
– the names of the symbols in the backtest |
includeOpenTrade |
– whether to include open trades – defaults to FALSE since if a trade opens on the same day as the last day, units will be off |
aggregate |
– if TRUE, displays aggregate statistics for all instruments included, otherwise, displays the statistics for each instrument separately |
the min, Q1, median, mean, Q3, and max durations of all trades, winning trades (W), and losing trades (L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.