Live data from Hacker News

Cryptocurrency Analysis with Python – Buy and Hold

romanorac.github.io

21–30 of 70 posts

Re: Cryptocurrency Analysis with Python – Buy and Hold

#21
post #16
post #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 fitte…

Depending on the automated strategy, they can dramatically reduce risk though. That has value well beyond the simple return of buy and hold, where if you don't time the sell perfectly, it's all useless. I think that's the big advantage automated trading strategies can have if designed well.

Yes - I found that to be true in my testing as well. The configurations optimized for highest absolute returns did very poorly in unfavorable market conditions (and max drawdown became significant), while there were some that performed moderately well and were much less affected by downturns in the market. Like most investments, it really comes down to the same thing: risk vs return.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#22

Earlier quoted context omitted.

It's not irrational. It's an asset whose price is rising. If you want to make money, it's a good asset to trade. Just avoid hodling the bag when the music stops...

> Just avoid hodling the bag when the music stops... and how do you know exactly when the music has stopped?

a lot more people sell than buy cryptocurrency

Re: Cryptocurrency Analysis with Python – Buy and Hold

#23
post #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 fitte…

Not to be rude but I stopped reading at "MACD". TA is not the go-to strategy in stock trading for a reason. Indicators like MACD, RSI, Bollinger Bands etc re-paint a lot. So the perfect signals everyone sees on the charts are, for the most part, are just "profitable system" mirage.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#24

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)

if Gold can be irrational for 2k years, I don't see why not bitcoin can't, the only think gold has going for "longer history", yet HN folk love to say "past performance are not an...bla bla", yes it also has the 5% - 10% industrial use, but bitcoin has that too by being able to transfer it without third party, so will also not go to zero because will be useful as transfer of value.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#25
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/

What do you mean by those plots currently have different units? Don't they consider the price in dollars as the unit?

They have the dollar as a unit, just y-axis scale is different. For BTC is from $4000 to $20000 and for LTC is from $50 to $350. This is a useful technique to check if curves move together or not.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#26

Earlier quoted context omitted.

It's not irrational. It's an asset whose price is rising. If you want to make money, it's a good asset to trade. Just avoid hodling the bag when the music stops...

> Just avoid hodling the bag when the music stops... and how do you know exactly when the music has stopped?

It's easy to tell when the music has stopped. The hard part is anticipating the stopping.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#27

Earlier quoted context omitted.

It's not irrational. It's an asset whose price is rising. If you want to make money, it's a good asset to trade. Just avoid hodling the bag when the music stops...

> Just avoid hodling the bag when the music stops... and how do you know exactly when the music has stopped?

When you’re broke.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#28

Earlier quoted context omitted.

It's not irrational. It's an asset whose price is rising. If you want to make money, it's a good asset to trade. Just avoid hodling the bag when the music stops...

> Just avoid hodling the bag when the music stops... and how do you know exactly when the music has stopped?

[deleted]

Re: Cryptocurrency Analysis with Python – Buy and Hold

#29

Earlier quoted context omitted.

It's not irrational. It's an asset whose price is rising. If you want to make money, it's a good asset to trade. Just avoid hodling the bag when the music stops...

> Just avoid hodling the bag when the music stops... and how do you know exactly when the music has stopped?

I've told people to buy at $3,800, $5,900, and $14,000 and got shouted down each time. All of these were after major crashes, so of course the price was about to bounce back.

Even if you know when the music hasn't stopped yet, it's very hard to get anyone to listen.

Re: Cryptocurrency Analysis with Python – Buy and Hold

#30

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.

thank you. Gonna look at it
Post reply on HN