A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:
Time Series Momentum
This is how: 🧵
1. What Is Time Series Momentum?
Time Series Momentum (TSMOM) bets on trends continuing. If a stock’s up, buy more; if down, sell. A 2011 study of 58 assets proved it works!
2. The Data Behind the Strategy
The TSMOM paper analyzed equities, currencies & more. T-stats showed consistent profits across 1-month lookbacks!
3. Coding TSMOM with Python
Code TSMOM in Python:
- Use yfinance to get data
- Then momentum = price[-1] / price[-20] - 1.
Positive? Buy
Negative? Sell
4. Real-World Performance
TSMOM outperforms passive investing.
We're using a modified version of TSMOM in our Hedge Fund.
One backtest shows 3500% return vs 450% S&P500.
We are using TSMOM in our hedge fund.
And we'd like to share exactly how it works.
Want to see how we built our hedge fund in Python?
Then join us for our free training:
🚨 FREE Python Algo Trading Workshop: Learn how we built our hedge fund
• QSConnect: Build your quant research database
• QSResearch: Research and run machine learning strategies
• Omega: Automate trade execution with Python
A trading bot is a software program that automates buying and selling financial assets like stocks and cryptocurrencies based on pre-defined strategies and rules.
These automated systems can manage portfolios without human intervention, operating 24/7.
12 Python libraries for free market data everyone should know:
yfinance
Data for stocks (historic, intraday, fundamental), FX, crypto, and options. Uses Yahoo Finance so any data available through Yahoo is available through yfinance.
pandas-datareader used to be part of the pandas project. Now an independent project. Includes data for stocks, FX, economic indicators, Fama-French factors, and many others.