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

243 documents

Machine Learning for Trading

This notebook estimates how execution costs can erode hypothetical intraday strategy returns. It first measures volume-weighted quoted spreads across NASDAQ-100 constituents using minute-bar quotes, then uses the median constituent spread as an empirical…

EquitiesExecutionMarket microstructureBacktesting
Machine Learning for Trading

This document describes utilities for loading parsed NASDAQ ITCH messages and rebuilding a limit order book from order additions, deletions, cancellations, executions, and replacements. It tracks remaining shares per order so later book updates use the…

EquitiesMarket microstructureExecutionHigh-frequency trading
Machine Learning for Trading

This notebook traces ETF ranking signals through portfolio formation and a simplified backtest. Ridge regression and logistic classification are trained with walk-forward splits, then compared with momentum and equal-weight portfolios. At monthly rebalances,…

EquitiesMachine learningBacktestingExecution
Machine Learning for Trading

This overview organizes a set of trading case studies by asset class, universe size, data frequency, decision cadence, cost regime, and evaluation protocol. It reads each study’s declared setup and presents comparative tables, including training and…

Multi-assetBacktestingExecutionRisk management
Machine Learning for Trading

This notebook assesses how transaction costs affect a fixed CME futures configuration selected elsewhere in the research process. It applies an all-in cost grid, splitting each level evenly between commission and slippage, and carries the selected risk…

FuturesBacktestingExecutionRisk management
Machine Learning for Trading

This notebook compares PyPortfolioOpt, Riskfolio-Lib, and skfolio by fitting portfolio allocators on a shared ETF return panel and evaluating their frozen weights on later observations. It covers mean-risk, tail-risk, hierarchical risk parity, and penalized…

Portfolio constructionBacktestingRisk managementExecution
Machine Learning for Trading

This analysis uses NASDAQ TotalView-ITCH messages to describe venue activity and build a trade table linked to ticker, side, and order attributes. It counts message types, compares trading with the much more numerous quoting and removal events, and ranks…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This document models broker and exchange order handling as a finite state machine. It defines explicit states for submission, acknowledgment, acceptance, partial fills, cancellation, rejection, expiry, and suspension, then maps events to valid transitions. A…

ExecutionMarket microstructureRisk management
Machine Learning for Trading

This notebook develops the Almgren–Chriss solution for liquidating a position while balancing market impact against the risk of remaining exposed to price moves. It uses implementation shortfall relative to the arrival price, models permanent and temporary…

ExecutionMarket microstructureRisk managementBacktesting
Machine Learning for Trading

The document explains how to construct trade-based microstructure features from NASDAQ trade data aggregated into intraday bars. It covers Kyle lambda, Amihud illiquidity, the Roll spread estimator, trade intensity, and order flow imbalance (OFI). It…

EquitiesMarket microstructureExecutionTechnical indicators
Machine Learning for Trading

This notebook teaches how to decode NASDAQ TotalView-ITCH message-by-order data from its binary format into structured records. It explains the message framing and type-specific layouts, demonstrates unpacking fields, and converts timestamps expressed as…

EquitiesMarket microstructureHigh-frequency tradingExecution
Machine Learning for Trading

This notebook measures how a validation-selected FX strategy responds to changes in proportional transaction costs. For each prediction label, it selects a parent strategy from the signal, allocation, and risk-overlay results, then reruns that strategy…

ForexBacktestingExecutionRisk management
Machine Learning for Trading

This notebook applies one monthly ETF momentum and yield-curve regime strategy in two ways: vectorized return arithmetic and a sequential account simulation. Both use the same target weights, assets, dates, and total trading cost, allowing the comparison to…

EquitiesMomentumBacktestingExecution
Machine Learning for Trading

This notebook walks through a deployment rehearsal for a crypto funding-rate direction model. It trains a three-class LightGBM model on historical Binance-derived perpetual data, then fetches live hourly bars and funding rates from OKX, aggregates data to…

CryptoPerpetual futuresSpot marketsMachine learning
Machine Learning for Trading

This notebook presents a workflow for acquiring and maintaining financial time series with a unified manager, predefined or custom symbol universes, and partitioned Parquet storage. It covers single and parallel multi-symbol fetching, loading data into…

Multi-assetEquitiesBacktestingExecution
Machine Learning for Trading

This exploratory analysis tests whether a twelve-month momentum signal, omitting the latest month, is associated with next-month returns across a 100-ETF universe. It builds a monthly panel from adjusted closing prices, ranks eligible ETFs into quintiles…

Multi-assetMomentumStatisticsBacktesting
Machine Learning for Trading

This notebook compares behavior cloning and inverse reinforcement learning (IRL) using demonstrations from a time-weighted average price (TWAP) execution rule. Behavior cloning maps observed market states directly to actions, while IRL fits a linear reward…

ExecutionMachine learningStatisticsRisk management
Machine Learning for Trading

This demonstration checks whether one dual moving-average crossover implementation produces matching signals in backtest and live engines. Both engines receive the same prepared ETF bars and use the same strategy parameters and fill convention, so the…

EquitiesBacktestingExecutionTechnical indicators
Machine Learning for Trading

This notebook examines tick-level AlgoSeek trade and quote data for AAPL during the March 16, 2020 market crash. It filters to regular trading hours, separates trade prints from NBBO updates, and studies intraday activity, spreads, trading sizes, venue…

EquitiesMarket microstructureExecutionVolatility
Machine Learning for Trading

This analysis reconstructs individual NASDAQ limit orders from ITCH add, delete, partial-cancel, replace, and execution messages. It measures whether orders are cancelled or filled and how long they take to reach those events, using precise timestamps and…

EquitiesMarket microstructureExecutionHigh-frequency trading
Machine Learning for Trading

This document describes a benchmark for database engines used with financial time-series data. It compares bulk writes, full scans, time-range queries, OHLCV aggregation, and as-of joins for trade and quote data. Its methodology treats client-side conversion…

Market microstructureExecutionBacktestingStatistics
Machine Learning for Trading

This notebook demonstrates a deployment boundary between an offline machine-learning pipeline and QuantConnect's LEAN engine. It selects a prediction set through the ETF case study registry, verifies training and prediction provenance, and exports…

Machine learningExecutionBacktestingPortfolio construction
Machine Learning for Trading

This notebook compares the effect of assumed trading costs across strategies drawn from multiple case studies. It reads cost-sensitivity backtests for each deployed strategy configuration, compares gross Sharpe with net Sharpe at the case study's own assumed…

BacktestingRisk managementExecutionStatistics