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

742 documents

Machine Learning for Trading

This notebook compares equal-weight, positive-score-weighted, and conformal-width-weighted allocations for top-ranked ETFs and CME futures. It estimates entity-specific split-conformal interval widths from residuals in earlier validation folds, excluding…

EquitiesFuturesPosition sizingRisk management
Machine Learning for Trading

This document presents a supervised autoencoder as a control for conditional latent-factor models. It maps firm characteristics directly to forward returns while compressing 57 inputs through a narrow bottleneck. Comparing it with a conditional autoencoder…

EquitiesMachine learningFactor investingStatistics
Machine Learning for Trading

This notebook explains how stock splits and cash dividends disrupt raw historical price series and distort calculated returns. It demonstrates backward adjustment, in which historical prices are rescaled for subsequent corporate actions, and applies the…

EquitiesUS marketsBacktestingStatistics
Machine Learning for Trading

This NASDAQ-100 study examines how transaction costs affect a frequently rebalanced equity strategy. It separates two possible responses to costs: restricting the traded universe to more liquid, lower-cost names, and reducing rebalance frequency. Keeping…

EquitiesUS marketsExecutionMarket microstructure
Machine Learning for Trading

This experiment combines validation predictions from a gradient-boosted tree model, a tabular neural network, and a latent-factor model for monthly ETF ranking. It first standardizes predictions cross-sectionally with z-scores, then averages them. The…

Multi-assetMachine learningStatisticsBacktesting
Machine Learning for Trading

This document presents shared methods for generating fitted-model features without using future observations. For hidden Markov models, it distinguishes filtered state probabilities, based on observations up to the current time, from smoothed probabilities…

Machine learningVolatilityStatisticsBacktesting
Machine Learning for Trading

This document describes a walk-forward method for turning prediction residuals into per-entity uncertainty widths used to size positions. At each decision time, calibration uses residuals that have had time to resolve, with a lag based on the prediction…

Position sizingRisk managementStatisticsBacktesting
Machine Learning for Trading

This case study selects one configuration from a frozen pool of crypto perpetual futures strategies spanning multiple return and direction labels, portfolio sizing methods, and risk overlays. It chooses the highest validation Sharpe, then examines…

CryptoPerpetual futuresBacktestingStatistics
Machine Learning for Trading

This notebook explains how to evaluate probability forecasts and govern a forecasting pipeline. It compares Brier and log scores, expected calibration error, and sharpness; shows how reliability diagrams reveal where forecasts are over- or under-confident;…

StatisticsMachine learningRisk managementBacktesting
Machine Learning for Trading

This tutorial turns ETF cross-sectional signals into long-only, equal-weight top-ten portfolios and compares Ridge regression and logistic classification with momentum and equal-weight baselines. Models are fitted on walk-forward training windows, with a…

EquitiesBacktestingExecutionPortfolio construction
Machine Learning for Trading

This study tests whether the poor fit of a linear model to monthly US stock returns comes from its squared-error objective. It holds the unwinsorized forward-return target, features, and walk-forward folds fixed while comparing boosted tree models trained…

EquitiesUS marketsMachine learningStatistics
Machine Learning for Trading

This notebook trains a Proximal Policy Optimization agent to liquidate a fixed order over a set horizon. It compares the learned pacing policy with TWAP and an Almgren–Chriss schedule, measuring implementation shortfall and examining when each strategy…

CryptoPerpetual futuresExecutionMachine learning
Machine Learning for Trading

This notebook presents the Rademacher Anti-Serum (RAS) protocol as a way to adjust performance estimates for selecting from a finite class of strategies or signals. Empirical Rademacher complexity estimates how well the candidate performance matrix can align…

StatisticsBacktestingRisk managementMachine learning
Machine Learning for Trading

This notebook introduces NLinear as a baseline for predicting stock returns from ordered feature windows. Each example contains 60 consecutive sessions for one stock. For every feature, the model subtracts its latest value, maps the resulting history to a…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook fits TabM neural models to an S&P 500 options short-straddle return target and compares three model capacities on the same feature panel used by linear and boosting approaches. TabM shares a neural backbone across ensemble members, while…

OptionsEquitiesMachine learningBacktesting
Machine Learning for Trading

This notebook evaluates position-level controls for an S&P 500 equity-and-options allocation, comparing fixed stop losses, trailing stops, and time exits with each strategy's own no-overlay baseline. It selects an eligible strategy lineage using validation…

EquitiesOptionsRisk managementBacktesting
Machine Learning for Trading

This document explains how TSMixer processes a stock’s recent feature history as a sessions-by-features matrix. Its blocks mix information down feature columns across time, then across features within each session. Stacking blocks lets those operations…

EquitiesMachine learningMomentumBacktesting
Machine Learning for Trading

This notebook uses registered walk-forward GBM predictions for ETFs and CME futures to compare equal weighting, inverse conformal-width weighting, and weighting proportional to positive prediction scores. It calibrates entity-specific Mondrian…

EquitiesFuturesRisk managementPosition sizing
Machine Learning for Trading

This notebook compares zero-shot Chronos and TinyTimeMixer forecasts with an LSTM and a penalized linear model on an ETF panel. Every model receives the same univariate historical context, but the pretrained models forecast that context series rather than…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook evaluates whether option-market measures can rank future returns across stocks. It fits declared linear models on option-derived features, using walk-forward validation, and compares penalty strengths for ridge, lasso, and elastic net. The…

OptionsEquitiesVolatilityMachine learning
Machine Learning for Trading

This study asks whether option-market quantities can rank future stock returns. Its features include implied volatility across maturities, put-call skew, term-structure slope, and the variance risk premium. Because many measures are represented in several…

OptionsEquitiesVolatilityMachine learning
Machine Learning for Trading

This document develops a daily feature panel for ranking twenty currency pairs at the New York 5 PM close. It distinguishes rankable signals, such as standardized multi-horizon returns and channel position, from market-state measures such as volatility,…

ForexMean reversionMomentumVolatility
Machine Learning for Trading

This tutorial constructs a continuous futures series from individual ES contracts. It identifies the front month using trading volume, with a monotonic roll constraint, and compares volume-based switching with calendar-based timing. It explains why outright…

FuturesBacktestingStatisticsExecution
Machine Learning for Trading

This tutorial builds a monthly ETF rotation simulator using a trailing risk-adjusted momentum ranking and a Treasury yield-curve regime filter. At each month-end, the rule ranks ten funds using their recent price history; risk-on months hold the top three…

BacktestingMomentumPortfolio constructionExecution