R based bitcoin strategy