I copied some CS code from LEAN repo, with insignificant changes.
The idea is to trade diagonal call spreads.  Profit by keeping the premium from selling the short leg, and also profit when the long leg goes up in value.
Problems:  

  1. The algo gets a margin call and doesn't recover gracefully
  2. The algo buys the underlying.
  3. Backtest chart shows the exact opposite of what you'd expect, rising at 6/1/19  and 3/20/20, probably the result of the margin calls.  GOOG underlying goes up dramatically in that time so diagonal call spreads would have done quite nicely except at the above mentioned dates.

 
Any ideas for how to fix any of the issues above?  Once fixed it should be a very lucrative looking play.