Problem I'm facing:
I was under the impression that Gains in the 'Daily Positions and Gains' bar was the summed $ returns on all assets in your portfolio on that day. One of my algorithms had a meltdown in October 2015, falling 5% in 2 days before continuing on as normal. I was going back through the Gains log to see if I'd fallen victim to an unaccounted for stock split. What I found instead is that these returns weren't even accounted for.
In the backtest the daily returns chart (underneath the main curve chart) showed my algorithm losing $3,007 on October 5th 2015 and $2,437 on October 6th 2015. However the Gains field for those days in the 'Daily Positions and Gains' showed me making $29.06 and $98.43 respectively.
Obviously a drawdown like this is strange no matter the context, but I was especially confused by Quantopian not accounting for it in their logs based on my interpretation of what they are. Can someone from Quantopian (or someone more well-versed in the platform than me) explain to me what is going on?
There wasn't a single stock which I lost more than $5 on on October 5th and on October 6th my biggest single loss was $155.
I'm not going to share the backtest because I'm very happy with what the performance is looking like at the moment. I have attached a notebook of the isolated problem though.
The Notebook seems to think the biggest loss in a single stock was -$2887.38, the Backtest is saying that the biggest loss in a single stock was -$155.02