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
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
WonderTrader
14 documents
Alphalens
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

566 documents

Machine Learning for Trading

This notebook describes a 15-minute backtest workflow for predictions on NASDAQ-100 stocks. It first runs a random-signal plumbing check: because random trading should lose after costs, a persistently profitable result can indicate problems such as…

EquitiesBacktestingExecutionMarket microstructure
Machine Learning for Trading

This notebook constructs market microstructure measures from NASDAQ ITCH trade data, aggregates trades into intraday bars, and distinguishes liquidity proxies from order-flow signals and order-book state. It classifies individual trades with a tick rule…

EquitiesMarket microstructureHigh-frequency tradingStatistics
Machine Learning for Trading

This notebook builds forward-return labels for a strategy that reads listed-option signals and trades the underlying shares. It adjusts daily share prices for splits and dividends, uses a persistent security identifier, and defines returns between executable…

EquitiesOptionsMachine learningBacktesting
Machine Learning for Trading

This notebook estimates how much an equal-weight portfolio of surviving US equities can overstate returns relative to a portfolio that includes firms leaving the dataset. It first examines when the panel records exits, finding that the usable exit history…

EquitiesUS marketsBacktestingStatistics
Machine Learning for Trading

This notebook studies how transaction costs affect a frequently rebalanced NASDAQ-100 strategy. It first applies basis-point cost assumptions to existing pre-cost backtests to show how Sharpe changes as costs rise. It then compares full-universe and…

EquitiesExecutionMarket microstructureBacktesting
Machine Learning for Trading

This notebook explains instrumented principal component analysis as a way to make latent-factor loadings depend on observable stock characteristics rather than assigning each stock a fixed loading. A shared mapping from characteristics to factor exposures…

EquitiesMachine learningStatisticsFactor investing
Machine Learning for Trading

This notebook demonstrates how to tune StopLoss, TakeProfit, and TrailingStop rules for a momentum portfolio while preserving a chronological separation between calibration and evaluation. It tests individual rule widths and joint combinations using…

EquitiesRisk managementBacktestingMomentum
Machine Learning for Trading

This document demonstrates connecting a five-day ETF momentum strategy to Alpaca through a shared strategy interface. The strategy tracks momentum across SPY, QQQ, and IWM and generates signals when it crosses a threshold. Broker-specific adapters handle…

EquitiesMomentumExecutionRisk management
Machine Learning for Trading

This document introduces a family of firm-return models that assumes a small set of unobserved common factors explains much of the cross-section. Rather than predicting returns directly from characteristics, these models infer each firm's factor exposures…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This document explains how wavelet decompositions and rolling spectral estimates describe financial returns at different time scales. Wavelets divide returns into components spanning progressively slower periods, making it possible to see which scales…

EquitiesStatisticsVolatilityTechnical indicators
Machine Learning for Trading

This notebook turns model prediction sets into comparable S&P 500 options backtests. On each weekly decision date, it ranks predicted returns, selects the highest-ranked symbols in the liquid universe, and sells equally weighted at-the-money straddles.…

OptionsEquitiesBacktestingExecution
Machine Learning for Trading

This document explains how to compare an incumbent and a candidate model in shadow evaluation before allocating capital. It fixes their roles and promotion thresholds in advance, then assesses the candidate on five dimensions: improvement in annualized…

Machine learningStatisticsRisk managementBacktesting
Machine Learning for Trading

The notebook introduces a supervised autoencoder for equity factor modeling. Unlike unsupervised autoencoders that learn a bottleneck by reconstructing the cross-section, this model also includes forward returns in its training objective. The target…

EquitiesMachine learningFactor investingStatistics
Machine Learning for Trading

This exploratory notebook describes the structure and interpretation of AlgoSeek NASDAQ-100 minute bars. It organizes the dataset’s precomputed fields into quote prices and sizes, trade prices, spreads, volume, trade-location buckets, tick direction,…

EquitiesMarket microstructureExecutionUS markets
Machine Learning for Trading

The notebook explains how to separate continuous price variation from jumps in intraday equity returns. It estimates daily realized variance from squared returns and uses bipower variation as a jump-robust estimate of the continuous component; their…

EquitiesVolatilityStatisticsMarket microstructure
Machine Learning for Trading

The document demonstrates a broker wrapper that checks orders and portfolio state before forwarding trades. Its controls include per-order share and value caps, position exposure limits, order-rate limits, asset allow and block lists, and an emergency halt.…

Risk managementPosition sizingExecutionBacktesting
Machine Learning for Trading

This chapter surveys financial text representations, from dictionaries and word counts through TF-IDF, static embeddings, recurrent networks, and Transformers. It explains the trade-offs: simpler methods are fast, interpretable, and adaptable to finance,…

Machine learningSentimentStatisticsEquities
Machine Learning for Trading

This case study evaluates monthly long-short decile strategies built from US firm characteristics, comparing linear models, gradient boosting, and latent-factor approaches under point-in-time accounting lags, walk-forward validation, and era-dependent…

EquitiesUS marketsFactor investingMachine learning
Machine Learning for Trading

This analysis compares three ways to convert signed model return forecasts into binary positions: a fixed zero cutoff, a trailing percentile for each symbol, and a cross-sectional percentile across symbols. It applies the rules to registered validation…

Machine learningExecutionBacktestingCrypto
Machine Learning for Trading

This notebook turns 21-day forward ETF returns into an up-or-down target and evaluates L1- and L2-regularized logistic regression on chronological walk-forward folds. It scales features using each fold’s training data, then assesses predictions with…

Machine learningStatisticsPosition sizingEquities
Machine Learning for Trading

This notebook compares gradient boosting objectives on monthly US stock returns while holding features, target, and walk-forward folds fixed. It contrasts squared error with absolute error and Huber loss, which reduces the influence of large residuals. The…

EquitiesMachine learningBacktestingStatistics
Machine Learning for Trading

This implementation describes a conditional autoencoder for asset pricing. A beta network maps each stock’s characteristics to latent factor loadings, while a linear factor network maps managed portfolio returns to factor returns. The model predicts a stock…

EquitiesFactor investingMachine learning
Machine Learning for Trading

This notebook assesses whether historical ETF data can support a monthly ranking strategy before any model or forecast is built. It checks point-in-time eligibility using prior-year liquidity, counts available funds on rebalance dates, converts per-share…

EquitiesBacktestingExecutionStatistics
Machine Learning for Trading

This notebook screens candidate features for a strategy that sells at-the-money call and put options on the same stock with the same expiry, holding the straddle to expiration. For each feature, it measures whether the feature ranks available names in the…

OptionsEquitiesStatisticsRisk management