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

566 documents

Machine Learning for Trading

This notebook synthesizes registered validation results for five latent-factor estimators—PCA, IPCA, CAE, SDF, and SAE—across nine case studies. It first reports which estimators have results in each panel, then identifies the highest mean daily Spearman…

Factor investingMachine learningStatisticsEquities
Machine Learning for Trading

This notebook applies TabM, a weight-sharing neural ensemble, to a US equities panel represented as one feature row per stock and session. A shared two-layer backbone feeds multiple members, each with its own scaling vector and output layer; averaging their…

EquitiesMachine learningBacktestingStatistics
Machine Learning for Trading

This notebook defines forward-return targets for ranking US stocks and explains how to make their horizons correspond to actual trading sessions. It uses split- and dividend-adjusted prices for returns, but uses the contemporaneous printed close and dollar…

EquitiesMomentumStatisticsBacktesting
Machine Learning for Trading

This pipeline constructs financial features for an ETF deployment workflow from OHLCV prices and a yield curve. It derives returns and risk-adjusted returns across multiple lookback periods, momentum acceleration and volatility ratios, then adds common…

EquitiesMomentumVolatilityTechnical indicators
Machine Learning for Trading

This script gathers institutional holdings from SEC 13F filings in two ways: it can retrieve filings for a curated set of managers or download the SEC’s quarterly bulk files. Both paths normalize holdings into a shared schema, with the bulk path designed for…

EquitiesStatisticsPortfolio construction
Machine Learning for Trading

This notebook applies principal component analysis to a panel of US stock returns to represent broad shared movements with a smaller set of factors. Each factor is a direction of common variation, and each stock’s loading describes its exposure to that…

EquitiesStatisticsMachine learningFactor investing
Machine Learning for Trading

This notebook explains how to extract insider transactions from raw SEC Form 4 XML for quantitative equity research. It uses an XML parser to keep each trade’s code, date, share count, price, and direction attached to its transaction block, while separately…

EquitiesEvent-drivenSentimentStatistics
Machine Learning for Trading

This case study applies causal estimation to ETF momentum and asks whether its effect on forward returns varies with market volatility. It uses a continuous momentum treatment, a 21-day forward-return outcome, volatility and yield-curve controls, and a…

EquitiesUS marketsMomentumMachine learning
Machine Learning for Trading

This notebook introduces NLinear as a simple sequence-model baseline for predicting returns across US equities. Each example uses a window of 60 consecutive sessions for one stock, with features arranged in time order. For each feature, the model subtracts…

EquitiesUS marketsMachine learningBacktesting
Machine Learning for Trading

The document describes a walk-forward study of TabM neural networks predicting monthly returns from firm characteristics. Because the shared training runner fixes the objective to squared error for regression and cross-entropy for classification, the…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

The document presents a workflow connecting standardized market-data loaders, a registry of prebuilt features, and signal diagnostics. Feature computation can be specified by names, parameter dictionaries, or YAML, supporting repeatable pipelines and…

Technical indicatorsMachine learningStatisticsEquities
Machine Learning for Trading

This notebook presents instrumented principal component analysis as a model of cross-sectional returns. Instead of assigning each firm’s characteristics direct return weights, IPCA estimates a shared linear map from characteristics to factor exposures,…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This notebook compares four neural network designs on the same task: predicting the next daily return from a window of past returns, pooled across eight exchange-traded funds. It describes how a dense network, a one-dimensional convolution, an LSTM, and a…

Machine learningBacktestingEquitiesStatistics
Machine Learning for Trading

This feasibility analysis checks whether the data and assumptions can support a weekly strategy that ranks S&P 500 stocks by at-the-money implied volatility and buys the leading shares. Options supply the signal, but positions are held in equities. The…

EquitiesOptionsVolatilityRisk management
Machine Learning for Trading

This notebook evaluates sequence models for ranking S&P 500 stocks using windows of their option-surface and price histories. It pairs a normalized linear model, which has no recurrent memory, with an LSTM whose gates carry information through time. The…

Machine learningEquitiesOptionsBacktesting
Machine Learning for Trading

This notebook demonstrates a unified OHLCV interface across Yahoo Finance, WikiPrices, and FRED, then uses the sources for current ETF data, long-history equities, and macroeconomic series. It outlines a priority-ordered fallback approach for acquisition and…

EquitiesMulti-assetMarket microstructureBacktesting
Machine Learning for Trading

This notebook fits a long short-term memory network to NASDAQ-100 microstructure features to predict forward returns over several minute-scale horizons. Unlike a flattened linear model, an LSTM processes each observation in sequence and learns how much past…

Machine learningMarket microstructureEquitiesBacktesting
Machine Learning for Trading

This capstone notebook compares equal weight, inverse volatility, mean-variance optimization, and hierarchical risk parity using a common signal on a diversified ETF universe. A rolling Ridge model uses momentum, moving-average distance, and volatility…

Portfolio constructionBacktestingEquitiesExecution
Machine Learning for Trading

This notebook builds N-BEATS, a fully connected neural forecasting architecture that processes a whole input window and predicts a future path. Its interpretable variant constrains blocks to express components through polynomial trend and Fourier seasonality…

Machine learningEquitiesBacktestingStatistics
Machine Learning for Trading

This notebook describes reconstructing a NASDAQ limit order book from DataBento market-by-order messages for a single symbol and trading day. It lays out a modular engine that tracks individual order state, aggregates orders into price levels, and maintains…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This notebook examines how rebalancing cadence affects turnover, gross performance, and cost-adjusted results for a top-ranked momentum portfolio of ETFs. It estimates turnover from historical target-weight changes at daily, weekly, biweekly, and monthly…

EquitiesMomentumExecutionBacktesting
Machine Learning for Trading

This notebook compares LightGBM models with a ridge baseline for predicting ETF returns over two horizons. It explains why trees can discover regime-dependent interactions, such as momentum behaving differently under market stress, while greedy splits can be…

EquitiesMachine learningBacktestingStatistics
Machine Learning for Trading

This notebook compares structured graph-style retrieval with embedding-based vector retrieval on institutional holdings from 13F filings. It constructs a point-in-time holdings snapshot at a fixed cutoff, limits the stock universe, and creates questions…

EquitiesMachine learningStatisticsPortfolio construction
Machine Learning for Trading

This notebook demonstrates a workflow for connecting losing trades to the model explanations associated with their decisions. It builds a single-asset SPY feature panel from price and macroeconomic data, trains a LightGBM model on earlier observations, and…

EquitiesMachine learningRisk managementStatistics