I see algos posted with returns in the 100s and 1000s of % which is great as it shows new users are joining up and - like me - learning.
But wouldn't a simple sanity check just be to add this:
record(Cash=context.portfolio.cash)
as the last line in handle_data? If an algo is going massively into -ve cash in order to make massive returns it needs a rethink, surely? Daniel did some very nice work here on limiting leverage which I really want to start using. I'm not suggesting this should be in every beginning algo but some basic check would be sensible. Any thoughts?
P.