Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
set_commission Function

Hi There,

If I set commission using the following code:

set_commission(commission.PerShare(cost=0.00))

...will Quantopian calculate avg cost / cost basis based on zero commission or the actual commission that I am charged by Interactive Brokers?

I want my algorithm to make limit sales based on the cost basis WITHOUT commissions included, and currently with IB I found that my algorithm is calculating cost basis with the commissions included. If this method doesn't work, any suggestions on how I can calculate cost basis without commissions included?

Thank you so much for your help!