Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KibaeKim/SectorTradingAlgorithm
https://github.com/KibaeKim/SectorTradingAlgorithm
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/KibaeKim/SectorTradingAlgorithm
- Owner: KibaeKim
- License: mit
- Created: 2021-06-06T17:03:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T02:51:00.000Z (over 2 years ago)
- Last Synced: 2024-08-01T00:46:27.836Z (3 months ago)
- Language: JavaScript
- Size: 1.17 MB
- Stars: 455
- Watchers: 8
- Forks: 67
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SectorTradingAlgorithm
This is a simple trading algorithm I discovered that operates on the Vanguard sector ETFs. This backdating algorithm provides on average a return of ~0.0878% for each trading day, or ~22.20% annualized return assuming 253 trading days per year.
## 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.