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 clarifies how leverage and financing apply to a long short strategy whose positions vary during the day and are closed before the next session. It presents a profit and loss accounting framework that combines changes in long and short market…

EquitiesRisk managementPosition sizing
Quant Q&A

The document explains that leverage can describe an investment financed partly with borrowed money. Its example compares buying an option entirely with personal funds against financing half the premium with debt. The borrowed portion increases the return on…

OptionsDerivatives pricingRisk managementPosition sizing
Quant Q&A

The discussion distinguishes quantitative trading from technical analysis by the rigor and breadth of the research process, rather than by how complicated an indicator is. A moving average or signal-processing filter can be used by either a discretionary…

Technical indicatorsBacktestingStatisticsPosition sizing
Quant Q&A

The document compares two long-term U.S. Treasury bond futures for outright, long-biased trading. It presents Ultra Treasury Bond futures as having a more consistent volatility profile, attributing this to a more homogeneous deliverable basket and an…

FuturesFixed incomeUS marketsVolatility
Quant Q&A

The document considers how to estimate the assets under management a low-frequency equity strategy can support and how to size its orders. It raises average daily volume as a possible liquidity yardstick, while noting that slippage, market impact, and…

EquitiesExecutionMarket microstructurePosition sizing
Quant Q&A

The document describes a way to size orders across a geometric price grid so that the average execution price approaches a chosen target. It starts with equally sized orders, whose average price differs from the target, then adjusts each order’s weight…

Grid tradingPosition sizingExecution
Quant Q&A

The document poses an allocation question: how to split capital between an active fund and a passive ETF when the active fund’s risk relative to a benchmark exceeds the investor’s portfolio active-risk budget. It compares two proposed rules: divide the…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document shows how to account for a short position in open profit and loss using a signed position quantity. In its example, a short position is represented by a negative share count. When the current price falls below the entry price, the position has…

EquitiesRisk managementPosition sizing
Quant Q&A

The document examines how to define a return for a futures spread when entering the position does not require paying its notional value. Initial and maintenance margin do not, by themselves, provide a stable measure of the capital committed or at risk. The…

FuturesRisk managementPosition sizing
Quant Q&A

The document explains how to limit the number of assets selected by a linear portfolio optimizer. The motivating case has a large monthly universe, limited trading capacity, and an objective that maximizes the sum of each asset’s score multiplied by its…

Portfolio constructionPosition sizingStatistics
Quant Q&A

The document explains why a portfolio’s computed Sharpe ratio can rise when daily returns are multiplied by a leverage factor, even though the arithmetic daily Sharpe remains unchanged. Under the standard formulation, portfolio excess arithmetic mean and…

StatisticsRisk managementPosition sizing
Quant Q&A

The document raises questions about whether risk of ruin (ROR), a concept associated with gambling, can describe trading losses and whether a zero probability in a published table means ruin is impossible or merely very unlikely. It also asks how win rate…

Risk managementPosition sizingStatistics
Quant Q&A

The document asks how a futures backtester should represent the funds required when opening long or short positions. It considers using margin requirements calculated through CME's SPAN system and asks where historical margin data can be obtained, noting…

FuturesBacktestingRisk managementPosition sizing
Quant Q&A

This answer derives how many shares to sell after a price change to restore an asset to its initial portfolio weight, assuming sale proceeds remain in cash and no outside capital is added. It writes the starting and ending portfolio values, equates the…

Portfolio constructionPosition sizingRisk management
Quant Q&A

This exchange considers whether an asset with negative expected return can still be useful when combined with a portfolio, especially if its returns are negatively correlated or uncorrelated with the portfolio. The answer focuses on expected return relative…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document asks why traders use leverage if it does not improve a strategy’s risk-to-return ratio. Its answer distinguishes changing a ratio from scaling the amounts represented by that ratio: leverage increases both gains and losses, allowing a trader to…

Risk managementPosition sizingExecution
Quant Q&A

The document addresses why labels such as long and short can be confusing for multi-leg option strategies. A debit or credit alone does not determine a strategy’s directional classification: spreads, butterflies, and similar structures combine bought and…

OptionsDerivatives pricingRisk managementPosition sizing
Quant Q&A

The document asks how to reproduce a volatility strategy described in a referenced study: short VXX while holding a long position in a VIX futures contract. It proposes that the combination may isolate exposure to a later futures month, asks how many VXX…

VolatilityFuturesRisk managementPosition sizing
Quant Q&A

The document asks how to size two stock positions in a long-short portfolio intended as a hedge, rather than as a cointegration-based pair trade. One response gives the basic beta hedge rule: set the hedge position opposite to the original position and scale…

EquitiesPairs tradingPosition sizingRisk management
Quant Q&A

The document examines why daily returns on a leveraged forex trade can become misleading when calculated as daily profit or loss divided by a small account balance. Its example starts with $40 of capital and shows losses pushing the balance close to and then…

ForexRisk managementPosition sizing
Quant Q&A

The discussion considers how a bond dealer who cannot sell short might adapt a market-making strategy designed for dealers with two-sided inventory flexibility. Its central argument is conditional: if a long-only dealer already holds enough inventory to…

Fixed incomeMarket makingRisk managementPosition sizing
Quant Q&A

The document asks whether a proposed constrained portfolio optimization setup correctly represents Kelly growth, how its portfolio curve relates to the familiar Kelly parabola, and how Kelly allocation differs from Markowitz mean-variance analysis. The…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The discussion presents stochastic portfolio theory (SPT) as a framework for portfolio growth that accounts for asset variances and co-movements. It contrasts arithmetic expected returns with long-run logarithmic growth, explaining that volatility can reduce…

Portfolio constructionStatisticsPosition sizingEquities
Quant Q&A

The document describes a fixed-risk position-sizing approach used in spread betting. The trader chooses a fraction of account equity to risk, measures the distance between entry and stop in points or pips, and divides the cash risk allowance by that distance…

Position sizingRisk managementBacktesting