Record Class TickBacktester.TickBacktestResult
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.tick.TickBacktester.TickBacktestResult
- Enclosing class:
TickBacktester
public static record TickBacktester.TickBacktestResult(String strategyName, List<Execution> fills, double[] sampledEquity, double finalEquity, long ticksProcessed, PerformanceMetrics metrics)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTickBacktestResult(String strategyName, List<Execution> fills, double[] sampledEquity, double finalEquity, long ticksProcessed, PerformanceMetrics metrics) Creates an instance of aTickBacktestResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fills()Returns the value of thefillsrecord component.doubleReturns the value of thefinalEquityrecord component.final inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.double[]Returns the value of thesampledEquityrecord component.Returns the value of thestrategyNamerecord component.longReturns the value of theticksProcessedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TickBacktestResult
public TickBacktestResult(String strategyName, List<Execution> fills, double[] sampledEquity, double finalEquity, long ticksProcessed, PerformanceMetrics metrics) Creates an instance of aTickBacktestResultrecord class.- Parameters:
strategyName- the value for thestrategyNamerecord componentfills- the value for thefillsrecord componentsampledEquity- the value for thesampledEquityrecord componentfinalEquity- the value for thefinalEquityrecord componentticksProcessed- the value for theticksProcessedrecord componentmetrics- the value for themetricsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
strategyName
Returns the value of thestrategyNamerecord component.- Returns:
- the value of the
strategyNamerecord component
-
fills
-
sampledEquity
public double[] sampledEquity()Returns the value of thesampledEquityrecord component.- Returns:
- the value of the
sampledEquityrecord component
-
finalEquity
public double finalEquity()Returns the value of thefinalEquityrecord component.- Returns:
- the value of the
finalEquityrecord component
-
ticksProcessed
public long ticksProcessed()Returns the value of theticksProcessedrecord component.- Returns:
- the value of the
ticksProcessedrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-