Record Class ExecutionAlgoBacktester.Result
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.ExecutionAlgoBacktester.Result
- Record Components:
executed- shares filledcompleted- the whole parent filled within the sessionavgFillPrice- cost-inclusive average fill pricearrivalPrice- the decision price (first bar's open)sessionVwap- volume-weighted average close of the sessionshortfallBps- implementation shortfall vs arrival, in bps, signed so that POSITIVE = cost (both sides)vwapSlippageBps- average fill vs session VWAP, in bps, POSITIVE = worse than VWAP (both sides)
- Enclosing class:
ExecutionAlgoBacktester
public static record ExecutionAlgoBacktester.Result(long executed, boolean completed, double avgFillPrice, double arrivalPrice, double sessionVwap, double shortfallBps, double vwapSlippageBps)
extends Record
The TCA-style verdict for one parent worked over one session.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(long executed, boolean completed, double avgFillPrice, double arrivalPrice, double sessionVwap, double shortfallBps, double vwapSlippageBps) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thearrivalPricerecord component.doubleReturns the value of theavgFillPricerecord component.booleanReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.longexecuted()Returns the value of theexecutedrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thesessionVwaprecord component.doubleReturns the value of theshortfallBpsrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevwapSlippageBpsrecord component.
-
Constructor Details
-
Result
public Result(long executed, boolean completed, double avgFillPrice, double arrivalPrice, double sessionVwap, double shortfallBps, double vwapSlippageBps) Creates an instance of aResultrecord class.- Parameters:
executed- the value for theexecutedrecord componentcompleted- the value for thecompletedrecord componentavgFillPrice- the value for theavgFillPricerecord componentarrivalPrice- the value for thearrivalPricerecord componentsessionVwap- the value for thesessionVwaprecord componentshortfallBps- the value for theshortfallBpsrecord componentvwapSlippageBps- the value for thevwapSlippageBpsrecord 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. -
executed
-
completed
-
avgFillPrice
public double avgFillPrice()Returns the value of theavgFillPricerecord component.- Returns:
- the value of the
avgFillPricerecord component
-
arrivalPrice
public double arrivalPrice()Returns the value of thearrivalPricerecord component.- Returns:
- the value of the
arrivalPricerecord component
-
sessionVwap
public double sessionVwap()Returns the value of thesessionVwaprecord component.- Returns:
- the value of the
sessionVwaprecord component
-
shortfallBps
public double shortfallBps()Returns the value of theshortfallBpsrecord component.- Returns:
- the value of the
shortfallBpsrecord component
-
vwapSlippageBps
public double vwapSlippageBps()Returns the value of thevwapSlippageBpsrecord component.- Returns:
- the value of the
vwapSlippageBpsrecord component
-