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

5,701 documents

Quant Q&A

The document works through pricing a zero-coupon bond under a Vasicek-style short-rate model with zero mean reversion level. It starts from the rate’s stochastic-integral solution, inserts that solution into the discounted payoff, and changes the order of…

Fixed incomeDerivatives pricingStatistics
Quant Q&A

The document derives the duration of a single fixed cash flow under annual effective compounding. Starting from the negative sensitivity of present value to the interest rate, differentiation gives a duration equal to the payment time divided by one plus the…

Fixed incomeStatisticsRisk management
Quant Q&A

The document explains why QuantLib-Swig exposes separate names such as PiecewiseLogCubicDiscount, PiecewiseLinearZero, and PiecewiseCubicZero while QuantLib 1.17 C++ does not. In C++, these curve variants are generated from the PiecewiseYieldCurve class…

Fixed incomeDerivatives pricing
Quant Q&A

The document explores how to shock selected points on an on-the-run Treasury yield curve, propagate those shocks to other maturities, and reprice an off-the-run bond. The proposed method applies principal component analysis to historical yield changes, then…

Fixed incomeStatisticsRisk managementDerivatives pricing
Quant Q&A

The document explains how to construct a forward swap rate from discount factors or forward Libor rates, then connect it to swaption valuation. It derives the swap rate as the ratio of the swap’s floating-leg value to its fixed-leg annuity. Given Libor…

Fixed incomeOptionsDerivatives pricingVolatility
Quant Q&A

The document examines a claim from the Longstaff–Schwartz interest-rate model that the short rate, expressed as a weighted sum of two factors, is positively correlated with the variance factor. The answer reduces the problem to the sign of the covariance,…

Fixed incomeStatistics
Quant Q&A

The document interprets carry on a short long-dated Treasury position by connecting the current yield with the yield implied for a shorter-maturity bond at a future date. It explains negative carry as a drag that must be offset by a favorable market move for…

Fixed incomeCarry
Quant Q&A

The document outlines practical challenges for a firm moving from vendor-provided end-of-day data to live feeds from exchanges. Direct access means handling exchange-specific formats and APIs, building and maintaining parsers, and arranging network…

Fixed incomeFuturesOptionsMarket microstructure
Quant Q&A

The document examines how to determine the annual day-count denominator for the Norwegian overnight index NOWA. Its quoted definition bases the nominal annual rate on the actual number of days in the year ahead from the fixing date, using 365 or 366 days,…

Fixed incomeDerivatives pricing
Quant Q&A

The document explains why an inverted yield curve is often viewed as a warning about economic weakness. Under expectations-based accounts, long-term rates reflect expected future short rates; an inversion can therefore indicate that markets anticipate rate…

Fixed incomeUS marketsStatisticsRisk management
Quant Q&A

The explanation separates coupon-date schedule construction from day-count calculation in QuantLib. A schedule defines dates according to the effective date, maturity, interval, calendar, business-day convention, and date-generation rule. A day-count…

Fixed incomeStatisticsDerivatives pricing
Quant Q&A

The discussion considers a bond where the holder’s put and the issuer’s call are available on the same date at the same price. The response says such structures are relatively common, including in convertible bonds, and that the shared exercise date can…

Fixed incomeOptionsDerivatives pricing
Quant Q&A

The document asks for the transition distributions of two continuous-time processes: Brownian motion with constant drift and an Ornstein–Uhlenbeck process that reverts toward a long-run mean. Its answer derives the Ornstein–Uhlenbeck solution from an initial…

StatisticsMean reversionFixed income
Quant Q&A

The document introduces the Campbell–Shiller regression as a way to test the expectations hypothesis of interest rates. It describes comparing a yield spread with a subsequent change in yields, while noting that empirical estimates may differ from the…

Fixed incomeStatisticsBacktesting
Quant Q&A

The document raises a risk-measurement question about calculating DV01 for a USD–KRW cross-currency swap. It describes building a USD discount curve so observable USD interest-rate swaps have zero present value, and a KRW curve so observable cross-currency…

Fixed incomeDerivatives pricingRisk managementForex
Quant Q&A

The document responds to a broad request for a practical starting point for forecasting European government or other bond prices from historical data. Its central modeling recommendation is to forecast bond returns rather than prices directly. It then…

Fixed incomeStatisticsBacktesting
Quant Q&A

The document explains the par-yield curve as a plot of bond yields to maturity against their terms to maturity. A par yield is the coupon rate that would make a bond’s price equal to par; for a bond priced at par, its coupon rate and yield to maturity…

Fixed incomeDerivatives pricingStatistics
Quant Q&A

The document introduces a state price vector through a two-state example: inflation is either above or below a threshold, and a security pays in one state but not the other. It describes the collection of state-contingent prices as a vector, and says…

Derivatives pricingFixed incomeStatistics
Quant Q&A

The document compares absolute changes in interest rates with percentage changes when constructing historical return series for value-at-risk analysis. Its example shows how an identical change in yield can produce very different percentage returns depending…

Fixed incomeVolatilityRisk managementStatistics
Quant Q&A

The document explains a buy-sell-back as a collateralized loan structured through a security sale followed by a forward agreement to sell the security back. The borrower receives cash against a bond or other security, while the lender holds the collateral…

Fixed incomeDerivatives pricingRisk management
Quant Q&A

The document examines a small mismatch between a GBP overnight index swap market quote and a displayed zero rate. It calculates a one-week discount factor from the quoted rate using a simple day-count fraction, then converts that factor to a continuously…

Fixed incomeDerivatives pricingStatistics
Quant Q&A

The document asks how to derive a three-month forward rate from short-rate paths simulated under the one-factor Hull–White model, with monthly time steps. It proposes using the model’s zero-coupon bond formula to obtain discount factors over monthly…

Fixed incomeDerivatives pricing
Quant Q&A

The document examines why a counterparty’s CVA charge might decrease after both parties are downgraded. It presents a first-to-default approximation in which expected exposure is multiplied by the difference between the counterparty’s credit spread and the…

Fixed incomeRisk managementDerivatives pricing
Quant Q&A

The document describes building a JPY three-month forward curve from three-month deposits and FRAs, six-month market quotes, and six-month-versus-three-month basis swap spreads in QuantLib. The questioner constructs separate discounting, six-month, and…

Fixed incomeDerivatives pricingStatistics