Lean
$LEAN_TAG$
|
Represents a slippage model that is calculated by multiplying the price impact constant by the square of the ratio of the order to the total volume. More...
Public Member Functions | |
VolumeShareSlippageModel (decimal volumeLimit=0.025m, decimal priceImpact=0.1m) | |
Initializes a new instance of the VolumeShareSlippageModel class More... | |
decimal | GetSlippageApproximation (Security asset, Order order) |
Slippage Model. Return a decimal cash slippage approximation on the order. More... | |
Represents a slippage model that is calculated by multiplying the price impact constant by the square of the ratio of the order to the total volume.
Definition at line 27 of file VolumeShareSlippageModel.cs.
QuantConnect.Orders.Slippage.VolumeShareSlippageModel.VolumeShareSlippageModel | ( | decimal | volumeLimit = 0.025m , |
decimal | priceImpact = 0.1m |
||
) |
Initializes a new instance of the VolumeShareSlippageModel class
volumeLimit | |
priceImpact | Defines how large of an impact the order will have on the price calculation |
Definition at line 37 of file VolumeShareSlippageModel.cs.
decimal QuantConnect.Orders.Slippage.VolumeShareSlippageModel.GetSlippageApproximation | ( | Security | asset, |
Order | order | ||
) |
Slippage Model. Return a decimal cash slippage approximation on the order.
Implements QuantConnect.Orders.Slippage.ISlippageModel.
Definition at line 46 of file VolumeShareSlippageModel.cs.