Skip to content

Knowledge library

Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.

Quant Q&A
20,364 documents
SuperMind
12,226 documents
OKX Learn
8,431 documents
Strategy library
7,910 documents
MQL5 code base
7,090 documents
BigQuant
3,481 documents
Bitget Academy
3,298 documents
MQL5 articles
3,012 documents
TradingView scripts
1,976 documents
ProRealCode
1,507 documents
Deribit Insights
1,232 documents
Machine Learning for Trading
1,124 documents
arXiv papers
1,033 documents
Amberdata research
766 documents
FMZ forum
682 documents
FMZ digest
662 documents
vn.py community
560 documents
QuantInsti blog
511 documents
Galaxy Research
340 documents
QuantStart
246 documents
Stratmill research code
219 documents
Robot Wealth
195 documents
NautilusTrader
191 documents
Hummingbot docs
181 documents
Paradigm research
175 documents
Lumibot
164 documents
Kraken Learn
163 documents
Quant course library
157 documents
OctoBot
152 documents
Cryptohopper blog
144 documents
Systematic trading blog (Rob Carver)
132 documents
Qlib
116 documents
TqSdk
86 documents
Quantpedia
86 documents
Hyperliquid docs
79 documents
Freqtrade
68 documents
Hudson & Thames
62 documents
Awesome Systematic Trading
61 documents
backtrader
54 documents
vn.py
50 documents
Binance API docs
45 documents
Quantopian lectures
45 documents
FMZ guides
38 documents
pysystemtrade
34 documents
Freqtrade docs
32 documents
quant-trading
31 documents
FinRL
28 documents
Zipline
22 documents
FMZ live strategies
21 documents
Jesse
17 documents
pyfolio
16 documents
Alphalens
14 documents
WonderTrader
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

124 documents

Machine Learning for Trading

This notebook clusters monthly macroeconomic indicators to describe market conditions independently of equity returns. It aligns FRED series to month-end observations, standardizes unemployment, the federal funds rate, the yield-curve spread, and…

Machine learningStatisticsVolatilityUS markets
Machine Learning for Trading

This notebook adapts Diffusion-TS to generate synthetic daily ETF return sequences. Its denoiser predicts the original series and decomposes that prediction into a polynomial trend, selected Fourier components, and a residual. A combined time-domain and…

Machine learningVolatilityStatisticsMulti-asset
Machine Learning for Trading

This notebook connects position sizing with analysis of maximum adverse and favorable excursions. It demonstrates fixed-fractional sizing, where shares are determined by a per-trade risk budget and entry-to-stop distance, subject to a concentration cap. It…

Position sizingRisk managementVolatilityBacktesting
Machine Learning for Trading

The document derives European call and put prices under Black-Scholes, checks their relationship through put-call parity, and computes implied volatility by numerically solving for the volatility that matches an observed option price. It also defines Delta,…

OptionsDerivatives pricingVolatilityRisk management
Machine Learning for Trading

This feature-engineering module prepares daily price data for systematic macro portfolio models. It creates horizon returns scaled by estimated volatility, several multi-scale MACD signals, and rolling z-scores of log prices. The return horizons can use a…

Multi-assetMomentumTrend followingVolatility
Machine Learning for Trading

This tutorial surveys features built from asset price and volume histories, including returns across horizons, trend and reversal measures, several volatility estimators, volatility regimes, liquidity, tail risk, and cross-sectional normalization. It…

Technical indicatorsMomentumVolatilityMachine learning
Machine Learning for Trading

This notebook explains three ways to turn minute-level NASDAQ-100 data into model-based features: a rolling HAR regression for variance forecasts and forecast errors, a Fourier transform for recent volume patterns, and depth-two path signatures for the order…

EquitiesVolatilityMarket microstructureStatistics
Machine Learning for Trading

This module estimates parameters for simulated crypto markets used in reinforcement-learning environments. It loads hourly perpetual-market data for a selected symbol, computes close-to-close log returns, and fits a GARCH(1,1) volatility model. If the…

CryptoPerpetual futuresVolatilityMarket microstructure
Machine Learning for Trading

This document describes a Gymnasium environment for training an agent to liquidate a position over a fixed horizon. The observation combines remaining inventory and time with spread, market depth, volatility, and a normal or stressed regime. A continuous…

Machine learningExecutionMarket microstructureVolatility
Machine Learning for Trading

This notebook separates continuous price variation from discrete jumps in intraday equity returns. It estimates daily realized variance from squared log returns and uses bipower variation as a jump-robust estimate of the continuous component; their…

EquitiesVolatilityStatisticsMarket microstructure
Machine Learning for Trading

This chapter surveys ways to turn fitted statistical procedures into features for trading models. It covers diagnostics and stationarity, structural breaks, fractional differencing, Kalman filtering, spectral and path-signature methods, ARIMA and GARCH…

StatisticsVolatilityMachine learningRisk management
Machine Learning for Trading

This configuration specifies a historical macroeconomic dataset from FRED for regime filtering and cross-asset analysis. It organizes series by daily, weekly, monthly, and quarterly frequency, including Treasury yields, the federal funds rate, the VIX, labor…

Multi-assetFixed incomeVolatilityStatistics
Machine Learning for Trading

This notebook uses maximum favorable excursion (MFE) and maximum adverse excursion (MAE) to ground triple-barrier label widths in observed price paths. For a position entered at a bar’s close, it measures the best favorable and worst adverse movement over a…

EquitiesFuturesCryptoVolatility
Machine Learning for Trading

The document explains how uncertainty from a model can provide information beyond its point estimate. It contrasts GARCH, which defines volatility from past returns, with a stochastic volatility model that treats volatility as a latent autoregressive process…

VolatilityStatisticsMachine learningRisk management
Machine Learning for Trading

This notebook explains how to turn fitted GJR-GARCH and hidden Markov models into trading features while controlling look-ahead bias. GJR-GARCH estimates conditional volatility and captures the greater impact of negative return shocks; a two-state Gaussian…

CryptoPerpetual futuresVolatilityMachine learning
Machine Learning for Trading

This notebook presents a workflow for deciding how financial time series should be modelled. It begins with plots of SPY prices and returns, VIX levels, and the return distribution to identify drifting levels, clustered moves, and heavy tails. It then…

StatisticsVolatilityTechnical indicatorsEquities
Machine Learning for Trading

This ETF feature study builds three model-derived inputs: a hidden Markov model (HMM) that estimates market regime, fractionally differenced prices for reference funds, and per-ETF GARCH(1,1) conditional volatility. It emphasizes that avoiding look-ahead…

EquitiesVolatilityMachine learningStatistics
Machine Learning for Trading

This notebook compares DQN, PPO, and A2C in a shared simulated trading environment calibrated to hourly Bitcoin perpetual-futures returns. A GARCH(1,1) model supplies volatility clustering, while the environment charges for position changes and applies an…

Machine learningCryptoPerpetual futuresVolatility
Machine Learning for Trading

This notebook compares ways to exit long ETF trades: fixed profit targets and stops, trailing stops, ATR-scaled barriers, machine-learning signals, and combinations. It builds indicators and trade simulations, then summarizes trade returns, win rates,…

EquitiesRisk managementPosition sizingVolatility
Machine Learning for Trading

This notebook explains how to inspect a shipped panel of economic series from FRED and interpret its calendar-day grid, metadata, and derived columns. Because the panel has been flattened onto a daily calendar, row counts conceal the source release…

Multi-assetFixed incomeVolatilityStatistics
Machine Learning for Trading

This notebook treats ARIMA forecasts as input columns for later models rather than as standalone predictions. It fits models to ETF returns, uses stationarity checks and autocorrelation diagnostics to propose orders, and compares candidate orders with an…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

The document explains two ways to estimate bid-ask spreads when only daily OHLCV data is available. Corwin-Schultz compares high-low ranges over adjacent one-day and two-day intervals, using the different behavior of volatility and spread to separate them;…

Market microstructureStatisticsExecutionVolatility
Machine Learning for Trading

This notebook presents a workflow for characterizing market series before modeling. It begins with plots of SPY prices and returns, VIX levels, and the return distribution to identify trends, volatility clustering, and heavy tails. It then explains how to…

EquitiesStatisticsVolatilityRisk management
Machine Learning for Trading

This notebook uses SPY daily returns to explain frequency-domain analysis and its limits as a source of trading features. A wavelet decomposition separates variation into bands at successively slower time scales, while spectral estimates describe how return…

EquitiesStatisticsVolatilityTechnical indicators