Record Class SlippageContext
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.strategy.backtest.simulation.SlippageContext
- Record Components:
side- BUY or SELLsignalPrice- the price the strategy's signal was raised at, before slippage
The inputs a
SlippageModel needs to adjust a signal price into an execution price.-
Constructor Summary
ConstructorsConstructorDescriptionSlippageContext(OrderSide side, BigDecimal signalPrice) Creates an instance of aSlippageContextrecord 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.side()Returns the value of thesiderecord component.Returns the value of thesignalPricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlippageContext
Creates an instance of aSlippageContextrecord class.- Parameters:
side- the value for thesiderecord componentsignalPrice- the value for thesignalPricerecord 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 withObjects::equals(Object,Object). -
side
-
signalPrice
Returns the value of thesignalPricerecord component.- Returns:
- the value of the
signalPricerecord component
-