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 studies how Ridge regularization affects information coefficient (IC) performance and how hyperparameter search can bias reported validation results. It first evaluates a wide alpha grid with walk-forward folds, scaling features inside each…

Machine learningStatisticsBacktesting
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 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

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

This notebook explains a stochastic discount factor (SDF) model for pricing the cross-section of US firm returns. It learns weights that make discounted asset returns satisfy no-arbitrage moment conditions, rather than optimizing a return-forecasting loss.…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

The document describes an ablation study of whether learned graph embeddings improve predictions of stock returns beyond ordinary tabular features. It builds a network from historical stock-return correlations, constructs momentum, volatility, and trend…

EquitiesMachine learningBacktestingStatistics
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 document describes a producer for paired performance comparisons across strategy-selection stages. It forms comparisons between signal selections and equal-weight references, between holdout and validation selections, and across allocation,…

StatisticsBacktestingRisk managementPortfolio construction
Machine Learning for Trading

This notebook benchmarks Random Forest bagging against XGBoost, LightGBM, and CatBoost for predicting stock returns from anonymized firm characteristics. It uses predefined temporal training, validation, and test splits, measures Spearman rank information…

Machine learningEquitiesStatisticsFactor investing
Machine Learning for Trading

This tutorial explains how to organize market data beyond one-time downloads. It presents a unified manager for fetching single symbols or batches, predefined and custom symbol universes, and Hive-partitioned Parquet storage. It also covers querying date…

Multi-assetEquitiesBacktestingExecution
Machine Learning for Trading

This notebook tests position-level and portfolio risk rules on leading ETF allocation combinations from a monthly strategy. It holds each registered prediction, concentration, and allocator fixed, then compares the overlaid results with their own…

EquitiesRisk managementBacktestingExecution
Machine Learning for Trading

This chapter overview maps the research steps between validated market data and model evaluation. It covers split-aware preprocessing, encoding and missing-data decisions, then execution-consistent target construction, including fixed-horizon and event-based…

Machine learningStatisticsBacktestingExecution
Machine Learning for Trading

This document describes a shared workflow for training temporal convolutional networks on daily FX pair data. A model consumes a fixed-length sequence, and a missing expected day makes any window crossing that gap ineligible. The runner derives the valid…

ForexMachine learningBacktesting
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