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

742 documents

Machine Learning for Trading

This notebook builds a monthly ETF rotation backtest from portfolio returns through to simulated trades. It ranks ten funds using trailing risk-adjusted returns, applies a Treasury yield-curve regime to choose between the leaders and a defensive bond…

BacktestingMomentumExecutionPortfolio construction
Machine Learning for Trading

This notebook applies TabM, a weight-sharing neural ensemble, to a panel of cryptocurrency perpetual-futures features. Its members share a neural backbone but have separate scaling vectors and output layers, combining efficient ensembling with nonlinear…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This notebook screens financial and model-derived features for their ability to rank ETFs by subsequent returns. It calculates a date-by-date information coefficient by comparing each feature’s cross-sectional ranks with forward-return ranks, then examines…

EquitiesStatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook builds an auditable report for a long-only Bitcoin strategy that enters and exits using RSI thresholds. It compares gross and net results, then measures performance against a buy-and-hold benchmark run with the same data, warmup, exposure,…

CryptoMean reversionTechnical indicatorsBacktesting
Machine Learning for Trading

This notebook frames a focused test: whether a learned sequence representation of perpetual-funding features improves on hand-built summaries of the premium, the gap between perpetual and spot prices. It compares NLinear, which applies a linear mapping to…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This configuration describes a daily, long-short US equity strategy that ranks a broad stock universe by model predictions, buys the top decile, and shorts the bottom decile with equal weights within each group. It specifies next-session open execution,…

EquitiesUS marketsPortfolio constructionExecution
Machine Learning for Trading

This notebook evaluates candidate features for 20 currency pairs one at a time against forward returns. It limits the analysis to walk-forward validation periods, stamps each session with its fold, and leaves a buffered gap before the holdout so labels…

ForexStatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook turns model rankings into simple crypto perpetual portfolios. At each funding timestamp, an entry rule selects contracts from the top or bottom of the ranking and assigns equal weights. Equal weighting provides a reference point: comparisons…

CryptoPerpetual futuresBacktestingPortfolio construction
Machine Learning for Trading

This notebook measures how validation Sharpe for at-the-money S&P 500 option straddles changes across assumed execution costs and two option universes. It expresses spread cost as a fraction of the quoted option half-spread, since option premium and…

OptionsUS marketsBacktestingExecution
Machine Learning for Trading

This module describes a shared way to prepare walk-forward training and validation folds for multiple model families. It separates expensive, model-independent work—slicing time windows, applying fold-specific model-based features, removing rows with missing…

Machine learningBacktestingStatistics
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
Machine Learning for Trading

This notebook compares validation predictions from multiple model families for perpetual-futures funding research. It explains that information coefficient measures rank association between predictions and subsequent returns, AUC measures ranking for up or…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This implementation describes how to construct batched sequence windows for panel data used in deep-learning studies. Windows follow the panel’s expected calendar rather than compressing each asset’s observations into consecutive rows. Missing sessions…

Machine learningStatisticsBacktestingCrypto
Machine Learning for Trading

This notebook presents practical cleaning methods for market and firm data, including duplicate handling, gap flags, domain filters, reversal-based spike detection, outlier clipping, categorical encoding, and alignment across datasets with different…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook explains how to assess whether strategies built on a US equities panel can withstand trading friction. It fixes one configuration per label using validation Sharpe, then reprices that same strategy across declared cost levels. This prevents the…

EquitiesBacktestingExecutionRisk management
Machine Learning for Trading

This notebook fits gradient-boosted tree models to options-market features that encode forecasts such as implied volatility, skew, term structure, and variance risk premium. It compares tree capacity and regression loss choices across forward-return and…

OptionsMachine learningVolatilityBacktesting
Machine Learning for Trading

This notebook connects position sizing with analysis of maximum adverse and favorable excursions. It demonstrates fixed-fractional sizing, where shares are determined by a portfolio risk budget and entry-to-stop distance, with a cap on position…

Position sizingRisk managementVolatilityBacktesting
Machine Learning for Trading

This case study tests weekly long-short carry-ranked strategies across a diversified set of CME futures, using daily data, walk-forward model evaluation, and costs for commissions, spreads, and roll slippage. It compares signal quality across model families,…

FuturesCarryMachine learningBacktesting
Machine Learning for Trading

This notebook compares predictive, structural, and causal model evidence for a cross-sectional S&P 500 study combining equity features with options-derived measures such as implied volatility, skew, and term structure. It evaluates weekly forward-return…

EquitiesOptionsMachine learningFactor investing
Machine Learning for Trading

This notebook shows how to translate gross returns into net performance under explicit trading, financing, and fund-expense assumptions. Its cost stack includes spread and market impact, commissions and exchange fees, margin interest, stock borrow,…

EquitiesExecutionBacktestingRisk management
Machine Learning for Trading

This notebook demonstrates a trade-level diagnostic workflow that links realized failures to a model’s SHAP explanations. It trains a LightGBM model on lagged price and volatility features plus macro inputs to forecast next-session SPY returns. A fixed…

Machine learningStatisticsEquitiesSentiment
Machine Learning for Trading

This notebook compares behavior cloning with inverse reinforcement learning (IRL) for learning from execution records. Its demonstrations come from a TWAP schedule, whose risk-neutral objective is known: spread trades evenly to limit impact while accepting…

ExecutionMachine learningStatisticsBacktesting
Machine Learning for Trading

This case study explains how to construct forward-return labels for a cross-sectional foreign-exchange strategy that ranks currency pairs and buys or sells according to their relative ordering. It first maps four-hour spot bars into trading sessions using a…

ForexSpot marketsMomentumMean reversion
Machine Learning for Trading

The code computes standardized performance metrics from out-of-sample prediction tables, separately by fold and as headline aggregates. It supports regression and classification, including information coefficient, error measures, discrimination metrics, and…

StatisticsBacktestingMachine learningRisk management