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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

742 documents

Machine Learning for Trading

This notebook presents a deployment bridge between an offline machine-learning pipeline and QuantConnect's LEAN trading engine. It selects a model run reproducibly from a registry, exports its holdout predictions as date-indexed JSON, and uses a small…

Machine learningPortfolio constructionExecutionBacktesting
Machine Learning for Trading

This notebook evaluates four news-derived signals—weighted surprise, average sentiment, sentiment change, and article coverage—against forward stock returns. It computes a daily cross-sectional Spearman information coefficient, summarizes its mean,…

EquitiesSentimentStatisticsFactor investing
Machine Learning for Trading

This document describes fitting temporal convolutional networks to NASDAQ 100 minute level microstructure features. Causal convolutions prevent a prediction from using later observations, while dilation lets successive layers capture patterns over multiple…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This analysis checks whether daily options and share data can support a weekly S&P 500 strategy that ranks constituents by thirty day at the money implied volatility and buys the highest ranked shares. Options provide the signal, while the portfolio holds…

EquitiesOptionsVolatilityBacktesting
Machine Learning for Trading

This document describes a one year out of sample backtest of S&P 500 option straddles. It applies predictions from a model refit on pre holdout history, together with the previously selected strategy, allocation, concentration, weekly entry schedule, hedge…

OptionsBacktestingRisk managementUS markets
Machine Learning for Trading

This analysis compares predictions from several model families trained on monthly US stock characteristics to forecast next-month returns. It focuses on cross-sectional information coefficient, which measures how well a model ranks stocks within each month.…

EquitiesUS marketsMachine learningStatistics
Machine Learning for Trading

This case study fits regularized linear models to returns from short at-the-money straddles held to expiry. The trade collects call and put premiums, giving it a capped maximum gain but potentially very large losses when the underlying moves sharply.…

OptionsVolatilityMachine learningStatistics
Machine Learning for Trading

The document explains how an experiment registry can track a model from its training configuration through predictions to backtest results. Each stage receives an identifier derived from a canonicalized specification, allowing repeated identical runs to…

Machine learningStatisticsBacktestingRisk management
Machine Learning for Trading

This notebook compares methods for discovering relationships among a panel of ETF returns: NOTEARS for contemporaneous linear directed acyclic graphs, VAR-LiNGAM for lagged and instantaneous structure, PCMCI for conditional-independence links, and Granger…

Machine learningStatisticsEquitiesBacktesting
Machine Learning for Trading

This notebook demonstrates tuning LightGBM hyperparameters with Optuna's TPE sampler, using cross-sectional information coefficient as the objective. It combines early stopping to choose the number of boosting rounds with a custom pruning callback that…

Machine learningBacktestingStatisticsEquities
Machine Learning for Trading

This chapter presents portfolio construction as the process of converting return forecasts, risk estimates, and constraints into weights, leverage, and rebalancing decisions. It lays out a research workflow for documenting allocator choices, avoiding…

Portfolio constructionRisk managementPosition sizingBacktesting
Machine Learning for Trading

This notebook explains how to evaluate position-level exits and combine them with portfolio-wide controls. Fixed stop-loss, take-profit, and time exits are contrasted with trailing and tightening stops; a scaled exit reduces a position at successive profit…

Risk managementPosition sizingBacktestingPortfolio construction
Machine Learning for Trading

This study converts registered model predictions into comparable S&P 500 option strategies. On weekly decision dates it ranks predicted returns, filters to a liquid universe, and sells equally weighted at-the-money straddles on the highest-ranked symbols.…

OptionsEquitiesBacktestingExecution
Machine Learning for Trading

This notebook brings together five latent-factor approaches for modeling the S&P 500 options case study’s equity return cross-section. PCA estimates common movements from returns alone; IPCA maps characteristics to exposures linearly; a conditional…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This notebook demonstrates the Rademacher Anti-Serum protocol as a way to account for selecting a winner from a class of tested strategies. It estimates empirical complexity from candidate performance paths, illustrating how dependence among candidates…

BacktestingStatisticsRisk management
Machine Learning for Trading

This notebook develops a two-model exit policy for hourly crypto perpetuals. An entry classifier identifies unusually strong forward returns, while an exit classifier predicts whether the next forward return will be negative. The exit model receives…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This notebook synthesizes results from nine market case studies into a cumulative strategy-screening funnel. It tests, in order, whether a model has positive information coefficient, whether its selected configuration has positive validation Sharpe, whether…

BacktestingStatisticsRisk managementExecution
Machine Learning for Trading

This notebook explains when a strategy is clearest as precomputed arrays and when it benefits from a sequential simulation that carries positions, fills, cash, realized profit and loss, or equity forward through time. Array-based backtests are attractive…

BacktestingPosition sizingPairs tradingRisk management
Machine Learning for Trading

This notebook assesses whether total value locked can serve as an alternative-data signal for ether returns. TVL aggregates the dollar value of crypto assets deposited in decentralized finance protocols. Because it is a price-valued stock rather than a…

CryptoDeFiOn-chain dataStatistics
Machine Learning for Trading

This notebook evaluates one previously selected S&P 500 options configuration on a holdout period. It reuses the registered model predictions and strategy settings, including the signal schedule, allocation, hedge rule, and trading costs, without tuning them…

OptionsBacktestingRisk managementUS markets
Machine Learning for Trading

This notebook explains a supervised autoencoder for predicting the direction of future US equity returns across multiple horizons. Its encoder feeds a reconstruction decoder, an auxiliary classifier, and a main classifier. Joint training combines…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook builds a portfolio allocator that places a Temporal Fusion Transformer-style variable-selection network before an LSTM encoder. The selection network embeds each input feature separately and assigns softmax weights, allowing the model to vary…

EquitiesMachine learningPortfolio constructionRisk management
Machine Learning for Trading

This notebook compares pandas and Polars on operations used in financial data pipelines, including rolling calculations, grouped OHLCV summaries, window statistics, filtering, joins, lazy file scans, memory use and string processing. It generates synthetic…

StatisticsExecutionBacktesting
Machine Learning for Trading

This notebook describes a TabM workflow for foreign-exchange pair models. TabM applies a small neural network to each decision row rather than treating the observations as a sequence. The notebook takes architecture and checkpoint schedules from…

ForexMachine learningBacktestingStatistics