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

Hii
In transaction detail, i had buy 19 share of AMZN on 2016-01-04 but in daily position and gain, it had sold AMZN for three days from 2016-01-05 to 2016-01-07 and corresponding gain has been calculated. I didnt understand how gain has been calculated