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 expresses a four-phase forecasting workflow using plain Python orchestration, CrewAI, and LangGraph. It compares where state is held, how failures are inspected or recovered, what dependencies each approach adds, and how tracing works. The…

Machine learningStatisticsExecutionBacktesting
Machine Learning for Trading

This notebook frames a parent order as a finite-horizon control problem. At each interval, tabular Q-learning chooses a multiplier on a VWAP-based trade slice, conditioning on time and remaining inventory plus the most recently observed spread and volatility…

EquitiesExecutionMachine learningMarket microstructure
Machine Learning for Trading

This notebook demonstrates an operational cycle for an ETF equity strategy: refresh market data, compute financial features, retrain a Ridge model, generate current cross-sectional predictions, replay them through a backtest engine, and stage a top-ranked…

EquitiesMachine learningExecutionBacktesting
Machine Learning for Trading

The document describes a specialized backtest for a weekly S&P 500 options strategy. Each cohort selects highly ranked constituents, sells near-the-money call and put options with roughly a month to expiration, and delta-hedges with shares when net delta…

OptionsEquitiesUS marketsBacktesting
Machine Learning for Trading

This cross-case analysis examines how predictive information, measured by information coefficient (IC), translates into portfolio Sharpe across nine trading case studies. Its central point is that implementation mediates the relationship: entry rules,…

Multi-assetStatisticsBacktestingPortfolio construction
Machine Learning for Trading

This notebook explains how to build a continuous futures price history from individual expiring contracts. It identifies front-month contracts using trading volume, applies a no-rollback constraint to avoid spurious switches, and compares calendar-based roll…

FuturesBacktestingExecutionMarket microstructure
Machine Learning for Trading

This proof script exercises a reduced CME futures research workflow from model predictions through portfolio weights and backtesting. It checks that predictions cover exactly the expected product, timestamp, and fold keys, that fitted states and prediction…

FuturesBacktestingExecutionRisk management
Machine Learning for Trading

This notebook sets out a descriptive way to translate gross returns into net performance by modeling trading frictions, financing, and fund expenses separately. Its parameterized cost stack calculates trading costs from turnover and trade size, financing…

EquitiesExecutionRisk managementBacktesting
Machine Learning for Trading

This module defines a differentiable objective for end-to-end portfolio learning. It turns bounded asset-level risk weights into portfolio exposures using volatility scaling, computes average gross returns over available assets, and optionally subtracts…

Machine learningPortfolio constructionRisk managementExecution
Machine Learning for Trading

This notebook analyzes reconstructed NASDAQ order books to describe intraday spreads and depth at the best bid and ask, then examines whether order flow imbalance is associated with the next bucket’s return. It expresses spreads in basis points to make costs…

EquitiesMarket microstructureExecutionStatistics
Machine Learning for Trading

This notebook establishes a signal-stage baseline for evaluating model predictions on CME futures. At each weekly decision, it ranks products by predicted return, buys the top group, shorts the bottom group, and gives each position equal weight. It varies…

FuturesBacktestingPortfolio constructionExecution
Machine Learning for Trading

This configuration specifies a long-only ETF ranking and rebalancing experiment. It defines a broad 100-ETF universe spanning equity, bond, commodity, and regional exposures, with monthly decisions and next-open execution. The main label forecasts a 21-day…

EquitiesMulti-assetBacktestingExecution
Machine Learning for Trading

This benchmark compares CSV, Parquet, Feather (Arrow IPC), and HDF5 using the same deterministic OHLCV panel. It measures write time, materialized read time, file size, and the effect of reading only selected columns. The timing policy uses a single write…

EquitiesBacktestingExecution
Machine Learning for Trading

This operational tutorial demonstrates runtime safeguards for a live trading system using a synthetic broker. It shows how SafeBroker rejects orders when market data is too old or daily losses exceed a configured limit, and how the loss-triggered kill switch…

Risk managementExecutionMarket microstructure
Machine Learning for Trading

This notebook compares DQN, PPO, and A2C in a shared simulated trading environment calibrated to hourly Bitcoin perpetual-futures returns. A GARCH(1,1) model supplies volatility clustering, while the environment charges for position changes and applies an…

Machine learningCryptoPerpetual futuresVolatility
Machine Learning for Trading

The document explains two ways to estimate bid-ask spreads when only daily OHLCV data is available. Corwin-Schultz compares high-low ranges over adjacent one-day and two-day intervals, using the different behavior of volatility and spread to separate them;…

Market microstructureStatisticsExecutionVolatility
Machine Learning for Trading

This document explains a validation baseline for model predictions on CME futures. At each weekly decision, products are ranked by predicted return; the top group is held long and the bottom group short, with equal weight within each leg. The number of…

FuturesBacktestingPortfolio constructionRisk management
Machine Learning for Trading

This notebook outlines an operational workflow for connecting a strategy to Interactive Brokers through TWS or Gateway. It checks that the session is a paper account, reads account values and positions, and requests historical bars to initialize strategy…

ExecutionRisk managementMomentumEquities
Machine Learning for Trading

This notebook tests how sensitive an ETF momentum backtest is to its assumed trading fee. It holds the strategy’s weights and trading schedule fixed, reruns the simulator across a range of per-leg costs, and compares growth, Sharpe ratio, and drawdown. It…

EquitiesMomentumBacktestingExecution
Machine Learning for Trading

This analysis reads a registered backtest pipeline for a monthly US equity strategy based on firm characteristics. It reports Sharpe uncertainty, probability and deflated Sharpe measures, paired strategy comparisons, holdout decay, and a cost analysis…

EquitiesFactor investingStatisticsBacktesting
Machine Learning for Trading

This notebook measures how execution costs affect the already selected crypto perpetuals configuration. It holds the model, checkpoint, entry rule, allocator, and risk control fixed, then reruns the strategy across a declared grid of round-trip charges on…

CryptoPerpetual futuresBacktestingExecution
Machine Learning for Trading

This notebook analyzes NASDAQ TotalView-ITCH messages to describe market-wide activity and create reusable trade data. It counts messages by type, then enriches order-execution messages by mapping stock-location identifiers to tickers and order references to…

EquitiesUS marketsMarket microstructureExecution
Machine Learning for Trading

This document describes dataset utilities for preparing time-series panels for model training and rolling inference. The training dataset returns sliding sequences of features, forward returns, volatility scales, and masks, with configurable sequence length,…

Machine learningBacktestingPortfolio constructionExecution
Machine Learning for Trading

This study uses ten trading days of NVDA market-by-order data to examine how daily trading activity affects bar sampling. It filters trades to regular US market hours, classifies aggressor sides from venue labels, and reports day-to-day variation in trade…

EquitiesMarket microstructureExecutionTechnical indicators