Description Usage Arguments Details Zipline Documentation
Control the slippage model used for the backtest. Slippage can be calculated as a fixed spread or as a function of the volume traded.
1 2 3 4 5 | fly_set_slippage(us_equities = NULL, us_futures = NULL)
FixedSlippage(spread = 0)
VolumeShareSlippage(volume_limit = 0.025, price_impact = 0.1)
|
us_equities |
The slippage model to use for trading US equities |
us_futures |
The slippage model to use for trading US futures |
spread |
|
volume_limit |
The equity volume slippage limit. |
price_impact |
The amount of impact the slippage has on price. |
fly_set_slippage()
- Set the slippage model for the backtest.
FixedSlippage()
- Model slippage as a fixed spread.
VolumeShareSlippage()
- Model slippage as a function of the volume of contracts traded.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.