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

4,613 documents

Machine Learning for Trading

This notebook compares ways to allocate capital across US equity positions while holding the model, checkpoint, rebalance dates, and selected stocks fixed. It examines weights based on prediction strength, prediction-interval width, individual stock…

EquitiesPosition sizingPortfolio constructionRisk management
Machine Learning for Trading

This notebook evaluates stop losses, trailing stops, and fixed-duration exits on selected US equity strategies. A stop loss responds to losses from entry, a trailing stop responds to declines from a position’s peak, and a time exit closes after a set holding…

EquitiesRisk managementBacktestingPosition sizing
Machine Learning for Trading

This notebook compares ways to size positions in a US equities panel while holding the model, checkpoint, rebalance dates, and selected stocks fixed. Prediction-based methods scale capital by forecast magnitude or interval uncertainty; inverse volatility and…

EquitiesUS marketsPortfolio constructionPosition sizing
Machine Learning for Trading

This notebook compares portfolio weighting rules for selling straddles on selected S&P 500 symbols. It holds the chosen symbols constant and varies allocation, using equal weight as the baseline. The methods include weighting by predicted score, inverse…

OptionsPortfolio constructionPosition sizingBacktesting
Machine Learning for Trading

This notebook runs a fixed equity-characteristics strategy on a reserved holdout period using predictions and a portfolio allocator selected earlier. It keeps the configuration, position sizing, concentration, rebalance cadence, and cost assumption…

EquitiesFactor investingBacktestingPosition sizing
Machine Learning for Trading

This notebook explains how futures contract specifications affect backtest accounting. It shows how the contract multiplier converts price moves into dollar P&L, how price times multiplier determines notional value for sizing, and why per-contract…

FuturesCommoditiesMomentumPosition sizing
Machine Learning for Trading

This notebook turns stock-level predictions into validation portfolios. On each rebalance date, it sorts stocks by predicted return, buys the top group and shorts the bottom group, and assigns equal capital to every position. It applies this baseline across…

EquitiesMachine learningBacktestingPortfolio construction
Machine Learning for Trading

This document explains how to evaluate a previously selected US equities strategy on holdout data while keeping its configuration fixed. It derives the correct holdout prediction set from the selected model’s training identity and checkpoint, then applies…

EquitiesUS marketsBacktestingRisk management
Machine Learning for Trading

This document explains why stop-losses, trailing stops, and time exits cannot be evaluated in a case study whose backtest holds weights across a month and observes only the realized monthly forward return. Such rules depend on the price path between entry…

EquitiesRisk managementBacktestingPosition sizing
Machine Learning for Trading

This document presents an event-driven method for holding a limited number of intraday positions. Predictions are aligned to price bars using the latest available score, subject to an optional freshness limit. Entry signals use a rolling quantile computed…

EquitiesHigh-frequency tradingMarket microstructureExecution
Machine Learning for Trading

This document describes several ways to convert prediction scores into trading signals: fixed cutoffs, rolling per-asset percentiles, and cross-sectional percentiles. Fixed thresholds use a chosen score level; rolling thresholds adapt to an asset’s recent…

Machine learningPortfolio constructionPosition sizingBacktesting
Machine Learning for Trading

This live-trading demonstration describes a daily rebalance workflow for a fixed universe of US large-cap stocks. It compares broker-held positions with model targets, converts the differences into an order basket, and routes orders through a risk-control…

EquitiesExecutionRisk managementPosition sizing
Machine Learning for Trading

This code describes how backtest settings are resolved from case study configuration and how run identity accounts for changes to the traded universe and prediction age. Its central lesson is that any filter that changes the portfolio or prediction set must…

BacktestingExecutionRisk managementPosition sizing
Machine Learning for Trading

This notebook studies six allocation methods applied to selected crypto perpetual strategy configurations. The rankings and entry rules remain fixed while the capital assigned to each position changes. The methods use model scores, individual contract…

CryptoPerpetual futuresPosition sizingPortfolio construction
Machine Learning for Trading

This notebook compares equal weighting with two allocation rules for US firm characteristic strategies: score weighting, which assigns more capital to higher model predictions, and conformal weighting, which reduces capital for predictions with wider…

EquitiesPosition sizingPortfolio constructionBacktesting
Machine Learning for Trading

This notebook builds an end-to-end portfolio allocator that places a Temporal Fusion Transformer style variable-selection network ahead of an LSTM. Separate gated residual networks embed individual features, and learned soft weights combine those embeddings…

Machine learningPortfolio constructionPosition sizingVolatility
Machine Learning for Trading

This configuration module describes a framework for declaring backtest sweep settings per case study. It reads entry schemes, allocation methods, trading cost grids, and risk controls from setup files, with explicit errors when required configuration is…

BacktestingRisk managementPosition sizingPortfolio construction
Machine Learning for Trading

The notebook compares Monte Carlo dropout and deep ensembles as ways to estimate uncertainty around daily ETF return forecasts. Dropout remains active across repeated predictions, while ensemble members are separately trained; the spread of predictions from…

Machine learningStatisticsRisk managementPosition sizing
Machine Learning for Trading

This case study compares declared fixed and trailing stop rules for FX positions. It first selects one parent strategy per label from a sealed validation cohort, then varies only the position risk rule. Because stops respond to price movements within a…

ForexRisk managementBacktestingPosition sizing
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 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 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 develops a framework for translating market activity into modeled trading costs and strategy capacity. It introduces the square-root impact model, identifies volatility and average daily volume as key inputs, and distinguishes quantities…

Market microstructureExecutionRisk managementPosition sizing
Machine Learning for Trading

This notebook converts FX pair predictions into baseline trading results. At each decision time it ranks pairs, takes equal-sized long and short sleeves, and runs the selected prediction configurations and checkpoints through an existing backtest engine.…

ForexBacktestingPortfolio constructionPosition sizing