Record Class SignalEngine.Config
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.SignalEngine.Config
- Enclosing class:
SignalEngine
public static record SignalEngine.Config(long flowHalfLifeNanos, long fastHalfLifeNanos, long slowHalfLifeNanos, long volHalfLifeNanos, long liquidityHalfLifeNanos, double wQueueImbalance, double wTradeImbalance, double wOfi, double wMomentum)
extends Record
Half-lives (all in nanos) for the decayed estimators, plus the
composite weights.
defaults() is a reasonable intraday
starting point — 500ms flow, 2s/20s momentum, 10s volatility and
liquidity, equal composite weights.-
Constructor Summary
ConstructorsConstructorDescriptionConfig(long flowHalfLifeNanos, long fastHalfLifeNanos, long slowHalfLifeNanos, long volHalfLifeNanos, long liquidityHalfLifeNanos, double wQueueImbalance, double wTradeImbalance, double wOfi, double wMomentum) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignalEngine.Configdefaults()final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefastHalfLifeNanosrecord component.longReturns the value of theflowHalfLifeNanosrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theliquidityHalfLifeNanosrecord component.longReturns the value of theslowHalfLifeNanosrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevolHalfLifeNanosrecord component.doubleReturns the value of thewMomentumrecord component.doublewOfi()Returns the value of thewOfirecord component.doubleReturns the value of thewQueueImbalancerecord component.doubleReturns the value of thewTradeImbalancerecord component.
-
Constructor Details
-
Config
public Config(long flowHalfLifeNanos, long fastHalfLifeNanos, long slowHalfLifeNanos, long volHalfLifeNanos, long liquidityHalfLifeNanos, double wQueueImbalance, double wTradeImbalance, double wOfi, double wMomentum) Creates an instance of aConfigrecord class.- Parameters:
flowHalfLifeNanos- the value for theflowHalfLifeNanosrecord componentfastHalfLifeNanos- the value for thefastHalfLifeNanosrecord componentslowHalfLifeNanos- the value for theslowHalfLifeNanosrecord componentvolHalfLifeNanos- the value for thevolHalfLifeNanosrecord componentliquidityHalfLifeNanos- the value for theliquidityHalfLifeNanosrecord componentwQueueImbalance- the value for thewQueueImbalancerecord componentwTradeImbalance- the value for thewTradeImbalancerecord componentwOfi- the value for thewOfirecord componentwMomentum- the value for thewMomentumrecord component
-
-
Method Details
-
defaults
-
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. -
flowHalfLifeNanos
public long flowHalfLifeNanos()Returns the value of theflowHalfLifeNanosrecord component.- Returns:
- the value of the
flowHalfLifeNanosrecord component
-
fastHalfLifeNanos
public long fastHalfLifeNanos()Returns the value of thefastHalfLifeNanosrecord component.- Returns:
- the value of the
fastHalfLifeNanosrecord component
-
slowHalfLifeNanos
public long slowHalfLifeNanos()Returns the value of theslowHalfLifeNanosrecord component.- Returns:
- the value of the
slowHalfLifeNanosrecord component
-
volHalfLifeNanos
public long volHalfLifeNanos()Returns the value of thevolHalfLifeNanosrecord component.- Returns:
- the value of the
volHalfLifeNanosrecord component
-
liquidityHalfLifeNanos
public long liquidityHalfLifeNanos()Returns the value of theliquidityHalfLifeNanosrecord component.- Returns:
- the value of the
liquidityHalfLifeNanosrecord component
-
wQueueImbalance
public double wQueueImbalance()Returns the value of thewQueueImbalancerecord component.- Returns:
- the value of the
wQueueImbalancerecord component
-
wTradeImbalance
public double wTradeImbalance()Returns the value of thewTradeImbalancerecord component.- Returns:
- the value of the
wTradeImbalancerecord component
-
wOfi
public double wOfi()Returns the value of thewOfirecord component.- Returns:
- the value of the
wOfirecord component
-
wMomentum
public double wMomentum()Returns the value of thewMomentumrecord component.- Returns:
- the value of the
wMomentumrecord component
-