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

1,124 documents

Machine Learning for Trading

This chapter presents risk management as part of strategy design and live operations. It covers tail risk measurement with value at risk and conditional value at risk, drawdown depth and recovery, exposure decomposition, stress testing, adaptive controls,…

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

This analysis compares validation predictions from several model families for perpetual futures funding. It explains that information coefficient measures the ranking of subsequent returns, AUC measures the ordering of up and down outcomes, and log loss…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This case study assesses DeFi Llama total value locked data as a possible input to an Ether trading research pipeline. It separates signal strength, data quality, legal suitability, and commercial value, with legal issues and the lack of reconstructible…

CryptoDeFiOn-chain dataStatistics
Machine Learning for Trading

This notebook evaluates published factor returns as potential portfolio building blocks. It separates three questions: whether a factor’s average return clears a demanding statistical bar, whether factors diversify one another for reasons that may persist,…

Factor investingStatisticsPortfolio constructionRisk management
Machine Learning for Trading

This notebook evaluates position-level exits on crypto perpetual futures positions selected by an earlier allocation stage. It defines fixed loss stops, trailing stops tied to each position’s best price, and time exits after a set holding period. The…

CryptoPerpetual futuresRisk managementBacktesting
Machine Learning for Trading

This case study configures an LSTM model for forecasting FX-pair labels. It contrasts the recurrent model’s carried hidden state with fixed lookback transformations and convolutional receptive fields, while deferring comparisons with other models to a…

ForexMachine learningBacktesting
Machine Learning for Trading

This notebook compares risk overlays across case-study backtests, including stop, trailing-stop, loss-limit, drawdown-breaker, and volatility-target rules. It loads each study’s overlay results, selects a baseline from an allocation-stage backtest where…

Risk managementBacktestingPortfolio constructionStatistics
Machine Learning for Trading

This case study applies gradient-boosted trees to NASDAQ-100 microstructure features to forecast returns and direction at several intraday horizons. It contrasts trees with linear models: trees can discover conditional relationships, such as order-flow…

Machine learningMarket microstructureEquitiesStatistics
Machine Learning for Trading

This notebook assembles a forecasting system with four stages: a panel of research agents, probability aggregation, an adversarial debate, and a supervisor that identifies disagreements, searches for clarifying evidence, and issues a final probability. The…

Machine learningStatisticsRisk management
Machine Learning for Trading

This notebook compares deterministic relational retrieval with embedding search on a corpus of institutional 13F holdings. It creates a point-in-time snapshot by keeping each institution’s latest reported position before a fixed cutoff, then builds questions…

Machine learningEquitiesStatisticsBacktesting
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 notebook demonstrates training a generative adversarial network on engineered ETF features with differential privacy. It introduces the privacy parameters epsilon and delta, explains why DP-SGD clips each record’s gradient before aggregation and adds…

Machine learningStatisticsRisk managementEquities
Machine Learning for Trading

This notebook applies classical ordinary least squares inference to ETF features and forward returns. It reviews coefficient estimates, standard errors, t statistics, p values, and tests for heteroscedasticity, residual autocorrelation, non-normality, and…

EquitiesStatisticsRisk managementMachine learning
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 notebook compares time bars with tick, volume, dollar, imbalance, and run bars built from a single day of AAPL exchange trades. The first four sampling approaches group observations by elapsed time, trade count, shares traded, or notional traded.…

EquitiesMarket microstructureStatisticsTechnical indicators
Machine Learning for Trading

This document describes a dataset and workflow for studying cryptocurrency perpetual futures alongside their premium index. It outlines hourly OHLCV observations and eight-hour premium readings across a configured universe, with download, loading, filtering,…

CryptoPerpetual futuresFuturesArbitrage
Machine Learning for Trading

This notebook shows how to tune stop-loss, take-profit, and trailing-stop rules for a momentum portfolio while preserving a chronological holdout. It compares one-dimensional parameter sweeps, joint rule grids, and stop or target priors derived from…

Risk managementBacktestingPosition sizingMomentum
Machine Learning for Trading

This notebook fits PatchTST, a transformer-style sequence model, as one member of a predeclared population of models for S&P 500 options research. It divides a lookback series into fixed-length patches, embeds them as tokens, and uses attention to relate…

OptionsMachine learningBacktestingStatistics
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 document defines two diagnostics for labels whose forward return windows overlap: pooled panel autocorrelation and effective sample size based on label uniqueness. Autocorrelation pairs observations only within the same entity and at the requested…

StatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook shows how to use an estimation-window correlation network to describe an equity universe and build a network-diversified portfolio. It selects liquid symbols using only data available before evaluation, converts return correlations to…

EquitiesPortfolio constructionStatisticsRisk management
Machine Learning for Trading

This notebook builds an LSTM allocator that maps sequences of ETF returns and rolling volatility features directly to long-only portfolio weights. A softmax output keeps weights nonnegative and fully invested. Instead of forecasting returns and feeding those…

Machine learningPortfolio constructionBacktestingRisk management