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
Quantpedia
86 documents
TqSdk
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
Quantopian lectures
45 documents
Binance API docs
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

1,124 documents

Machine Learning for Trading

This notebook explains how to rebuild a single-symbol NASDAQ limit order book from message-by-order data. It processes adds, executions, cancellations, deletes, and replacements while maintaining the remaining size of each live order. Replacements require…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This source module provides loaders for U.S. equity prices, index data, options, market microstructure, fundamentals, and institutional holdings. Its most substantive methodological detail concerns resampling intraday trade data: open, high, low, close, and…

EquitiesMarket microstructureExecutionUS markets
Machine Learning for Trading

This notebook explains how to reconstruct a model experiment catalog from a case-study registry and compare its contents with MLflow. It follows experiments through training runs, prediction sets, and backtest runs, linking each stage to the preceding one.…

Machine learningBacktestingStatisticsRisk management
Machine Learning for Trading

This exploratory analysis profiles hourly OHLCV for crypto perpetual contracts alongside an eight-hour premium index. It examines symbol and date coverage, changing contract membership, premium units and distribution, OHLC integrity, missing values, and…

CryptoPerpetual futuresMarket microstructureStatistics
Machine Learning for Trading

This notebook demonstrates a shared OHLCV interface across Yahoo Finance, a long-history U.S. equity archive, and FRED macroeconomic series. It builds an ETF universe for a later rotation case study, shows how to combine historical and current sources, and…

Multi-assetEquitiesUS marketsExecution
Machine Learning for Trading

This case study builds features for researching whether at-the-money implied variance exceeds subsequent realized variance for S&P 500 names, and whether the difference varies across securities. It combines straddle quotes with underlying prices to measure…

OptionsVolatilityEquitiesBacktesting
Machine Learning for Trading

This notebook compares ordinary least squares with Ridge, LASSO, and Elastic Net for predicting forward returns across an ETF universe. All models use the same walk-forward folds, with a purge gap matched to the label horizon, so differences can be…

Machine learningEquitiesStatisticsBacktesting
Machine Learning for Trading

This notebook develops a unit-aware framework for estimating trading costs across equities, ETFs, futures, foreign exchange, and crypto perpetuals. It first distinguishes traded volume from activity measures that cannot be converted into dollar turnover,…

ExecutionMarket microstructureRisk managementFutures
Machine Learning for Trading

This chapter outlines how to build time-consistent fundamentals and alternative-data research across equities, macroeconomic series, futures, crypto, and prediction markets. Its central methods are bitemporal storage and as-of queries, source-aware…

BacktestingStatisticsMachine learningOn-chain data
Machine Learning for Trading

This notebook builds the long-only, fully invested mean-variance framework for a diversified ETF universe. It constructs feasible portfolios and an efficient frontier, then solves for maximum-Sharpe and minimum-variance weights using estimated returns and…

Multi-assetPortfolio constructionStatisticsRisk management
Machine Learning for Trading

This notebook reprices leading ETF allocation configurations across two cost grids while holding predictions, concentration, and allocation rules fixed. It compares the case study's per-share commission and half-spread model, which reflects how ETF trading…

EquitiesExecutionBacktestingPortfolio construction
Machine Learning for Trading

This notebook measures how execution costs affect the already selected crypto perpetual futures configuration. It holds the model, checkpoint, entry rule, allocation, and risk control fixed, then reruns backtests across a grid of round-trip charges on traded…

CryptoPerpetual futuresExecutionBacktesting
Machine Learning for Trading

This notebook uses principal component analysis on a liquid subset of US stocks to build gross-normalized eigenportfolios and study their role as latent risk factors. It examines explained variance, interprets components through sector ETF correlations,…

EquitiesFactor investingStatisticsRisk management
Machine Learning for Trading

This notebook compares linear models for predicting ETF returns from overlapping price-derived features. Since multiple return horizons and indicator families can encode similar information, ordinary least squares may assign unstable opposing coefficients to…

EquitiesMulti-assetMachine learningStatistics
Machine Learning for Trading

This configuration describes monthly long-short US equity portfolios ranked on firm characteristics. It specifies a complete-case universe with 46 characteristics, month-end decisions, next-open execution, equal weighting within the long and short legs, and…

EquitiesFactor investingMomentumBacktesting
Machine Learning for Trading

This guide maps causal questions to Python libraries and clarifies the distinction between estimating effects under an assumed causal structure and discovering possible structures from data. It introduces double machine learning for adjusted treatment…

Machine learningStatisticsEquitiesCrypto
Machine Learning for Trading

This framework demonstrates data-quality checks on daily US equity OHLCV data. Structural validation tests price relationships, positive prices, nonnegative volume, missing values, duplicate dates, chronological order, stale prices, and extreme returns. The…

EquitiesStatisticsRisk managementUS markets
Machine Learning for Trading

This notebook introduces a stochastic discount factor model for pricing a cross-section of ETFs. Instead of separately estimating fund exposures and factor returns, it trains networks to find a common discount-factor series whose covariation with fund…

Machine learningFactor investingStatisticsEquities
Machine Learning for Trading

This notebook builds a monthly ETF rotation backtest from portfolio returns through to simulated trades. It ranks ten funds using trailing risk-adjusted returns, applies a Treasury yield-curve regime to choose between the leaders and a defensive bond…

BacktestingMomentumExecutionPortfolio construction
Machine Learning for Trading

This notebook applies TabM, a weight-sharing neural ensemble, to a panel of cryptocurrency perpetual-futures features. Its members share a neural backbone but have separate scaling vectors and output layers, combining efficient ensembling with nonlinear…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This notebook reconstructs the prevailing best bid and offer for each AAPL trade during a single March 2020 session, then applies the Lee–Ready method to infer whether buyers or sellers initiated trades. It interleaves quote and trade events in timestamp…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This notebook screens financial and model-derived features for their ability to rank ETFs by subsequent returns. It calculates a date-by-date information coefficient by comparing each feature’s cross-sectional ranks with forward-return ranks, then examines…

EquitiesStatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook builds an auditable report for a long-only Bitcoin strategy that enters and exits using RSI thresholds. It compares gross and net results, then measures performance against a buy-and-hold benchmark run with the same data, warmup, exposure,…

CryptoMean reversionTechnical indicatorsBacktesting
Machine Learning for Trading

This notebook frames a focused test: whether a learned sequence representation of perpetual-funding features improves on hand-built summaries of the premium, the gap between perpetual and spot prices. It compares NLinear, which applies a linear mapping to…

CryptoPerpetual futuresMachine learningBacktesting