How to write a profitable strategy for algotrading Bitcoin