Quant Science Profile picture
Aug 9, 2025 9 tweets 3 min read Read on X
A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:

Time Series Momentum

This is how: 🧵 Image
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! Image
2. The Data Behind the Strategy

The TSMOM paper analyzed equities, currencies & more. T-stats showed consistent profits across 1-month lookbacks! Image
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 Image
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. Image
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

👉 Get the system: learn.quantscience.io/become-a-pro-q…Image
That's a wrap! Over the next 24 days, I'm sharing my top 24 algorithmic trading concepts to help you get started.

If you enjoyed this thread:

1. Follow me @quantscience_ for more of these
2. RT the tweet below to share this thread with your audience
P.S. - Want to learn Algorithmic Trading Strategies that actually work?

I'm hosting a live workshop. Join here: learn.quantscience.io/qs-register

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Quant Science

Quant Science Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @quantscience_

Apr 4
Algorithmic trading is the domain of secretive Hedge Funds.

Python unlocked these secrets for everyone (even Goldman Sachs has an open-source tool).

Here are 17 Python libraries that open the hedge fund black box (📚bookmark this for later): Image
1. OpenBB Terminal - Terminal for investment research for everyone. github.com/OpenBB-finance…

2. PyQL - QuantLib's Python port. github.com/enthought/pyql

3. vollib - vollib is a Python library for calculating option prices, implied volatility, and greeks. github.com/vollib/vollib
4. QuantPy - A framework for quantitative finance in Python. github.com/jsmidt/QuantPy

5. Finance-Python - Python tools for Finance. github.com/alpha-miner/Fi…

6. ffn - A financial function library for Python. github.com/pmorissette/ffn
Read 10 tweets
Apr 4
Top 10 Algorithmic Trading Strategies (and how they work) 🧵 Image
1. Pairs Trading

Trades two correlated instruments simultaneously. It goes long on one asset and short on the other to profit from deviations from their historical relationship, expecting the correlation to eventually resume.
2. Scalping

Involves making numerous small trades to capture minimal price differences over a short time. For example, tape reading is used to analyze order flow and timing, enabling scalpers to profit from very brief price fluctuations.
Read 15 tweets
Apr 3
Python is wild for finance.

You can get FinViz in Python for free (this is how):

(a thread) Image
1. What is finvizfinance?

finvizfinance is a package that collects financial information from FinViz website. It has:

- Stock charts, fundamental & technical information
- Insider information
- Stock news
- Forex charts
- Crypto charts

Here's some examples of what you can do: Image
2. Stock Quotes, Charts & Fundamentals

Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock. Image
Read 9 tweets
Mar 31
🚨BREAKING: Microsoft open-sourced an AI Quant investment platform in Python

This is what you need to know:

(a thread) Image
1. What is Qlib?

Qlib is an open-source, AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing production. Image
2. How it works

Qlib provides an automated quant research workflow that builds the dataset, trains models, backtests, and evaluates the results. Image
Read 8 tweets
Mar 27
12 Python libraries for free market data everyone should know: Image
yfinance

Data for stocks (historic, intraday, fundamental), FX, crypto, and options. Uses Yahoo Finance so any data available through Yahoo is available through yfinance.

github.com/ranaroussi/yfi…
pandas-datareader

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.

pandas-datareader.readthedocs.io/en/latest/
Read 17 tweets
Mar 26
A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:

Time Series Momentum

This is how: 🧵 Image
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! Image
2. The Data Behind the Strategy

The TSMOM paper analyzed equities, currencies & more. T-stats showed consistent profits across 1-month lookbacks! Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(