Show HN: I discovered a trading algorithm that returns ~24.85% annually
1–10 of 134 posts
Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#2## The Algorithm
This algorithm is really simple.
1. On day `n`, determine which ETF gave the highest return
2. On day `n+1`, short sell the previous day's highest performing ETF at market open and close your short position at market close.
Because this algorithm operates on Vanguard's 11 Sector ETFs, it is resilient against the volatility of individual stocks.
### Caution
Hindsight is 20/20 and because this is a backdating algorithm, similar results are not guaranteed in the future. Use at your own risk.
Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#3Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#4Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#5This is mean reversion, right? Essentially fading market volatility. I recall an article on Bloomberg about a quant fund using VIX ETNs to implement something similar. Gradually adding short positions as volatility rises. Knowing it will dissipate once turmoil subsides. My recommendation: try entering a trading contest on Alpaca ;) https://alpaca.markets/data
The way I discovered this algorithm was initially I wanted to buy the previous day's best performing sector ETF, with a hypothesis that the momentum would continue. But I learned that it actually ended up losing money.
So I decided to inverse the algorithm. There are still a few optimizations I can test out, e.g. Buying the previous day's worst performing sector.
Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#6Now add trading commissions :-)
Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#7You massaged an algorithm until it produced a 24.85% annual return training on historical data.
Come back when you are ready to claim you have made ~24.85% per year with an algorithm you created 5-10 years ago.
Deny it, Downvote it: Destiny still arrives.
Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#8Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#9Re: Show HN: I discovered a trading algorithm that returns ~24.85% annually
#10What software do you use to implement algorithms like this? Do you have to write your own python/other scripts and interact with trading API's for whatever service you use, or are there nice pre-written open source trading algorithms that make building stuff like this easier.