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

427 documents

Machine Learning for Trading

This notebook describes an out-of-sample backtest for a selected crypto perpetual funding strategy. It reuses predictions generated from training history that ends before the holdout period, then applies the chosen strategy configuration, including its…

CryptoPerpetual futuresCarryBacktesting
Machine Learning for Trading

This document turns cross-sectional ETF predictions into simulated trades. It distinguishes ranking quality, measured by information coefficient, from realized strategy performance: a top-k portfolio depends on the relative score values, rebalance schedule,…

EquitiesBacktestingPortfolio constructionExecution
Machine Learning for Trading

This notebook explains how to apply four market impact models in a backtest: no impact, linear impact, square-root impact, and a configurable power law. Each model estimates a signed per-share price move based on order direction, quantity, price, and volume.…

ExecutionMarket microstructureBacktestingRisk management
Machine Learning for Trading

This notebook builds a daily feature panel for a long-short ranking strategy across twenty FX pairs. It aggregates four-hour spot bars into sessions ending at the New York 5 PM rollover, then constructs trailing return, channel, volatility, drawdown, range,…

ForexSpot marketsMean reversionMomentum
Machine Learning for Trading

This read-only assessment reconstructs the selected strategy from configured, full-coverage registry results. It follows the progression from an equal-weight baseline through allocation, risk controls, and transaction-cost sensitivity, then reads the holdout…

EquitiesOptionsRisk managementBacktesting
Machine Learning for Trading

This case study describes producing an out-of-sample prediction set for an already selected S&P 500 options model. The holdout configuration is fixed using validation results, then fitted again on data ending before the holdout window. A label buffer…

OptionsMachine learningBacktestingRisk management
Machine Learning for Trading

This notebook presents lightweight falsification diagnostics for feature triage, explicitly distinguishing mechanism consistency from causal identification. It first scans ETF features across forward-return horizons with multiple-testing correction, then…

Machine learningStatisticsMomentumVolatility
Machine Learning for Trading

This notebook surveys supervised-learning labels using ETF price data. It covers fixed-horizon forward returns for regression or direction classification, time-series rolling percentiles, cross-sectional percentile labels, triple-barrier labels with fixed or…

Machine learningEquitiesVolatilityRisk management
Machine Learning for Trading

This notebook compares learned and analytical hedges for a short European call when rebalancing is discrete and trading incurs proportional costs. It defines the self-financing terminal P&L from hedge gains, turnover costs, and the option payoff, then trains…

OptionsDerivatives pricingVolatilityRisk management
Machine Learning for Trading

This notebook demonstrates position-level exits and portfolio-level controls through constructed examples. Static rules include stop losses, profit targets and time exits; dynamic rules include trailing stops that follow prior highs, tightening trails, and…

Risk managementPosition sizingBacktestingExecution
Machine Learning for Trading

This notebook shows how to align macroeconomic observations with the dates traders could actually have known them. It distinguishes the period a value measures from its publication date, estimates release dates from period length and agency lag schedules,…

Multi-assetBacktestingStatisticsRisk management
Machine Learning for Trading

This notebook estimates the adjusted effect of a continuous ETF momentum measure on forward returns using double machine learning. It contrasts an unadjusted regression with DML estimates that control for recent and longer-term volatility, market regime, and…

EquitiesMomentumMachine learningStatistics
Machine Learning for Trading

This notebook presents a deterministic method for checking whether backtest and live trading pipelines behave alike. It compares successive stages: features computed from the same bars, predictions from those features, signals given the same position state,…

BacktestingExecutionRisk management
Machine Learning for Trading

This utility builds label artifacts for S&P 500 option straddles using the same symbol, strike, and expiration at entry and exit. It aligns feature dates to subsequent market sessions, constructs five- and ten-session exit dates, and joins call and put…

OptionsDerivatives pricingBacktestingRisk management
Machine Learning for Trading

This notebook applies position-level risk controls to leading ETF allocation combinations while keeping each underlying prediction, concentration, and allocator fixed. It compares stop-losses, trailing stops, and time exits with the original strategy,…

EquitiesRisk managementBacktestingPosition sizing
Machine Learning for Trading

The document describes how a trading research pipeline assesses whether latent-factor model fits completed in a usable state. For models trained by gradient descent, it checks that the final recorded training objective is finite; for the stochastic discount…

Machine learningFactor investingRisk management
Machine Learning for Trading

This notebook queries backtest registries across nine case studies and assembles comparable tables for downstream analysis. It organizes results by asset class and data frequency, then records performance across signal, allocation, cost, and risk stages,…

BacktestingStatisticsPortfolio constructionRisk management
Machine Learning for Trading

This document describes a one year out of sample backtest of S&P 500 option straddles. It applies predictions from a model refit on pre holdout history, together with the previously selected strategy, allocation, concentration, weekly entry schedule, hedge…

OptionsBacktestingRisk managementUS markets
Machine Learning for Trading

This notebook specifies and executes a double machine learning analysis of the effect of the variance risk premium on short-option returns through expiry. Before execution, it resolves the treatment, outcome, confounders, timing, nuisance model, temporal…

OptionsVolatilityMachine learningStatistics
Machine Learning for Trading

The document explains how an experiment registry can track a model from its training configuration through predictions to backtest results. Each stage receives an identifier derived from a canonicalized specification, allowing repeated identical runs to…

Machine learningStatisticsBacktestingRisk management
Machine Learning for Trading

This chapter presents portfolio construction as the process of converting return forecasts, risk estimates, and constraints into weights, leverage, and rebalancing decisions. It lays out a research workflow for documenting allocator choices, avoiding…

Portfolio constructionRisk managementPosition sizingBacktesting
Machine Learning for Trading

This notebook explains how to evaluate position-level exits and combine them with portfolio-wide controls. Fixed stop-loss, take-profit, and time exits are contrasted with trailing and tightening stops; a scaled exit reduces a position at successive profit…

Risk managementPosition sizingBacktestingPortfolio construction
Machine Learning for Trading

This notebook studies how ridge, lasso, and elastic net behave when a crypto perpetuals feature matrix measures one economic quantity—the premium—many different ways. Premium levels, changes, volatility, standardized positions, ranks, and related funding…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This study converts registered model predictions into comparable S&P 500 option strategies. On weekly decision dates it ranks predicted returns, filters to a liquid universe, and sells equally weighted at-the-money straddles on the highest-ranked symbols.…

OptionsEquitiesBacktestingExecution