Record Class AlmgrenChriss.Params
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.AlmgrenChriss.Params
- Record Components:
- X, the parent order sizehorizon- T, execution horizon (in the chosen time unit)intervals- N trading intervalsvolatility- σ, price volatility per √time-unit (price units)temporaryImpact- η: price concession per unit of trade ratepermanentImpact- γ: permanent price move per share tradedriskAversion- λ ≥ 0: variance penalty (0 = risk-neutral / TWAP)
- Enclosing class:
AlmgrenChriss
public static record AlmgrenChriss.Params(double totalShares, double horizon, int intervals, double volatility, double temporaryImpact, double permanentImpact, double riskAversion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParams(double totalShares, double horizon, int intervals, double volatility, double temporaryImpact, double permanentImpact, double riskAversion) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublehorizon()Returns the value of thehorizonrecord component.intReturns the value of theintervalsrecord component.doubleReturns the value of thepermanentImpactrecord component.doubleReturns the value of theriskAversionrecord component.doubleReturns the value of thetemporaryImpactrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetotalSharesrecord component.doubleReturns the value of thevolatilityrecord component.withRiskAversion(double lambda)
-
Constructor Details
-
Params
public Params(double totalShares, double horizon, int intervals, double volatility, double temporaryImpact, double permanentImpact, double riskAversion) Creates an instance of aParamsrecord class.- Parameters:
totalShares- the value for thetotalSharesrecord componenthorizon- the value for thehorizonrecord componentintervals- the value for theintervalsrecord componentvolatility- the value for thevolatilityrecord componenttemporaryImpact- the value for thetemporaryImpactrecord componentpermanentImpact- the value for thepermanentImpactrecord componentriskAversion- the value for theriskAversionrecord component
-
-
Method Details
-
withRiskAversion
-
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. -
horizon
-
intervals
-
volatility
public double volatility()Returns the value of thevolatilityrecord component.- Returns:
- the value of the
volatilityrecord component
-
temporaryImpact
public double temporaryImpact()Returns the value of thetemporaryImpactrecord component.- Returns:
- the value of the
temporaryImpactrecord component
-
permanentImpact
public double permanentImpact()Returns the value of thepermanentImpactrecord component.- Returns:
- the value of the
permanentImpactrecord component
-
riskAversion
public double riskAversion()Returns the value of theriskAversionrecord component.- Returns:
- the value of the
riskAversionrecord component
-