Live data from Hacker News

Cryptocurrency Analysis with Python – Buy and Hold

romanorac.github.io

1–10 of 70 posts

Re: Cryptocurrency Analysis with Python – Buy and Hold

#3
Don't work with closing prices for statistical analysis. Work with returns (really log returns). This would have simplified some of the code, and made the plots in the same units rather than requiring separate axes.

More detail: https://quantivity.wordpress.com/2011/02/21/why-log-returns/

Re: Cryptocurrency Analysis with Python – Buy and Hold

#4
post #3

Don't work with closing prices for statistical analysis. Work with returns (really log returns). This would have simplified some of the code, and made the plots in the same units rather than requiring separate axes. More detail: https://quantivity.wordpress.com/2011/02/21/why-log-returns/

Thx... I intend to use it next time. This is going to be a series of blog posts about cryptocurrency analysis.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#5
Unless you can include the complete irrationality of the users fueling the crypto bubble to get rich into the statistical model, any statistical analysis of those prices will be misleading.

Traditional historical trend analyses of stock prices assume the market is somewhat rational. (but not 100% efficient, which is where money can be made)

Re: Cryptocurrency Analysis with Python – Buy and Hold

#6
At our local Chicago Python User group chapter (chipy.org) one of the organizers of the Financial Group did a similar analysis. HODL is extremely hard to beat if not impossible.

See https://github.com/Chipy-Finance/CryptoTechnicals/blob/maste...

https://github.com/Chipy-Finance/CryptoTechnicals/blob/maste...

There is more in the github directory also.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#8
This may be a bit pedantic, but the phrase the author uses in his disclaimer "Experts agree that cryptocurrencies are a bubble." bothers me because it's kind of misleading.

The actual fact at hand is ~96% of economists think that the crypto market has been subject to a massive speculation bubble as of November. While that's sort of close to Roman's disclaimer, there is some nuance that ought to be given, since a) 4% of professionals dissent, and b) the question asked of economists had a temporal element to it, and they might have answered differently if the market hadn't tripled in value in as many months. It's the difference between 'the housing market is in a bubble currently', and 'housing is a bubble'.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#9
I ran some tests of my own with simulated automated trading strategies over the past few years of historical Bitcoin price data. I used a genetic algorithm to encode a range of time parameters for MACD, along with different trading triggers and amounts. After a day or two of running it against a huge number of permutations and generations optimized for highest overall return, I came to a similar conclusion: the fittest configurations could do fairly well in automated trading (the more active ones were highly sensitive to trading fees [which were simulated] and market depth [was not simulated]), but over the span of more than a few months, a simple buy and hold strategy produced better returns in almost any time window.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#10
post #7

My next step is to implement strategy testing. I would like to end this series with a classifier that predicts buy or hold. Follow me on Twitter to get the latest updates: https://twitter.com/romanorac

A classifier that flips a coin would probably have higher accuracy.
Post reply on HN