Record Class MonteCarloTradeShuffle.Result
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.validation.MonteCarloTradeShuffle.Result
- Record Components:
medianMaxDrawdown- 50th-percentile max drawdown across shuffles (P&L units)p95MaxDrawdown- 95th-percentile max drawdown — the plan-for numberp99MaxDrawdown- 99th-percentile max drawdown — the tailmedianTerminalPnl- 50th-percentile terminal cumulative P&LprobLoss- fraction of shuffles ending below zeroactualMaxDrawdown- the observed (unshuffled) path's max drawdownactualDrawdownPct- where the observed drawdown sits in the shuffle distribution (0..1); high = the real order was UNUSUALLY painful, a hint of loss clustering
- Enclosing class:
MonteCarloTradeShuffle
public static record MonteCarloTradeShuffle.Result(double medianMaxDrawdown, double p95MaxDrawdown, double p99MaxDrawdown, double medianTerminalPnl, double probLoss, double actualMaxDrawdown, double actualDrawdownPct)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double medianMaxDrawdown, double p95MaxDrawdown, double p99MaxDrawdown, double medianTerminalPnl, double probLoss, double actualMaxDrawdown, double actualDrawdownPct) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theactualDrawdownPctrecord component.doubleReturns the value of theactualMaxDrawdownrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themedianMaxDrawdownrecord component.doubleReturns the value of themedianTerminalPnlrecord component.doubleReturns the value of thep95MaxDrawdownrecord component.doubleReturns the value of thep99MaxDrawdownrecord component.doubleprobLoss()Returns the value of theprobLossrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(double medianMaxDrawdown, double p95MaxDrawdown, double p99MaxDrawdown, double medianTerminalPnl, double probLoss, double actualMaxDrawdown, double actualDrawdownPct) Creates an instance of aResultrecord class.- Parameters:
medianMaxDrawdown- the value for themedianMaxDrawdownrecord componentp95MaxDrawdown- the value for thep95MaxDrawdownrecord componentp99MaxDrawdown- the value for thep99MaxDrawdownrecord componentmedianTerminalPnl- the value for themedianTerminalPnlrecord componentprobLoss- the value for theprobLossrecord componentactualMaxDrawdown- the value for theactualMaxDrawdownrecord componentactualDrawdownPct- the value for theactualDrawdownPctrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
medianMaxDrawdown
public double medianMaxDrawdown()Returns the value of themedianMaxDrawdownrecord component.- Returns:
- the value of the
medianMaxDrawdownrecord component
-
p95MaxDrawdown
public double p95MaxDrawdown()Returns the value of thep95MaxDrawdownrecord component.- Returns:
- the value of the
p95MaxDrawdownrecord component
-
p99MaxDrawdown
public double p99MaxDrawdown()Returns the value of thep99MaxDrawdownrecord component.- Returns:
- the value of the
p99MaxDrawdownrecord component
-
medianTerminalPnl
public double medianTerminalPnl()Returns the value of themedianTerminalPnlrecord component.- Returns:
- the value of the
medianTerminalPnlrecord component
-
probLoss
-
actualMaxDrawdown
public double actualMaxDrawdown()Returns the value of theactualMaxDrawdownrecord component.- Returns:
- the value of the
actualMaxDrawdownrecord component
-
actualDrawdownPct
public double actualDrawdownPct()Returns the value of theactualDrawdownPctrecord component.- Returns:
- the value of the
actualDrawdownPctrecord component
-