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
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

105 documents

Machine Learning for Trading

This notebook uses real ETF data to assess whether a momentum signal remains useful under reasonable changes to its lookback, market regime, and implementation. It computes cross-sectional information coefficients between momentum and forward returns, then…

FuturesMomentumBacktestingStatistics
Machine Learning for Trading

This notebook compares two simulations of the same monthly ETF momentum strategy. Both use identical target weights, universe, dates, and total trading cost. One computes returns from lagged weights and asset returns; the other processes orders sequentially…

EquitiesMomentumBacktestingExecution
Machine Learning for Trading

This notebook distinguishes predicting returns from claiming that momentum causes them. It treats a stock’s prior-year return, excluding the latest month, as the treatment and forward return as the outcome. Recent volatility, illiquidity rank, and volume…

EquitiesMomentumMachine learningStatistics
Machine Learning for Trading

This notebook tests whether learned graph embeddings add predictive information to a tabular model for US stocks. It builds a network from absolute return correlations measured before the target period, constructs momentum, volatility, and trend features…

EquitiesMachine learningBacktestingMomentum
Machine Learning for Trading

This notebook diagnoses how a fixed, long-only ETF momentum baseline performed across market conditions from 2010 to 2024. It labels each daily return using volatility and trend measures known before that return began, with expanding historical medians…

EquitiesMomentumTrend followingVolatility
Machine Learning for Trading

This notebook explains TSMixer, a time-series neural network that alternates two operations: a shared linear map across lookback days for each feature, and a shared feature MLP applied independently at each day. Residual connections and pre-normalization…

Machine learningMomentumStatisticsBacktesting
Machine Learning for Trading

This notebook defines forward-return targets for ranking US stocks and explains how to make their horizons correspond to actual trading sessions. It uses split- and dividend-adjusted prices for returns, but uses the contemporaneous printed close and dollar…

EquitiesMomentumStatisticsBacktesting
Machine Learning for Trading

This pipeline constructs financial features for an ETF deployment workflow from OHLCV prices and a yield curve. It derives returns and risk-adjusted returns across multiple lookback periods, momentum acceleration and volatility ratios, then adds common…

EquitiesMomentumVolatilityTechnical indicators
Machine Learning for Trading

This case study applies causal estimation to ETF momentum and asks whether its effect on forward returns varies with market volatility. It uses a continuous momentum treatment, a 21-day forward-return outcome, volatility and yield-curve controls, and a…

EquitiesUS marketsMomentumMachine learning
Machine Learning for Trading

The document turns a cross-asset momentum hypothesis into a monthly exploratory test using a 100-ETF universe. It constructs adjusted month-end prices, measures 12-to-1-month momentum, then ranks eligible ETFs into five equal-weight groups and compares their…

Multi-assetMomentumTrend followingStatistics
Machine Learning for Trading

This notebook explains why ordinary t-tests can overstate the strength of an information coefficient (IC) when daily IC observations are dependent. It constructs a momentum signal on ETF data, examines the IC autocorrelation, and introduces Newey–West…

StatisticsBacktestingMomentum
Machine Learning for Trading

This notebook examines how rebalancing cadence affects turnover, gross performance, and cost-adjusted results for a top-ranked momentum portfolio of ETFs. It estimates turnover from historical target-weight changes at daily, weekly, biweekly, and monthly…

EquitiesMomentumExecutionBacktesting
Machine Learning for Trading

This notebook compares LightGBM models with a ridge baseline for predicting ETF returns over two horizons. It explains why trees can discover regime-dependent interactions, such as momentum behaving differently under market stress, while greedy splits can be…

EquitiesMachine learningBacktestingStatistics
Machine Learning for Trading

This demo outlines an always-on crypto trading loop connected to Alpaca’s USD spot market. It maps a perpetual-futures case-study universe to the venue’s supported spot pairs, making clear that only a subset can be traded there. The example signal is a…

CryptoSpot marketsPerpetual futuresMomentum
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 US equities case study distinguishes predicting future returns from claiming that momentum causes them. It treats a stock’s prior-year return excluding the latest month as the treatment, forward return as the outcome, and recent volatility, illiquidity…

EquitiesMomentumMachine learningStatistics
Machine Learning for Trading

This notebook expands an ETF feature evaluation from a single return horizon to a scan across ten features and three horizons, correcting for multiple tests. It then applies mechanism-based diagnostics to long-lookback 12-1 momentum and short-term reversal:…

Multi-assetMomentumMean reversionStatistics
Machine Learning for Trading

This notebook uses Double Machine Learning (DML) to estimate the adjusted effect of a continuous ETF momentum measure on subsequent returns, controlling for recent and longer-term volatility, market regime, and yield-curve slope. It compares unadjusted…

Machine learningStatisticsEquitiesMomentum
Machine Learning for Trading

This feature-engineering module prepares daily price data for systematic macro portfolio models. It creates horizon returns scaled by estimated volatility, several multi-scale MACD signals, and rolling z-scores of log prices. The return horizons can use a…

Multi-assetMomentumTrend followingVolatility
Machine Learning for Trading

This tutorial surveys features built from asset price and volume histories, including returns across horizons, trend and reversal measures, several volatility estimators, volatility regimes, liquidity, tail risk, and cross-sectional normalization. It…

Technical indicatorsMomentumVolatilityMachine learning
Machine Learning for Trading

This case study evaluates daily cross-sectional signals across a broad US stock universe and lays out a long research pipeline, from point-in-time data and engineered features through model comparison, portfolio construction, costs, and holdout assessment.…

EquitiesMachine learningMomentumMean reversion
Machine Learning for Trading

This notebook evaluates a cross-sectional momentum factor using information coefficients, quantile returns, top-to-bottom spreads, and classification diagnostics. It introduces Spearman IC as the date-by-date rank correlation between a signal and subsequent…

MomentumFactor investingStatisticsBacktesting
Machine Learning for Trading

This notebook compares two Transformer designs for forecasting 21-day ETF returns from trailing momentum features. PatchTST groups consecutive days into patches, placing short sequences of local shape in each token. iTransformer instead treats each feature’s…

EquitiesMachine learningMomentumBacktesting