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
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

87 documents

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

This case study compares alternative position sizing methods for CME futures against an equal weight baseline. It explains how inverse volatility sizing uses each contract’s own volatility, while covariance based methods also account for relationships…

FuturesPosition sizingPortfolio constructionRisk management
Machine Learning for Trading

This notebook explains how to build a continuous futures price history from individual expiring contracts. It identifies front-month contracts using trading volume, applies a no-rollback constraint to avoid spurious switches, and compares calendar-based roll…

FuturesBacktestingExecutionMarket microstructure
Machine Learning for Trading

This proof script exercises a reduced CME futures research workflow from model predictions through portfolio weights and backtesting. It checks that predictions cover exactly the expected product, timestamp, and fold keys, that fitted states and prediction…

FuturesBacktestingExecutionRisk management
Machine Learning for Trading

This notebook establishes a signal-stage baseline for evaluating model predictions on CME futures. At each weekly decision, it ranks products by predicted return, buys the top group, shorts the bottom group, and gives each position equal weight. It varies…

FuturesBacktestingPortfolio constructionExecution
Machine Learning for Trading

The document sets out how to construct forward-return labels for a cross-sectional futures strategy that ranks products by term structure. It distinguishes roll-adjusted prices, which are appropriate for returns across contract rolls, from raw settlement…

FuturesCommoditiesCarryBacktesting
Machine Learning for Trading

The document describes three model-based features built from futures carry: an ARIMA forecast of next-session carry, rolling Fourier measures of selected cycle lengths, and a two-state hidden Markov model that infers the market regime from average carry. Its…

FuturesCarryMachine learningStatistics
Machine Learning for Trading

This document explains a validation baseline for model predictions on CME futures. At each weekly decision, products are ranked by predicted return; the top group is held long and the bottom group short, with equal weight within each leg. The number of…

FuturesBacktestingPortfolio constructionRisk management
Machine Learning for Trading

This analysis compares registered double machine learning treatment effects from nine trading case studies. It loads current results from each study’s registry, checks registry integrity and duplicate labels, and makes coverage explicit. Effects and…

StatisticsMachine learningBacktestingEquities
Machine Learning for Trading

This notebook introduces futures backtesting mechanics through a long-short momentum example across several asset classes. It explains how contract specifications convert price movements into dollar profit and loss through multipliers, and how notional…

FuturesMomentumBacktestingPosition sizing
Machine Learning for Trading

This document describes a dataset and workflow for studying cryptocurrency perpetual futures alongside their premium index. It outlines hourly OHLCV observations and eight-hour premium readings across a configured universe, with download, loading, filtering,…

CryptoPerpetual futuresFuturesArbitrage
Machine Learning for Trading

This notebook assesses how transaction costs affect a fixed CME futures configuration selected elsewhere in the research process. It applies an all-in cost grid, splitting each level evenly between commission and slippage, and carries the selected risk…

FuturesBacktestingExecutionRisk management
Machine Learning for Trading

This document describes a CME futures dataset with hourly and daily bars, continuous front-month contracts, and two deferred tenors across several product groups. It explains the dataset’s coverage, fields, loading options, and related weekly CFTC…

FuturesCarryCommoditiesMarket microstructure
Machine Learning for Trading

The document introduces latent factors as shared return drivers inferred from co-movement across futures rather than supplied as named predictors. It compares two approaches fitted within each training fold. Principal component analysis (PCA) finds linear…

FuturesFactor investingMachine learningPortfolio construction
Machine Learning for Trading

This notebook applies a previously selected CME futures configuration to holdout predictions, using the established allocator, rebalance schedule, concentration rules, and transaction cost assumptions. Its central methodological point is to freeze those…

FuturesBacktestingRisk managementStatistics
Machine Learning for Trading

This notebook describes how to select a CME futures case-study configuration from registered validation backtests. It pools candidates across signal, allocation, and risk-management stages, then chooses the configuration with the strongest validation Sharpe.…

FuturesBacktestingStatisticsRisk management
Machine Learning for Trading

This notebook reports parity comparisons between Backtrader, Zipline Reloaded, and an internal trading framework on selected real case-study strategies. It includes ETF and US equity-panel comparisons for both external engines, plus CME futures and…

BacktestingExecutionMarket microstructureEquities
Machine Learning for Trading

This case study evaluates TabM, a parameter-efficient neural ensemble, on the same point-in-time CME futures feature rows and walk-forward folds used by other model families. It motivates TabM as a way to average across model variation while sharing most…

FuturesMachine learningBacktestingRisk management
Machine Learning for Trading

This notebook builds a reusable diagnostic survey for financial datasets before preprocessing or feature engineering. It checks time-index dtype, null timestamps, ordering and uniqueness; finds exact and key-based duplicates; measures missing values by…

StatisticsEquitiesCryptoFutures
Machine Learning for Trading

This feature evaluation screens financial and model-derived candidates against forward returns for CME futures. For each feature, it checks data coverage and staleness, measures daily cross-sectional rank correlation between feature values and forward…

FuturesStatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook studies how regularization affects a CME futures model built from correlated feature families, including carry, rolling Sharpe, momentum, and volatility measures. It compares Ridge, Lasso, and ElasticNet: Ridge shrinks coefficients while…

FuturesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook applies configured stop-loss, trailing-stop, and time-exit rules to the strongest validation-ranked signal or allocation strategy for each futures return horizon. Each rule is assessed on its own parent strategy, with parameters fixed in…

FuturesCarryMean reversionRisk management
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 notebook evaluates LSTM and NLinear sequence models for futures forecasting. Unlike models that use one feature row per decision, sequence models consume ordered windows of past observations, potentially learning patterns that fixed summaries miss.…

FuturesMachine learningBacktestingRisk management