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

Search the library

4,613 documents

Quant Q&A

The document considers position sizing for a hypothetical signal that predicts an index’s direction with a 60% win probability against 40% losses. One answer applies the Kelly criterion to maximize long-run capital growth and gives a fraction of capital to…

Position sizingRisk managementVolatilityStatistics
Quant Q&A

The document raises a portfolio optimization issue: a turnover constraint with a target of zero appears not to preserve user-specified starting weights. In the example, the author sets four initial asset weights, applies box and return and risk objectives,…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document explains how a bond portfolio’s DV01 changes when the number of identical bonds increases. DV01 measures the dollar price change associated with a one basis point yield move, so the portfolio’s DV01 is the per-bond amount multiplied by the…

Fixed incomeRisk managementPosition sizing
Quant Q&A

The document examines a proposed position-sizing rule that scales exposure using portfolio capital, a target volatility, instrument volatility and price, and a portfolio-level multiplier. That multiplier is based on the ratio of target volatility to lagged…

VolatilityPosition sizingPortfolio constructionRisk management
Quant Q&A

The document frames option selection as a finite search over quoted calls: given a target stock price at expiration, calculate each contract’s profit relative to its premium and select the strike with the highest percentage return. For a discrete set of…

OptionsDerivatives pricingPosition sizing
Quant Q&A

The discussion considers whether cryptography and speech recognition methods inform financial forecasting, with the accepted answer reframing cryptography as information theory. It connects Kelly-style allocation to sizing capital across strategies and notes…

Machine learningStatisticsPosition sizingPortfolio construction
Quant Q&A

The document considers a one-sided strategy that repeatedly places buy and sell orders at price levels determined by step counts in a geometric random walk. The question asks how to choose those levels to maximize expected profit over a fixed horizon, but…

StatisticsRisk managementPosition sizingBacktesting
Quant Q&A

The document discusses coordinating two high-frequency agents that trade opposite sides of a market while managing inventory and exposure limits. It frames market making as a control problem in which quotes must balance expected execution quality against the…

Market makingHigh-frequency tradingMarket microstructureRisk management
Quant Q&A

The document checks a continuous-time Kelly criterion derivation for a portfolio split between a risky asset and a risk-free asset. The key correction to the proposed wealth process is that the Brownian shock must be scaled by the risky allocation as well as…

Position sizingRisk managementStatistics
Quant Q&A

The discussion considers how to judge algorithm performance when strategies have different returns and Sharpe ratios across instruments. It argues that Sharpe alone is incomplete: it relates excess return to total return variability, but a high value can be…

StatisticsRisk managementBacktestingPosition sizing
Quant Q&A

The document considers whether a risk-aversion parameter can be inferred from a target value at risk under a continuous-time portfolio model. The risky-asset allocation follows the Merton rule, linking weight to expected return, the risk-free rate,…

Risk managementPosition sizingStatisticsPortfolio construction
Quant Q&A

The discussion clarifies the meaning of the drift vector in the unconstrained Kelly portfolio formula, where allocations depend on the inverse return covariance matrix and excess drift over the risk-free rate. The answer says the objective is long-run…

Portfolio constructionPosition sizingStatisticsRisk management
Quant Q&A

The document asks how to calculate cumulative percentage performance for a strategy whose long and short notionals, and thus net exposure, change frequently. It defines daily return as daily dollar PnL divided by that day’s net exposure, using a long-short…

StatisticsRisk managementPosition sizing
Quant Q&A

The responses distinguish parameters estimated from data from hyperparameters chosen to configure a model. A parametric example assumes that two variables follow a specified probability distribution and estimates its means and covariance from observed…

Machine learningStatisticsRisk managementPosition sizing
Quant Q&A

The document poses a risk management question: how to choose a withdrawal fraction and a profit threshold for taking money out of a trading account while balancing ruin risk against compounding. It gives an illustrative proposal based on withdrawing part of…

Risk managementPosition sizingPortfolio construction
Quant Q&A

The document asks whether splitting a fixed, unlevered, long-only investment across up to a limited number of entry dates can improve expected payoff by lowering the weighted average purchase price. Its accepted answer models each period’s return as an…

StatisticsPosition sizingRisk management
Quant Q&A

The document addresses how to place several orders when a trading target is expressed as a price interval rather than a single price. Its proposed approach first sets the number of orders according to the capital allocated to the decision and the minimum…

ExecutionPosition sizingMarket microstructure
Quant Q&A

The document compares two R backtesting options: Quantstrat, which works with related portfolio and financial-instrument packages, and the Systematic Investor Toolbox (SIT). It does not provide a formal benchmark; instead, it collects user impressions about…

BacktestingPortfolio constructionPosition sizingExecution
Quant Q&A

The document gives an approximate way to relate SPY price movements to E-mini S&P 500 futures exposure. It states that the cash index level is about ten times the SPY price, while each futures contract gains or loses a fixed dollar amount for each index…

EquitiesFuturesUS marketsPosition sizing
Quant Q&A

The discussion addresses how to approach trading on betting exchanges, including sport selection, research effort, bankroll, and exchange fees. Its main strategic point is that high liquidity can make prices more efficient: odds may adjust quickly to reflect…

StatisticsRisk managementPosition sizing
Quant Q&A

The document raises a portfolio-allocation problem for an algorithmic trader running several stock-market models that may generate signals at the same time. With a finite wallet, committing all capital to one model can prevent acting on another signal and…

EquitiesPortfolio constructionPosition sizingRisk management
Quant Q&A

The document considers how to express a long Mexican peso versus Japanese yen position using separate currency futures. It compares the dollar-equivalent notionals of two yen contracts and one peso contract, then asks whether the proposed direction is to…

FuturesForexPairs tradingRisk management
Quant Q&A

This discussion examines a simulation inspired by Mark Spitznagel’s account of traders choosing between strategies with different payoff shapes. One strategy offers frequent small gains and rare large losses; the other offers frequent small losses and rare…

StatisticsRisk managementBacktestingPosition sizing
Quant Q&A

This note derives the market decline that would reduce a leveraged stock portfolio to its maintenance margin threshold. It defines cash or borrowing, the market value of long positions, and the maintenance margin fraction, then sets portfolio equity equal to…

EquitiesRisk managementPosition sizing