Quant Science Profile picture
Develop profitable trading strategies, build a systematic trading process, and trade your ideas with Python—even if you’ve never done it before.
Apr 27 10 tweets 3 min read
A Bloomberg Terminal costs $30,000 a year.

Here's how to build 90% of it for free.

Wall Street doesn't advertise this. But every function that matters has a free alternative in Python.

Here's the DIY version (with Python): Image ━━━━━━━━━━━━━━━━━
🔹 REAL-TIME PRICES & CHARTS
━━━━━━━━━━━━━━━━━
Bloomberg: GP
Python: yfinance + Plotly

yfinance pulls live and historical price data for any ticker in seconds. Plotly turns it into interactive charts. Add your own indicators, overlays, and alerts. No subscription needed.
Apr 27 8 tweets 3 min read
The secret of hedge funds is revealed in a 41-page PDF:

This paper analyzed 464 stocks that 10X-ed over a 24-year period.

Here are the best factors that drive outperformance: (number 3 is the best 🧵) Image 1. Size Effect

"Small-cap stocks outperform medium and large companies in 11 out of 12 cases"

Smaller stocks tend to perform better, but it's not the only contributor. Image
Apr 20 9 tweets 3 min read
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
Apr 14 9 tweets 3 min read
🚨BREAKING: Python's Newest Algorithmic Trading Tool.

Introducing Nautilus Trader. 100% free.

Here's what it does (and how to get started in under 3 minutes): Image Nautilus Trader is an open-source Python library for production-grade algorithmic trading.

- Fast: made with Rust for blazing speed
- Natively runs with Python
- Risk management
- Backtesting
- Highly extendable
Apr 11 9 tweets 3 min read
How to make your own algorithmic trading system in Python (a complete roadmap): Image Step 1: Learn Python

- Pandas: Data Analysis
- Scikit Learn: Machine Learning
- SQLAlchemy: Databases
Apr 4 10 tweets 6 min read
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
Apr 4 15 tweets 3 min read
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.
Apr 3 9 tweets 3 min read
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
Mar 31 8 tweets 3 min read
🚨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
Mar 27 17 tweets 5 min read
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…
Mar 26 9 tweets 3 min read
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
Mar 18 11 tweets 3 min read
A Bloomberg Terminal costs $30,000 a year.

Here's how to build 90% of it for free.

Wall Street doesn't advertise this. But every function that matters has a free alternative in Python.

Here's the DIY version (with Python): Image ━━━━━━━━━━━━━━━━━
🔹 REAL-TIME PRICES & CHARTS
━━━━━━━━━━━━━━━━━
Bloomberg: GP
Python: yfinance + Plotly

yfinance pulls live and historical price data for any ticker in seconds. Plotly turns it into interactive charts. Add your own indicators, overlays, and alerts. No subscription needed.
Mar 18 9 tweets 3 min read
This strategy has delivered 18% annual returns since 1926.

No black box. No complex ML model.

Just breakouts, trailing stops, and volatility sizing applied to industry portfolios.

Here's how it works (and link to the 37 page PDF): Image ─────────────────
🔹 THE ENTRIES
─────────────────
A long position triggers when an industry breaks above either:
• A Donchian Channel (20-day high, 40-day lower band)
• A Keltner Channel (20-day EMA ± 1.4× ATR, 40-day lower band)

The asymmetric lookback keeps you invested during sustained trends.
No short positions. When nothing is trending, capital sits in T-bills.
Mar 17 9 tweets 3 min read
Most traders skip the math.

Then wonder why their backtests fail in live trading.

You don't need a math degree. But you need the right foundations.

Here's the complete math & stats roadmap for trading: Image ─────────────────
🔹 STATISTICS & PROBABILITY
─────────────────
• Sample Size & Law of Large Numbers — a 10-trade backtest proves nothing. You need hundreds before trusting your edge.
• Expected Value — the only number that actually matters: (Win% × Avg Win) - (Loss% × Avg Loss)
• Standard Deviation — becomes volatility when applied to returns. Every position sizing formula runs through this.
• Correlation — 3 momentum strategies on correlated assets isn't diversification. It's 3x the risk.
• Conditional Probability — your strategy's win rate changes by market regime. Know when it works.
Mar 5 8 tweets 3 min read
🚨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
Mar 3 12 tweets 4 min read
Stock Prediction AI: Using Machine Learning and Deep Learning to predict stock price movements in Python.

The Python code is 100% free on GitHub.

Let's dive in (bookmark this): Image 1. The Python Machine Learning and Deep Learning Libraries:

- mxnet
- gluon
- sklearn
- xgboost Image
Mar 2 12 tweets 3 min read
Stop trading in Excel like it’s 2009.

Start using Python + ChatGPT.

Here's 7 small steps: Image 1. Pick ONE strategy rule (keep it boring)

Start with something simple like moving averages or a 12-1 momentum.

Your goal is execution and learning, not “printing money.”
Feb 28 11 tweets 4 min read
Build an End-to-End Python Algorithmic Trading System (complete roadmap + skills + tools)

Bookmark this. Image 1) Foundations (1–2 weeks)

Learn these:

1. Python basics → data/ML
2. Pandas (data wrangling)
3. Scikit-learn (ML)
4. SQLAlchemy (DB access) Image
Feb 26 16 tweets 3 min read
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.
Feb 26 10 tweets 3 min read
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
Feb 24 16 tweets 3 min read
How to create your own "mini" hedge fund with algorithmic trading and Python

A thread 🧵 Image 1. What is a Hedge Fund

Hedge funds pool money from wealthy individuals or institutions to seek higher, risk-adjusted returns across multiple markets.