public final class AllPerformanceMeasures extends Object
Using this example. Construct the catalog with the actual interval, NAV history, cash balance, blotter and market caches, then evaluate the registered KeyedMeasure instances. Keep metric units and availability notes with the values: undefined ratios must not be replaced by zero. Trade measures require real executions and cannot be inferred from NAV alone.
| Modifier and Type | Class and Description |
|---|---|
static class |
AllPerformanceMeasures.Metric |
static class |
AllPerformanceMeasures.PeriodTable |
static class |
AllPerformanceMeasures.PeriodValue |
| Modifier and Type | Field and Description |
|---|---|
List<AllPerformanceMeasures.Metric> |
metrics |
List<AllPerformanceMeasures.PeriodTable> |
periods |
| Constructor and Description |
|---|
AllPerformanceMeasures(dev.nm.misc.datastructure.time.LocalDateTimeInterval interval,
double capital,
SequentialCache<Double> nav,
List<Execution> fills,
OrderBookCaches books,
BenchmarkLookup benchmark,
String benchmarkError,
double[] daily)
Captures the inputs used by the library's performance-measure constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compute() |
void |
compute(boolean includePeriodTables)
Scalar comparisons can omit long period tables while using the same calculations.
|
void |
computeForNavSeries()
Imported NAV contains no execution, fee or position records.
|
public final List<AllPerformanceMeasures.Metric> metrics
public final List<AllPerformanceMeasures.PeriodTable> periods
public AllPerformanceMeasures(dev.nm.misc.datastructure.time.LocalDateTimeInterval interval,
double capital,
SequentialCache<Double> nav,
List<Execution> fills,
OrderBookCaches books,
BenchmarkLookup benchmark,
String benchmarkError,
double[] daily)
interval - account measurement intervalcapital - initial account balance in the example's USD conventionnav - chronological account NAV including the initial balancefills - actual simulated executions; an empty list is not evidence of no trades
when analyzing an imported NAV-only accountbooks - product order books used by execution-dependent measuresbenchmark - lookup used for CAPM comparisonsbenchmarkError - explanation when benchmark-dependent results are unavailabledaily - successive daily simple returns, as fractions rather than percentagesCopyright © 2026. All rights reserved.