Class NoSlippage
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.backtest.simulation.NoSlippage
- All Implemented Interfaces:
SlippageModel
The DEFAULT
SlippageModel: returns the signal price unchanged
— reproducing today's zero-slippage fills byte-for-byte.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjust(SlippageContext ctx) Returns the adjusted execution price for the given signal.
-
Constructor Details
-
NoSlippage
public NoSlippage()
-
-
Method Details
-
adjust
Description copied from interface:SlippageModelReturns the adjusted execution price for the given signal.- Specified by:
adjustin interfaceSlippageModel- Parameters:
ctx- the slippage context (side, signal price)- Returns:
- the execution price after slippage
-