I took a break from options algos to try my hand at crypto, and this BTC algo is the result.

It was fairly straightforward, using the same architecture patterns and logic I used for equities. There were some gaps in the BTC vendor data, but otherwise it was painless (gotta love LEAN). It took me a few minutes to set up a Coinbase API key, and I deployed live without any issues, on the first try. Gotta love QC!

I'm sharing the code here, fully commented in case others find it helpful. As always I'd appreciate any feedback on how I can optimize the code for performance and/or re-use.

Note: The indicator signals used in the backtest are not my actual live traded signals, feel free to replace them with your own. 

Author