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

105 documents

Machine Learning for Trading

This notebook demonstrates how a fixed dollar order can impose very different costs across stocks because its size relative to available trading volume matters. It applies a square-root market-impact model to a long-when-positive momentum strategy using…

EquitiesMomentumBacktestingExecution
Machine Learning for Trading

This case study evaluates daily momentum and carry signals across a small, correlated universe of G10 spot currency pairs. Its workflow moves from feasibility checks and forward-return labels through engineered and model-based features, cross-validation,…

ForexMomentumCarryBacktesting
Machine Learning for Trading

This notebook adapts TSMixer to predict forward ETF returns from historical momentum features. Its architecture alternates a shared linear transformation across the time axis with a feature MLP applied separately at each date. Pre-normalization and residual…

Machine learningEquitiesMomentumBacktesting
Machine Learning for Trading

This document describes building a cross-sectional feature matrix for S&P 500 stocks by combining adjusted share-price histories with summarized option implied-volatility surfaces. It organizes features by role, input, lookback, and observability delay.…

EquitiesOptionsVolatilityMomentum
Machine Learning for Trading

This notebook explains how a temporal convolutional network (TCN) can forecast returns from ordered financial data. Causal convolutions ensure that an output at a given time depends only on current and earlier inputs. Dilations expand the receptive field…

Machine learningEquitiesMomentumStatistics
Machine Learning for Trading

The notebook diagnoses how a fixed monthly ETF momentum strategy performed across volatility, trend, and yield-curve conditions. Regime labels are designed to be known before the return they describe: volatility and index trend use prior closes and are…

Multi-assetMomentumVolatilityBacktesting
Machine Learning for Trading

This notebook explains how to construct one-, five-, and 21-session forward spot returns for a fixed FX-pair universe. It first maps four-hour bars into trading sessions using a New York rollover calendar, then builds returns without removing rows before…

ForexSpot marketsMomentumMean reversion
Machine Learning for Trading

This notebook compares commission and slippage models for equities and futures, then examines how commission assumptions affect a fixed ETF momentum strategy. It explains how percentage, per-share, minimum, combined, and tiered commissions produce different…

BacktestingExecutionRisk managementMomentum
Machine Learning for Trading

This notebook compares daily, weekly, biweekly, and monthly rebalancing for a top-ranked momentum portfolio built from a fixed ETF universe. It measures turnover and gross risk-adjusted performance from historical prices, then estimates break-even alpha by…

EquitiesMomentumExecutionBacktesting
Machine Learning for Trading

This setup document defines a weekly S&P 500 equity research pipeline that uses options market features alongside price-based signals. It specifies the eligible universe, decision and execution timing, and distinct rebalance cadences for labels with…

OptionsEquitiesVolatilityMomentum
Machine Learning for Trading

This document presents a pedagogical Mamba-style selective state space model for predicting ETF returns from sequences of momentum features. Unlike attention and dense temporal mixing, a state space model carries a fixed-size state through the sequence with…

Machine learningStatisticsMomentumEquities
Machine Learning for Trading

This notebook examines how market impact changes a momentum strategy’s backtest results across stocks with different liquidity. It holds the order size and strategy constant, estimates liquidity and volatility from a formation period, and applies several…

EquitiesMomentumMarket microstructureBacktesting
Machine Learning for Trading

This notebook compares two Transformer designs for forecasting 21-day ETF returns from eight trailing-momentum features. PatchTST groups consecutive days into patches, reducing the number of attention tokens and embedding local time patterns. iTransformer…

Machine learningMomentumEquitiesStatistics
Machine Learning for Trading

This notebook assesses whether four-hour spot FX data can support a daily cross-sectional strategy that ranks currency pairs using momentum and carry, buys the strongest, and sells the weakest. It does not fit a model or make forecasts. Instead, it checks…

ForexMomentumCarryStatistics
Machine Learning for Trading

This configuration describes a daily long-short strategy across 20 FX pairs. It sets a New York close decision time, next-bar execution, equal-weight sizing, and ranking signals based on momentum or carry. It also specifies spread and swap-point costs,…

ForexMomentumCarryMean reversion
Machine Learning for Trading

This notebook explains a pedagogical selective state space model based on Mamba and evaluates it for ETF return prediction. Unlike a fixed-parameter state space model, it derives the input-to-state term, state-to-output term, and step size from the current…

EquitiesMachine learningMomentumBacktesting
Machine Learning for Trading

This notebook describes an expanding-window double machine learning analysis of whether 12-to-2-month momentum predicts next-month US firm returns after conditioning on Beta, IdioVol, LME, and Variance. Nuisance models train on earlier decision months, with…

EquitiesMomentumMachine learningStatistics
Machine Learning for Trading

This dataset note describes a diversified collection of exchange traded funds used in a momentum strategy and a broader sequence of financial research examples. It provides daily open, high, low, close, and volume observations beginning in 2006, grouped…

Multi-assetEquitiesFixed incomeCommodities
Machine Learning for Trading

This notebook fits ridge, lasso and elastic-net models to a broad set of established US stock characteristics, including value, profitability, investment, momentum, size, risk and liquidity measures. It evaluates raw monthly returns, a cross-sectionally…

EquitiesFactor investingMomentumMachine learning
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 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 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 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
Machine Learning for Trading

This notebook introduces a workflow that connects standardized ETF data loading, a feature registry, and signal diagnostics. It shows how to discover indicator metadata, compute features using defaults or explicit parameters, and store configurations for…

EquitiesTechnical indicatorsMomentumStatistics