Lean
$LEAN_TAG$
|
Represents a slippage model that uses a constant percentage of slip More...
Public Member Functions | |
ConstantSlippageModel (decimal slippagePercent) | |
Initializes a new instance of the ConstantSlippageModel 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 uses a constant percentage of slip
Definition at line 24 of file ConstantSlippageModel.cs.
QuantConnect.Orders.Slippage.ConstantSlippageModel.ConstantSlippageModel | ( | decimal | slippagePercent | ) |
Initializes a new instance of the ConstantSlippageModel class
slippagePercent | The slippage percent for each order. Percent is ranged 0 to 1. |
Definition at line 31 of file ConstantSlippageModel.cs.
decimal QuantConnect.Orders.Slippage.ConstantSlippageModel.GetSlippageApproximation | ( | Security | asset, |
Order | order | ||
) |
Slippage Model. Return a decimal cash slippage approximation on the order.
Implements QuantConnect.Orders.Slippage.ISlippageModel.
Definition at line 39 of file ConstantSlippageModel.cs.