Class FixedBpsSlippage
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.backtest.simulation.FixedBpsSlippage
- All Implemented Interfaces:
SlippageModel
A
SlippageModel that moves the execution price a fixed number of basis points
adverse-to-trader: BUY fills execute higher than the signal price, SELL fills execute lower
. Not the default — NoSlippage is (D-2).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjust(SlippageContext ctx) Returns the adjusted execution price for the given signal.
-
Constructor Details
-
FixedBpsSlippage
public FixedBpsSlippage(double bps) - Parameters:
bps- basis points (1 bps = 0.01%) of adverse price movement to apply
-
-
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
-