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

1,124 documents

Machine Learning for Trading

This notebook examines how to combine multiple probability forecasts. It presents simple averaging as a baseline and explains Neyman extremization, which moves a panel mean farther from a base rate according to the number of forecasters and an assumed…

StatisticsMachine learningRisk management
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 notebook turns futures carry—the price gap between nearby expiries—into model-based features. It describes one-step ARIMA forecasts per product, rolling Fourier measures of seasonal cycle strength, and a two-state hidden Markov model that infers broad…

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

This overview explains a family of models for predicting returns from firm characteristics. Rather than treating each characteristic as a direct return predictor, the models assume returns are driven by a small set of unobserved common factors and estimate…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

The notebook presents a reporting method for a long-only RSI mean-reversion strategy on BTC. It compares gross and net performance, then benchmarks the strategy against buy-and-hold using the same trading dates, exposure, execution engine, fill timing, and…

CryptoMean reversionTechnical indicatorsBacktesting
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 document describes a conditional autoencoder that models firm exposures to latent return factors as a nonlinear function of firm characteristics. Like IPCA, it estimates a factor structure in which predicted returns combine firm-specific exposures with…

Machine learningFactor investingEquitiesStatistics
Machine Learning for Trading

This document explains a TabM neural network for ranking ETFs from tabular features. Its shared two-layer backbone feeds multiple members, each with a learned scaling vector and output layer; averaging their predictions aims to reduce initialization noise…

Machine learningStatisticsEquitiesBacktesting
Machine Learning for Trading

This notebook explains how volume participation limits constrain the portion of market volume an order can consume in each interval. When a parent order exceeds the permitted amount, the broker fills part of it and carries the remainder forward. A…

EquitiesExecutionMarket microstructureRisk management
Machine Learning for Trading

This chapter overview explains how gradient-boosted trees build on decision trees and random forests for financial tabular prediction. Boosting adds learners sequentially to correct earlier errors, helping capture nonlinear relationships and threshold…

Machine learningEquitiesStatisticsBacktesting
Machine Learning for Trading

This document describes a monthly US equity dataset designed for machine learning research in asset pricing. It contains 94 rank-transformed firm characteristics, including accounting measures and technical features, alongside returns. Firms are anonymized,…

EquitiesMachine learningFactor investingUS markets
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 evaluates security controls for a financial document question-answering system using six hand-written cases. The cases represent indirect prompt injection, fabricated data in untrusted material, attempted actions, and invalid citations. It…

Machine learningRisk managementStatistics
Machine Learning for Trading

This notebook introduces a published panel for machine-learning research on US equities. It contains monthly observations with 46 firm characteristics and next-month excess returns, spanning several decades. The characteristics are grouped by economic…

EquitiesFactor investingStatisticsMachine learning
Machine Learning for Trading

This chapter explains how to build and use financial knowledge graphs when questions depend on relationships such as ownership, supply chains, or contagion. It covers entity identity, typed relationship schemas, provenance, and LLM-assisted extraction from…

Machine learningEquitiesUS marketsPortfolio construction
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 analyzes a portfolio of equity ETFs with CAPM and Fama-French factor regressions, then expands the analysis to rolling exposures, return attribution, and residual dependence. It uses aligned daily returns and factor data, estimates regression…

EquitiesFactor investingPortfolio constructionStatistics
Machine Learning for Trading

This document explains fractional differencing as a way to make a price series more stationary while retaining some information about its level. It derives the lag weights from the binomial expansion of a fractional difference and shows how truncating small…

StatisticsTechnical indicatorsMachine learning
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 demonstration runs one dual moving-average crossover strategy through both a historical backtest engine and a live engine replaying the same daily ETF bars. It holds the strategy, inputs, parameters, and fill convention fixed, then compares the…

EquitiesTechnical indicatorsBacktestingExecution
Machine Learning for Trading

This notebook compares squared error, absolute error, and Huber loss for gradient-boosted models predicting short at-the-money straddle returns. The target has a capped gain and potentially severe losses, so the fitting loss may affect how well predictions…

OptionsVolatilityMachine learningStatistics
Machine Learning for Trading

This notebook turns hourly continuous futures data into daily OHLCV bars aligned to CME Globex sessions. It assigns timestamps to the session ending at 4 PM Central Time, so Sunday evening trading belongs to Monday and Friday evening does not create a…

FuturesBacktestingMarket microstructure