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

Hello everyone.
I wrote algorythm that buys 15minutes after the market is opened and sells 15 minutes before the market is closed. Despite the fact, that the algo sells for more money than buys it generates negative daily return. For example it buys for 1005 and sells for 1010, and generates -5$ daily return. How is daily return calculated and why it is not positive in this case. Thanks for help.

1 response

My guess is that your commissions are set too high (if you have $10 commissions but all you make in profit daily is $5, then a round trip would net -$15), or your slippage is too high. Try using $1million or lower your commission fees/slippage to 0 or something.