Package com.wualabs.qtsurfer.engine.strategy.backtest.simulation
package com.wualabs.qtsurfer.engine.strategy.backtest.simulation
-
ClassDescriptionThe inputs a
FeeModelneeds to decide a fill's fee rate.Decides the fee RATE (decimal, e.g. 0.001 = 0.1%) charged on a backtest fill .Decides WHEN a backtest signal fills.ASlippageModelthat 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 .The DEFAULTFeeModel: a fixed decimal rate per side, ignoring liquidity .The DEFAULTFillPolicy: every signal fills on the same tick it was raised on — reproducing today's inline fill timing byte-for-byte.Which side of the order book a fill takes, for maker/taker fee routing .AFeeModelcharging a different rate depending on whether the fill made or took liquidity.The DEFAULTSlippageModel: returns the signal price unchanged — reproducing today's zero-slippage fills byte-for-byte.The inputs aSlippageModelneeds to adjust a signal price into an execution price.Adjusts a signal price into the price a backtest fill actually executes at .