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

Quant Q&A

The document describes a US company that bills a German client in euros while funding payroll in Egyptian pounds. Its cash flows span USD, EUR, and EGP: funds are converted for payroll in Cairo, client invoices are paid in euros on net terms, and the bank…

ForexRisk managementPosition sizing
Quant Q&A

The document considers how to combine several trading strategies with similar returns and volatility when their trades rarely or sometimes overlap. Equal cash allocations produce a weighted average return, while allocating the full capital to whichever…

Portfolio constructionPosition sizingRisk managementStatistics
Quant Q&A

The document explains why reaching a target portfolio percentage requires recalculating both the bond holdings and the total portfolio value after new money is invested. The example starts with a £40,000 portfolio holding 40% in bonds and asks how much…

Portfolio constructionPosition sizingFixed income
Quant Q&A

This question examines how to manage simultaneous pair trades that each use the same ETF as a hedge. One signal calls for a long position in a stock against a short ETF position, while another calls for a short stock position against a long ETF position. The…

EquitiesPairs tradingPortfolio constructionPosition sizing
Quant Q&A

The document considers a portfolio optimizer that maximizes expected return subject to a Value-at-Risk limit, then adds borrowing to permit leveraged positions. It asks how VaR should be calculated once debt is included. The response says borrowing costs…

Risk managementPortfolio constructionPosition sizingStatistics
Quant Q&A

The document raises a portfolio-construction question: how should raw signals that produce instrument positions be combined into a final portfolio? It considers averaging or weighting signals within each instrument, then applying a portfolio method such as…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document derives the time needed for an account with an initial balance and regular monthly deposits to reach a target under compound interest. It models the balance recursively: each month’s opening balance earns interest, then a deposit is added.…

StatisticsPosition sizing
Quant Q&A

The document asks why trading research does not more often estimate conditional return distributions from data, update them with Bayesian methods, and use those distributions to solve for expected-value-optimal position sizes. It notes that normality…

StatisticsPosition sizingRisk management
Quant Q&A

The document poses a currency risk management exercise for a Czech company with a euro payable due at month end and an expected euro receipt halfway through the month whose arrival is uncertain. It asks how to hedge the exposure using futures, calculate the…

FuturesForexRisk managementPosition sizing
Quant Q&A

The document frames a trading problem in which an oracle repeatedly predicts whether an asset’s price will be higher or lower at a fixed future horizon. Each forecast has a stated accuracy rate, and the question assumes that absolute price-change magnitudes…

StatisticsPosition sizingExecution
Quant Q&A

The document discusses mean-variance portfolio optimization with a target return, a fully invested constraint, and a limit on the sum of absolute portfolio weights. That absolute-weight constraint limits gross leverage while allowing short positions. It…

Portfolio constructionPosition sizingRisk managementEquities
Quant Q&A

The document presents an R simulation intended to reproduce a Kelly capital growth example. It defines a set of bets with different win probabilities and odds, assigns probabilities to selecting each bet, and associates each with an optimal Kelly stake. The…

StatisticsPosition sizingBacktestingRisk management
Quant Q&A

The document explains how to translate mean-variance portfolio weights into holdings. Given total capital and asset prices, allocate capital in proportion to each optimized weight, then divide each allocation by the asset price to obtain the number of…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document asks how to choose a log-growth-maximizing allocation for a portfolio holding a stock and an option through expiration, without continuous hedging. It contrasts the familiar single-asset Kelly formula with the harder joint problem and describes…

OptionsEquitiesPosition sizingRisk management
Quant Q&A

The document examines how to obtain long-term leveraged exposure to a single stock with a stable leverage factor, no knock-out, and no fixed end date. Suggested structures include European factor certificates, bespoke total-return swaps or contracts for…

EquitiesDerivatives pricingRisk managementPosition sizing
Quant Q&A

The document analyzes a game with fourteen cards that double a bankroll and one card that sharply reduces it. A player chooses how many cards to draw, and the discussion contrasts the expected value of the choice with its variance and Sharpe ratio. The…

Risk managementPosition sizingStatistics
Quant Q&A

The document explains the return of a hedged position that holds one unit of stock A and shorts h units of stock B. The portfolio’s return is written as rA − h rB: stock A contributes its return, while the short position contributes the negative of stock B’s…

EquitiesRisk managementPosition sizing
Quant Q&A

The document explains two ways to estimate interest rate swap PV01 and infer a notional from a target risk amount. For an exact sensitivity, it recommends pricing with unbumped market data, bumping the market curve, repricing, and measuring the change. When…

Fixed incomeRisk managementPosition sizing
Quant Q&A

The document shows how to calculate a running net amount for a short-selling backtest when positions are added over time. The proposed recurrence updates the previous net amount by the next period's short-sale price change, then adds the value of any new…

BacktestingEquitiesPosition sizingExecution
Quant Q&A

The document raises an implementation question about the differential Sharpe ratio in an online setting. It contrasts this approach with calculating Sharpe over a sliding time window and notes that the method updates two recursively maintained quantities,…

StatisticsRisk managementPosition sizing
Quant Q&A

The document explains why Kelly sizing maximizes expected logarithmic wealth rather than expected terminal wealth. In a repeated favorable coin-toss game, betting all available capital can maximize expected wealth but carries a high risk of ruin. Betting a…

Position sizingRisk managementPortfolio constructionStatistics
Quant Q&A

The document addresses how to calculate portfolio weights as they drift under buy-and-hold returns, an operation used in a Monte Carlo stress-testing workflow. It states the recursive update: each asset’s prior weight is multiplied by its gross return and…

Portfolio constructionBacktestingPosition sizing
Quant Q&A

The document asks how to estimate the price change that would make a risk-adjusted trading system add one share. The proposed procedure estimates annualized return volatility at the latest price, calculates the current position, then holds volatility fixed…

Position sizingVolatilityRisk management
Quant Q&A

The exchange considers how to choose whole-share quantities under a cash budget to approximate target portfolio weights. It critiques an objective that minimizes squared differences in share counts: equal share-count errors can represent very different…

Portfolio constructionPosition sizingEquities