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

4,613 documents

Machine Learning for Trading

This notebook runs a previously selected US equities configuration on holdout predictions. The selected model, predictions, allocator, concentration, risk overlay, rebalance cadence, and transaction cost assumptions are inherited from earlier stages. Its…

EquitiesUS marketsBacktestingRisk management
Machine Learning for Trading

This notebook demonstrates how a broker wrapper can reject unsafe orders using order-size and position limits, order-rate caps, asset restrictions, and a persistent kill switch. A synthetic broker makes the decisions observable: attempted orders are either…

Risk managementPosition sizingExecution
Machine Learning for Trading

This notebook connects position sizing with analysis of maximum adverse and favorable excursions. It demonstrates fixed-fractional sizing, where shares are determined by a portfolio risk budget and entry-to-stop distance, with a cap on position…

Position sizingRisk managementVolatilityBacktesting
Machine Learning for Trading

This notebook builds uncertainty intervals for ETF forward returns using Ridge regression and three conformal methods: split conformal prediction, conformalized quantile regression, and adaptive conformal inference. It evaluates them with walk-forward folds…

EquitiesMachine learningStatisticsRisk management
Machine Learning for Trading

This notebook studies how allocation rules affect ETF strategies after a model has already ranked assets. It holds the prediction sets and rebalance calendar fixed, selects the same top-k basket for each comparison, and varies the weights assigned within…

EquitiesPortfolio constructionPosition sizingRisk management
Machine Learning for Trading

This notebook tests whether portfolio construction can rescue a cost-defeated, every-bar NASDAQ-100 strategy. It selects leading baseline predictions using the declared selection universe, then runs the allocation comparisons on the full universe. The sweep…

EquitiesPortfolio constructionPosition sizingExecution
Machine Learning for Trading

This notebook takes leading validation prediction configurations from an equal-weight signal-stage baseline and tests alternative allocation methods on the same predictions. It compares score-based and conformal weighting with inverse volatility, risk…

EquitiesPortfolio constructionPosition sizingBacktesting
Machine Learning for Trading

This notebook compares stop-loss, trailing-stop, and time-exit overlays on fixed NASDAQ-100 microstructure backtests. The strategy makes decisions every fifteen minutes, while risk rules monitor prices every minute, allowing an overlay to exit a position…

Risk managementBacktestingPosition sizingEquities
Machine Learning for Trading

This notebook compares split-conformal prediction, conformalized quantile regression, and adaptive conformal inference for forecasting ETF forward returns. In walk-forward folds, it trains on one subset, calibrates interval errors on another, and evaluates…

EquitiesMachine learningStatisticsRisk management
arXiv papers

The document formulates pairs trading as a dynamic portfolio optimization problem. The spread between two related securities follows a Gaussian mean-reverting process, while its drift rate changes according to an unobserved finite-state continuous-time…

Pairs tradingMean reversionRisk managementPosition sizing
arXiv papers

The paper applies generalized extreme value theory to tail returns in bitcoin futures markets to examine forced liquidation risk, leverage, and margin levels for both long and short positions. Its empirical analysis uses BitMEX perpetual futures. It reports…

CryptoFuturesPerpetual futuresRisk management
arXiv papers

The paper proposes a systematic investment approach intended to build wealth over a longer horizon through a sequence of short-term ETF purchase decisions. It combines evolutionary algorithms with a deep learning model to improve the timing of contributions…

EquitiesMachine learningPortfolio constructionPosition sizing
arXiv papers

This paper studies portfolio choice when an asset’s price trend follows an unobserved Ornstein–Uhlenbeck process. It derives optimal strategies for a trader with logarithmic utility under two information settings: one in which the trend is known and one in…

StatisticsRisk managementPosition sizing
arXiv papers

This document extends the Almgren–Chriss optimal execution setting, which assumes a fixed quantity to liquidate, to cases where the required trading volume is uncertain and becomes clearer as a delivery deadline approaches. Power markets are offered as an…

ExecutionRisk managementPosition sizingFutures
arXiv papers

The paper studies portfolio liquidation games in which a trader exits the market once their position reaches zero. This absorption rule rules out round-trip trading and is framed as a no-statistical-arbitrage condition. In a model containing only sellers,…

Market microstructureExecutionPosition sizingStatistics
arXiv papers

The document proposes a systematic way to choose a stop-loss threshold by analyzing the distribution of maximum drawdowns. It frames stop selection as a decision guided by the goal of maximizing expected returns given available information, addressing the…

Risk managementPosition sizingStatisticsBacktesting
arXiv papers

This study applies Twin-Delayed Deep Deterministic Policy Gradient (TD3), a continuous-action reinforcement learning method, to daily closing prices for Amazon stock and Bitcoin. The trading action represents both the position to take and the number of…

CryptoEquitiesMachine learningPosition sizing
arXiv papers

This paper describes a model-less convolutional neural network that takes historical prices for a set of assets and outputs portfolio weights. It is trained through reinforcement learning, with cumulative return serving as the reward. The training data cover…

CryptoMachine learningPortfolio constructionBacktesting
arXiv papers

The paper presents Deep Momentum Networks, which combine deep learning with the volatility-scaling framework used in time series momentum. A neural network learns trend estimates and position sizes together, with its parameters trained to optimize the…

FuturesTrend followingMomentumMachine learning
arXiv papers

This document examines how proportional transaction costs constrain leveraged investing in a market with one safe asset and one risky asset. It considers strategies designed to maximize long-term returns while maintaining an average volatility level, and…

Risk managementPosition sizingVolatilityPortfolio construction
arXiv papers

This paper frames tail-risk management as an allocation across protections for distinct loss patterns: sudden crashes, volatility repricing and prolonged drawdowns. It develops a continuous-time conditional value-at-risk framework that combines long…

OptionsTrend followingRisk managementVolatility
arXiv papers

This study develops a day-ahead bidding and operating policy for a hybrid plant that combines wind generation with an electrolyzer. The policy sets power bids and schedules hydrogen production using contextual information, with linear decision rules learned…

Risk managementPosition sizingMachine learningCommodities
arXiv papers

The paper derives an optimal portfolio strategy for an investor maximizing expected logarithmic utility when multivariate stock-return drift is hidden and evolves as an Ornstein–Uhlenbeck process. The investor learns about drift from observed returns and…

EquitiesStatisticsPortfolio constructionPosition sizing
arXiv papers

The paper investigates whether trading position sizes can help control risk during periods of high volatility. It uses historical backtesting to examine how sizing models behave during crisis events, with particular attention to whether they can reduce value…

Position sizingBacktestingRisk managementVolatility