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.
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.
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.