Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Fixed Slippage - Help

I am new to quantopian and I am trying to make my first algorithm. One issue I have come across is choosing the a number in my fixed slippage function. I am using Jetblue and any information to point me in the right direction would be helpful.

1 response

Hey Jeremy - estimating slippage can be challenging. One empirical approach may be to run your algorithm and check the difference between the estimated price that a trade will execute at and the cost basis, the volume-weighted average price paid per share in this position. The portfolio object has a field cost_basis that you can use Quantopian help.