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

20,364 documents

Quant Q&A

The document explains how to aggregate ordinary monthly returns into quarterly returns. For each quarter, add one to every monthly return, multiply those gross returns together, and subtract one. This captures the effect of sequential returns; simply summing…

EquitiesStatisticsBacktestingPortfolio construction
Quant Q&A

The document gives an approximation for the probability that a stock touches a short strangle’s higher strike without touching its lower strike. It defines events for touching each side and expresses the desired probability as the probability of touching the…

OptionsStatisticsRisk management
Quant Q&A

For normally distributed asset returns with known means and covariance, the document relates portfolio VaR optimization to familiar portfolio objectives. When VaR is defined as a return quantile centered on the portfolio mean, maximizing it is equivalent to…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document examines why a finite-step Taylor expansion for an option price can include the squared asset-price increment, while a continuous-time Itô calculation uses quadratic variation. It distinguishes two ways to express a change in a smooth function:…

OptionsVolatilityDerivatives pricingStatistics
Quant Q&A

The document asks how to compare strategies whose capital usage differs over time. It contrasts strategies with stable allocations against an event-triggered strategy whose invested capital varies, noting that return as a percentage of capital is easier to…

EquitiesRisk managementPortfolio construction
Quant Q&A

The document considers how to specify the mean equation when forecasting stock index return volatility with a GARCH model. One workflow first selects AR and MA terms for the mean using an ARIMA procedure, estimates that equation by least squares, and checks…

EquitiesVolatilityStatisticsBacktesting
Quant Q&A

The document proposes a heatmap for showing how often obligors remain in each credit rating class from one period to the next. Ratings occupy one axis and time intervals the other; color represents the proportion that kept the same rating. This puts many…

Fixed incomeStatistics
Quant Q&A

The document distinguishes martingale assumptions used in derivative pricing from assumptions used in trading and risk management. For pricing, it describes a risk-neutral probability measure under which an underlying asset is a martingale, linking that…

StatisticsDerivatives pricingRisk managementEquities
Quant Q&A

The document describes a proposed way to compare an algorithm’s backtest with a simple benchmark portfolio. The benchmark buys some or all stocks in a selected universe at the start of the test period, then closes positions at the end, with transaction fees…

BacktestingEquitiesExecutionRisk management
Quant Q&A

The document asks whether an FX swap can be priced by subtracting spot from the theoretical FX forward rate. The proposed forward calculation uses spot and the two currencies’ interest rates, and the question frames the swap value as the forward-minus-spot…

ForexDerivatives pricing
Quant Q&A

The document asks how to apply stratified sampling, a variance reduction technique, when pricing Asian options by Monte Carlo simulation. It contrasts stratifying the terminal Brownian motion value for a European option with stratifying the average of…

OptionsStatistics
Quant Q&A

The document addresses how to execute a large futures order in a thin order book while limiting market impact. It recommends splitting an order algorithmically instead of submitting a large market order. VWAP is presented as a straightforward, widely…

FuturesExecutionMarket microstructure
Quant Q&A

The discussion examines a long-dated equity index call whose hedged profit and loss appears sensitive to interest rates. It questions whether a standard Black–Scholes formula using a current LIBOR rate and ordinary delta hedging remains appropriate when…

OptionsFixed incomeDerivatives pricingRisk management
Quant Q&A

The document concerns estimating parameters for a stochastic volatility model in which variance follows a Cox–Ingersoll–Ross (CIR) square-root process. The question asks for estimation from time-series data rather than option prices, with quasi-maximum…

StatisticsVolatilityMachine learning
Quant Q&A

The document explains why gross basis tends to decline as a bond futures contract approaches delivery. It defines gross and net basis and relates the implied repo rate to the bond’s invoice price, cash price, and time remaining. Because time to delivery…

Fixed incomeFuturesCarryDerivatives pricing
Quant Q&A

The document asks how to set the fixed-leg payment frequency when pricing an interest rate swap in MATLAB. The accepted response identifies a reset-frequency name-value setting as the relevant parameter, rather than the period option used in a bond-pricing…

Fixed incomeDerivatives pricingRisk management
Quant Q&A

The document explores why historical replay alone may not faithfully test market-making or other microstructure strategies. A replay uses recorded order-book events, but cannot fully capture how other participants would react to the strategy's orders. The…

Market makingMarket microstructureHigh-frequency tradingBacktesting
Quant Q&A

The document examines how to simulate multiple geometric Brownian motion price paths with a specified correlation structure. The attempted R approach draws independent normal shocks, applies a Cholesky factor of the input correlation matrix, and uses the…

StatisticsBacktestingPortfolio construction
Quant Q&A

The document asks whether volume-based bars can make fixed-parameter strategies more responsive to changing market activity. It starts from the observation that equal calendar periods may represent very different conditions, then suggests volume bars as a…

Portfolio constructionVolatilityTrend following
Quant Q&A

The document addresses the lack of long histories for Treasury bond ETFs, especially leveraged funds, when backtesting portfolios over periods earlier than those products existed. It suggests using long bond futures as a proxy source of historical exposure…

Fixed incomeFuturesBacktestingUS markets
Quant Q&A

The document considers how to calculate returns from one-minute price bars when a trading session begins after a long market closure. The first observed price of a session and the prior session’s final price produce a return spanning far more than one…

ForexStatisticsVolatilityMarket microstructure
Quant Q&A

The document asks how to build a simple parametric value-at-risk estimate for comparison with ISDA SIMM initial margin. It specifically raises whether the profit-and-loss distribution should be normal or asymmetric, and whether a model should include option…

OptionsVolatilityRisk managementDerivatives pricing
Quant Q&A

The document distinguishes a stock’s return over an individual year from its annualized return across multiple years. It describes an example with an initial investment, a change in year-end price, and no purchases or sales during the holding period. The…

EquitiesStatistics