7 ms·
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 e
by dperfect 9y ago
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.
- jonny_eh 9y agoIs that another way of saying "the bubble hasn't burst yet"?
- dperfect 9y agoWell, the data did include Bitcoin's first rise above $1000 and subsequent crash (which most people called "a bubble"). If you had bought right before that one "popped", yes - you would have waited a while to be back in positive territory, so that's one time window where you might have lost money compared to the algorithm, but only if you were impatient.
- granitosaurus 9y agoYou and OP have the same mistake - you trade exchange, when you should trade margin. In trading exchange bots will lose in unregulated market. Only the best bots can benefit where insider information is a common thing. In margin trading however what you do is extend your overal capital, i.e. by having 10k usd you can make profits of holding 10k and trading 100k (at 10x margin). However of course margin is more dangerous but nevertheless you'll most likely end up with positive in the long run.
- adjkant 9y agoDepending 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.
- dperfect 9y agoYes - 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.
- AznHisoka 9y agoReduce risk but also involve more time and energy.
- adjkant 9y agoNot really for an automatic trading algorithm. Write once, use for quite a while. Say a week of work (40 hours) for returns say 1/10th of holding is still quite worth it. Both of those numbers are quite conservative.
- thisisit 9y agoNot 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.
- dperfect 9y agoThanks. The conclusions may be obvious to experts in algo trading (and I heard similar things about the problems of TA for stock trading prior to doing this), but it was educational for me to go through the exercise because (1) it confirmed to me that the crypto markets behave similar to other markets, and (2) it helped me understand exactly where and how a technical indicator like MACD falls short for making trade decisions. Before trying it myself, I was somewhat skeptical when reading about how these indicators don't work well. The overlays on charts always looked like good buy/sell indicators, so I didn't really understand why they couldn't make for a good algorithm. Only after trying it myself did I gain insight as to why they don't actually work so well. I guess it's better to learn the hard way than to learn the hard-and-painful way with real money ;)
- jonkiddy 9y agoIt isn't clear to me why technical indicators aren't viable.
- ValentineC 9y ago> Only after trying it myself did I gain insight as to why they don't actually work so well. Would you care to elaborate on which indicators you tried, and what happened?
- dperfect 9y agoFrom my experience with MACD specifically, it basically came down to the fact that with longer periods (or less sensitive thresholds), you lose out on most of a price swing by the time your trigger fires, and with shorter periods (or more sensitive thresholds), you end up making a lot of trades that don't move the needle (can also rack up significant fees if you aren't careful). You can find something reasonable in the middle, but by doing so, you're decreasing both risk and potential returns. There are at least two other important considerations apart from the indicator itself: how to actually execute effectively with limited funds (when your trigger fires, do you trade everything you can, only a certain percentage, or some variable amount based on technical factors? - that's an entirely separate algorithmic rabbit hole); and even if you do find a good algorithm and it performs great in backtesting historical data, it's almost always harder to achieve the same results in real market conditions (it's difficult to simulate the spread and dynamics of limited market depth).
- agumonkey 9y agoI find this an impressive fit, did you come up with it on the spot or did you read about strategy simulation somewhere else ?