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

Quant Q&A

The document explains how to calculate an external cash inflow that moves a portfolio toward target weights without selling overweight holdings. It distinguishes this approach from conventional rebalancing, where assets above target are sold to fund…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document sketches a data-driven workflow for developing systematic trading ideas: identify possible market regimes, find predictors from price or fundamental data, combine weaker signals with machine learning or ensembles, and refine rules through…

Machine learningStatisticsPosition sizingBacktesting
Quant Q&A

The document describes how to optimize portfolio allocations against objectives such as drawdown or the Sortino ratio. It recommends expressing the chosen risk or reward measure as a scalar function of portfolio weights, then using an optimizer suited to…

Portfolio constructionRisk managementPosition sizingBacktesting
Quant Q&A

The document explores how a market-cap-weighted ETF with two stock holdings might represent a two-times long position. It asks how to determine the fund’s initial share price and share count, then works through a one-day example in which the holdings rise by…

EquitiesPortfolio constructionRisk managementPosition sizing
Quant Q&A

The document considers what happens when a leveraged exchange-traded fund’s daily target return would imply a loss greater than the fund’s entire value. In its example, a three-times fund tied to a broad equity ETF would face a theoretical loss exceeding…

EquitiesRisk managementVolatilityPosition sizing
Quant Q&A

The document considers how to turn multi-day price forecasts and predictive intervals into trade selection and capital allocation. It cautions against maximizing forecast return alone, since that can lead to concentrated, all-in positions. Instead, it points…

Position sizingRisk managementPortfolio constructionBacktesting
Quant Q&A

The response sketches how a forex broker can offer leveraged trading without separately arranging a loan for each customer. A client holds a position through a credit line from the broker, while the broker aggregates or manages its customers’ positions using…

ForexPosition sizingRisk management
Quant Q&A

The document considers a 16-week portfolio contest in which participants seek the highest return, can observe one another's weekly results and holdings, and do not affect market prices. It asks whether copying successful portfolios offers a game-theoretic…

EquitiesPortfolio constructionRisk managementPosition sizing
Quant Q&A

The document poses a finite-horizon choice between earning a time-varying short rate and switching at a chosen time to a lottery ticket with an expected payoff. The short rate and a component of the lottery payoff are defined through ordinary differential…

StatisticsRisk managementPosition sizing
Quant Q&A

The document compares ways to size a wager in a one-time, even-odds coin-flip game with asymmetric payouts. Applying the Kelly criterion gives a quarter of bankroll for the stated payoff, which maximizes long-run logarithmic growth when bets can be repeated.…

StatisticsPosition sizingRisk management
Quant Q&A

The document asks how to size 10-year Treasury micro futures against a full-sized 10-year note futures contract when adjusting exposure for volatility. It reports an estimated volatility ratio of 5.125 between the micro and full-sized contracts and seeks the…

FuturesFixed incomeVolatilityPosition sizing
Quant Q&A

The document examines how to adjust a minimum-variance cross-hedge when futures are marked to market daily. It contrasts the hedge ratio based on correlations and standard deviations of price changes with the contract count based on position values. The…

FuturesRisk managementPosition sizingStatistics
Quant Q&A

The document clarifies how pattern day trader buying power relates to maintenance margin excess. Its example distinguishes the account minimum from the maintenance excess: with no positions and an account balance of $26,000, the answer treats the full…

EquitiesHigh-frequency tradingRisk managementPosition sizing
Quant Q&A

The document asks whether leverage should multiply entry and exit prices when calculating profit and loss on a CFD or forex trade. Its accepted explanation separates price profit from financing: profit is the exit price minus the entry price, while funding…

ForexRisk managementPosition sizingExecution
Quant Q&A

The document examines how a brokerage’s initial and maintenance margin requirements relate to the stock price at which a leveraged position may be liquidated. The author presents a formula based on cash borrowed per share and the maintenance margin rate,…

EquitiesRisk managementPosition sizing
Quant Q&A

The document asks how to choose portfolio leverage when wealth follows a diffusion with proportional exposure to a risky asset and a constant cost paid over time. Without costs, power utility gives a closed-form leverage rule, with log utility corresponding…

Position sizingRisk managementStatistics
Quant Q&A

The document considers whether portfolio weights can be chosen by maximizing average portfolio log returns directly from observed data, without fitting a named probability distribution. One response explains that this still amounts to modeling returns: the…

Portfolio constructionPosition sizingStatisticsRisk management
Quant Q&A

The document asks how to calculate daily returns for a short straddle from an options dataset containing dates, maturities, strikes, call or put labels, moneyness, implied volatility, and delta. The response identifies a key data gap: these fields do not…

OptionsDerivatives pricingRisk managementPosition sizing
Quant Q&A

The question seeks a hindsight trading sequence from OHLC forex bars, subject to leverage, spread, and a lookahead window intended to reduce exposure near whipsaws. The proposed method is to formulate the sequence of positions across bars as a candidate…

ForexBacktestingPosition sizingRisk management
Quant Q&A

The document asks whether maximum adverse excursion (MAE) can help select a stop-loss level when a scatter plot of long-trade outcomes against MAE shows winning and losing trades mixed across the range. The proposed visual inspection finds no obvious MAE…

Risk managementPosition sizingBacktestingStatistics
Quant Q&A

The document considers how to evaluate strategies whose trades begin and end at irregular event times. It distinguishes measuring the average return around an event from measuring the cumulative performance of a strategy. For event analysis, the question…

Event-drivenBacktestingPortfolio constructionPosition sizing
Quant Q&A

The document considers a rule for gradually selling shares as a stock rises: sell portions at successively higher prices so the remaining holding’s dollar value stays roughly constant. It asks whether this approach balances gains and risk when the future…

EquitiesRisk managementPosition sizing
Quant Q&A

The document asks how to interpret the maximum inventory parameter in the infinite-horizon Avellaneda–Stoikov market-making model. The response describes it as a chosen cap on inventory, intended to limit how large a position the market maker can accumulate,…

Market makingHigh-frequency tradingPosition sizingRisk management
Quant Q&A

A common quick backtest multiplies each day’s asset returns by lagged signals, combines the resulting returns across assets, and compounds the daily portfolio series into net asset value. This construction implicitly resets exposures as portfolio value…

BacktestingPortfolio constructionPosition sizing