Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Feature request: Backtests: actual gain/loss logs

Could we have actual gain/loss logs? As it stands we have transaction logs which log buy/sell and daily logs which log what you have at the end of the day and their profit/loss but nothing which logs individual buy/sell chunks and their profit/loss.

Really common example:

I buy a security for 5 days and then sell on the 6th after the price declines. What is my profit/loss? The daily transaction log does not show me owning the security on the 6th day, and the transaction details force me to manually add up the 5 days and subtract them from the sale on the 6th.

1 response

Also I would like to see trade returns in percentage.