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
Quantpedia
86 documents
TqSdk
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
Quantopian lectures
45 documents
Binance API docs
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

243 documents

Machine Learning for Trading

This document turns cross-sectional ETF predictions into simulated trades. It distinguishes ranking quality, measured by information coefficient, from realized strategy performance: a top-k portfolio depends on the relative score values, rebalance schedule,…

EquitiesBacktestingPortfolio constructionExecution
Machine Learning for Trading

This notebook explains how to apply four market impact models in a backtest: no impact, linear impact, square-root impact, and a configurable power law. Each model estimates a signed per-share price move based on order direction, quantity, price, and volume.…

ExecutionMarket microstructureBacktestingRisk management
Machine Learning for Trading

This notebook describes reconstructing a single-symbol, single-day NASDAQ limit order book from message-by-order ITCH data. It processes add, execute, cancel, delete, and replace messages while maintaining each live order reference and its remaining shares.…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This exploratory analysis explains how to interpret minute bars built from quote and trade data for NASDAQ-100 constituents. It organizes the fields into families covering bid and ask quotes, executions, spreads, volume, trade-price buckets, tick direction,…

EquitiesMarket microstructureExecutionUS markets
Machine Learning for Trading

This notebook demonstrates position-level exits and portfolio-level controls through constructed examples. Static rules include stop losses, profit targets and time exits; dynamic rules include trailing stops that follow prior highs, tightening trails, and…

Risk managementPosition sizingBacktestingExecution
Machine Learning for Trading

This notebook presents a deterministic method for checking whether backtest and live trading pipelines behave alike. It compares successive stages: features computed from the same bars, predictions from those features, signals given the same position state,…

BacktestingExecutionRisk management
Machine Learning for Trading

This notebook rehearses a deployment cycle for a crypto funding-rate direction model. It trains a LightGBM classifier on historical Binance-derived perpetual data, fetches live hourly bars and funding rates from OKX, computes the model's features, and…

CryptoPerpetual futuresMachine learningExecution
Machine Learning for Trading

This notebook explains how to parse IEX DEEP messages and maintain an aggregated limit order book at each price level. It extracts price-level updates, best bid and ask quotes, and trade reports, then uses the resulting data to examine spread and depth. The…

EquitiesMarket microstructureExecution
Machine Learning for Trading

This notebook tests whether standard portfolio allocation can improve an every-bar NASDAQ-100 trading strategy that is already burdened by transaction costs. It selects predictions using validation performance on the declared cost-feasible universe, then…

EquitiesPosition sizingPortfolio constructionExecution
Machine Learning for Trading

This notebook analyzes reconstructed NASDAQ limit order books to describe intraday spreads and top-of-book depth, then examine whether order-flow imbalance is associated with subsequent bucket returns. It expresses spreads in basis points to compare stocks…

Market microstructureEquitiesStatisticsExecution
Machine Learning for Trading

This notebook presents a deployment bridge between an offline machine-learning pipeline and QuantConnect's LEAN trading engine. It selects a model run reproducibly from a registry, exports its holdout predictions as date-indexed JSON, and uses a small…

Machine learningPortfolio constructionExecutionBacktesting
Machine Learning for Trading

This analysis checks whether daily options and share data can support a weekly S&P 500 strategy that ranks constituents by thirty day at the money implied volatility and buys the highest ranked shares. Options provide the signal, while the portfolio holds…

EquitiesOptionsVolatilityBacktesting
Machine Learning for Trading

This study converts registered model predictions into comparable S&P 500 option strategies. On weekly decision dates it ranks predicted returns, filters to a liquid universe, and sells equally weighted at-the-money straddles on the highest-ranked symbols.…

OptionsEquitiesBacktestingExecution
Machine Learning for Trading

This notebook synthesizes results from nine market case studies into a cumulative strategy-screening funnel. It tests, in order, whether a model has positive information coefficient, whether its selected configuration has positive validation Sharpe, whether…

BacktestingStatisticsRisk managementExecution
Machine Learning for Trading

This notebook explains when a strategy is clearest as precomputed arrays and when it benefits from a sequential simulation that carries positions, fills, cash, realized profit and loss, or equity forward through time. Array-based backtests are attractive…

BacktestingPosition sizingPairs tradingRisk management
Machine Learning for Trading

This notebook teaches how to decode NASDAQ TotalView-ITCH binary messages and store them as structured data for later market microstructure analysis. It explains message framing, fixed-width field layouts, big-endian values, timestamps measured from…

Market microstructureEquitiesExecution
Machine Learning for Trading

This notebook compares pandas and Polars on operations used in financial data pipelines, including rolling calculations, grouped OHLCV summaries, window statistics, filtering, joins, lazy file scans, memory use and string processing. It generates synthetic…

StatisticsExecutionBacktesting
Machine Learning for Trading

This notebook builds minute-level features from NASDAQ-100 quote and trade data to study short-horizon price pressure. It treats normalized order-flow imbalance as the main signal candidate and uses spread, depth, price impact, off-exchange trading,…

EquitiesMarket microstructureExecutionTechnical indicators
Machine Learning for Trading

This case study builds minute-level features from NASDAQ-100 quote and trade data to examine whether recent aggressive buying or selling predicts short-horizon price drift. Order-flow imbalance is the proposed signal; spread, book depth, price impact,…

EquitiesMarket microstructureMomentumTechnical indicators
Machine Learning for Trading

This notebook constructs several sampling schemes from a single day of NASDAQ ITCH trades for an equity: calendar-time, tick, volume, dollar, imbalance, and run bars. It compares their statistical properties, including normality and autocorrelation, and…

EquitiesMarket microstructureStatisticsExecution
Machine Learning for Trading

This chapter treats transaction costs as a constraint throughout strategy research and deployment, from factor evaluation and backtesting to portfolio construction, risk oversight, and production monitoring. It distinguishes explicit fees, implicit spread…

ExecutionMarket microstructureBacktestingRisk management
Machine Learning for Trading

This notebook explains when a trading strategy is clearer to simulate bar by bar with evolving state than to express as precomputed signals or weights. It contrasts array-based backtests, which can be fast and convenient for parameter sweeps, with sequential…

BacktestingPosition sizingPairs tradingRisk management
Machine Learning for Trading

This notebook studies how to calibrate time, tick, volume, dollar, and imbalance bars using multiple sessions of NVDA market-by-order trade data. It filters trades to regular trading hours, uses the feed’s aggressor-side labels, and examines day-to-day…

EquitiesMarket microstructureStatisticsExecution
Machine Learning for Trading

This notebook checks whether historical ETF data can support a monthly ranking strategy before fitting a model or making forecasts. It tests the tradable universe using prior-year liquidity, counts eligible funds on rebalance dates, converts per-share…

Multi-assetBacktestingExecutionRisk management