Google "algorithmic trading" and get 88,300,000 results.
Google "python tutorial" and get 717,000,000 results.
Utterly exhausting.
Impossible to navigate.
So I took 805,300,000 search results, added in 22+ years of experience, and had a baby.
This is what I named it:
Getting Started With Python for Quant Finance.
Get up and running with Python fast:
• Copy-paste code to apply immediately
• Help to debug code and ask questions
• Practical experience you can use now
• Get the Python Quant Stack installed
Here's what's packed inside:
On top of $4,500 in BONUSES, you'll:
• Install the Python quant stack
• Get the Python basics right
• Assess trading strategies
• Compete in algo trading
• Backtest strategies
• Automate trades
• Engineer alpha
And here are some of the Notebooks:
The details of the live sessions, notebooks, and schedule are here:
When you're ready, use a backtesting framework to analyze the risk and performance metrics of your strategy.
This Notebook shows you how to backtest a strategy.
Price options with the Edgeworth model
Pricing models assume stock returns are normally distributed. They're not. The Edgeworth model introduces skew and kurtosis.
This Notebook shows you how to price an option with the Edgeworth model.
Use GARCH to forecast volatility
Quants use volatility forecasting to find market mispricings. Most volatility forecasts start with GARCH.
This Notebook shows you how you find market mispricings.
Python basics tutorial and walkthrough
If you're just getting started with Python, you need a good walkthrough of the basics.
This Notebook shows you how to get started with Python.
pandas tutorial and walkthrough
Working with data starts with pandas. It's the standard tool for data manipulation in Python. It was started by a hedge fund.
This Notebook walks through the most important parts of pandas.
SciPy tutorial and walkthrough
The statistical functions like probability distributions that underpin quant finance are in SciPy.
This Notebook shows you what you need to use SciPy for quant finance.
yfinance tutorial and walkthrough
To build trading algorithims, you need stock and options data. yfinance is your gateway to free market data.
This Notebook walks you through the basics of using yfinance.
Theta Data tutorial and walkthrough
Historic and real time options data is expensive and hard to find. Theta Data gives you an API to access historic and real time options data.
This Notebook shows you how to use the API.
Riskfolio-Lib tutorial and walkthrough
Teams of Ph.D.s spent decades refining the portfolio optimization. Riskfolio-Lib wraps up dozens of portfolio and risk optimizations in one library.
This Notebook walks you through an example of how to use it.
QuantStats tutorial and walkthrough
Don't rebuild the statistical functions you need for risk and performance reporting. QuantStats gives you a library of common risk and performance metrics ready to use.
This Notebook outlines common use cases.
Connect to Interactive Brokers with Python
The first step in automatic execution is connecting to your broker.
This Notebook gives you the code to make the connection.
Risk management with value at risk
Hedge funds and trading firms value at risk to capture probability of losing money. You can use it too.
This Notebook shows you how to build your own value at risk measure.
Risk management with drawdown analysis
Drawdown is an important factor to consider when analyzing trading strategies. It's used to help undertand risk of going broke.
This Notebook calculates drawdown for a stock or portfolio.
Simulate stock prices with Geometric Brownian Motion
The foundation of all derivative pricing is asset price simulation. One of the most common methods is Geometric Brownian Motion.
This Notebook shows you how to simulate stock prices.
Simple order execution on Interactive Brokers with Python
Once you connect, you need to test simple trade execution.
This Notebook shows you how to send simple buy orders to Interactive Brokers.
Advanced algo trading on Interactive Brokers with Python
Once you get the connection set and a trade done, add complexity to your trading algorithms.
This Notebook demonstrates an advanced trading strategy executing on Interactive Brokers.
Store real time market data from Interactive Brokers with Python
All quants need data. The free sources are ok, but if you need something more complex, save it from Interactive Brokers.
This Notebook shows you how to save market data directly from the market.
10 ways to use machine learning in trading (with the Python library):
Reinforcement Learning
Optimizing portfolio management using rewards.
Uses agent-based rewards for dynamic portfolio management. It learns to balance risk and reward by trading different stocks over time.
Use: Stable Baselines3's A2C model
Support Vector Machines
Predicts future trends from patterns.
Uses historical market data for pattern recognition, predicting trends in a specific stock's price based on various indicators such as price and volume.
The genius mathematician who returned 20%+ over 30 years.
He traded for 19 years, with his worst loss being 1%.
He beat Vegas dealers at blackjack.
His top 7 trading strategies (and how they work):
1. Statistical Arbitrage
He used mathematical models to identify price discrepancies between different markets or securities, buying undervalued assets and selling overvalued ones.
2. Quantitative Analysis
Thorp pioneered the use of quantitative methods in financial markets, developing advanced algorithms to analyze market data and identify profitable trades.
1. The compounding effect of doing the same thing over and over for a long period of time is a force of nature. Learn how to compound.
2. Learn how to be comfortable with being uncomfortable. Wealth doesn't accrue to people solving easy problems.
3. As soon as you hit your 30s, you’ll understand. Your 20s actually suck. If you feel like it sucks right now, guess what? It’s supposed to. It gets better.
4. It is very hard to change the world when you are broke. So don't apologize for wanting wealth.
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.