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

1,414 documents

Quant Q&A

The document explains that CME margin, also called a performance bond, is tied to market risk and volatility, but says the exchange’s precise calculation formula is not publicly specified in the discussion. It points readers to SPAN as the relevant margin…

CommoditiesFuturesVolatilityRisk management
Quant Q&A

The document investigates a simulation of commodity prices using an exponential Vasicek or Ornstein–Uhlenbeck model. It presents a closed-form time-step expression for the logarithm of the price, along with a Python implementation and an unexpected upward…

CommoditiesStatisticsMean reversionBacktesting
Quant Q&A

The document clarifies that basis risk arises when a futures hedge does not move exactly with the asset or exposure being hedged. It gives examples where the deliverable or referenced instrument differs from the hedger’s actual exposure: wheat from one…

FuturesEquitiesCommoditiesFixed income
Quant Q&A

The document discusses how practitioners might measure time to expiry when valuing commodity options on futures. It frames the choice between calendar-day and business-day conventions as dependent on how theta is accumulated and how volatility estimates…

CommoditiesOptionsVolatilityDerivatives pricing
Quant Q&A

The document derives a Black–Scholes-style valuation for a heat rate-linked payoff equal to the positive part of the difference between two independent lognormal asset values. It represents each asset with a standard normal variable, then changes numéraire…

OptionsCommoditiesDerivatives pricingVolatility
Quant Q&A

The document surveys broad approaches to modeling energy derivatives, with particular interest in electricity and also natural gas. One proposed path is to model the physical supply and demand relationships that drive prices. For electricity, the sudden loss…

CommoditiesDerivatives pricingStatistics
Quant Q&A

The post asks how to price an oil forward that requires payment at inception rather than following the usual zero-value-at-entry convention. The stated forward price incorporates spot, the risk-free rate, storage costs, and convenience yield. The reply…

CommoditiesDerivatives pricingRisk management
Quant Q&A

The document considers how to choose between two commodity futures for hedging jet fuel when their minimum-variance hedge ratios and recommended contract counts differ. It says the objective is to reduce the variance of the combined exposure and hedge, so…

CommoditiesFuturesRisk management
Quant Q&A

The document asks how traders can exploit changes in the difference between futures prices and the underlying cash asset, including how futures roll and carry costs affect the strategy. The response suggests framing this as carry or roll trading, with…

FuturesCarryFixed incomeCommodities
Quant Q&A

The document discusses assigning intraday timestamps to daily commodity futures prices collected across several exchanges. Its central practical lesson is to distinguish a contract’s settlement time from the end of its trading session: those times can…

FuturesCommoditiesMarket microstructure
Quant Q&A

The discussion examines whether gold is a reliable hedge for equities after a broad-period Bloomberg correlation between gold and the S&P 500 appears close to zero, while a VIX regression shows a stronger inverse relationship. It explains that the…

CommoditiesEquitiesVolatilityStatistics
Quant Q&A

The document outlines the cost components used to relate an oil spot price to a theoretical futures price. It includes funding, storage, and the cost of removing oil from storage and transporting it to the delivery point. Funding is represented by the…

CommoditiesFuturesCarry
Quant Q&A

The discussion asks how to estimate historical volatility when electricity prices can be negative, making log returns undefined for some observations. It explains that the return measure should follow the assumed model: absolute price changes suit a model…

CommoditiesOptionsVolatilityStatistics
Quant Q&A

The document poses a portfolio-volatility question about the Bloomberg Commodity Index and its sub-sector indices. It supposes that the sub-sectors have the same average one-year at-the-money implied volatility and asks whether the index’s implied volatility…

CommoditiesVolatilityStatistics
Quant Q&A

The document sets up a short, constant-horizon forward strategy in a contangoed market and asks how rolling positions affects its value. It models exposure across adjacent maturities, imposing both a target effective maturity and a self-financing condition.…

FuturesCarryCommoditiesRisk management
Quant Q&A

The document explains why the VIX model does not translate directly into a universal volatility index for every asset class. VIX is described as the square root of a variance swap strike, calculated from traded equity index options; constructing a comparable…

VolatilityOptionsFixed incomeForex
Quant Q&A

The document considers whether the standard no-arbitrage forward-pricing argument can be adapted when the underlying is a consumption asset that investors may be unwilling or unable to sell short. It assumes no yield or storage cost and compares a long…

ArbitrageDerivatives pricingCommodities
Quant Q&A

The document considers how to remove seasonal patterns from agricultural futures data. Its answer cautions that seasonality can vary by commodity: planting, growing, and harvest schedules, including the number of harvests, may shape within-year patterns. It…

CommoditiesFuturesStatistics
Quant Q&A

The document asks how to model energy forward curves using a seasonal component plus a smooth deviation, and whether alternatives exist to the Lucia–Schwartz seasonality specification. It names the Gabillon two-factor model as one alternative, describing it…

CommoditiesFuturesStatistics
Quant Q&A

The discussion clarifies that the start and end periods in a CME futures margin table refer to ranges of contract expiration dates. They do not indicate calendar windows during which every contract receives the listed margin, nor do they simply assign a…

FuturesCommoditiesVolatilityRisk management
Quant Q&A

The document derives a spot-price stochastic differential equation from a model for futures prices whose volatility decays with time to maturity. Setting the spot equal to the futures price at maturity, it first rewrites the log spot using the initial…

FuturesCommoditiesStatistics
Quant Q&A

The discussion considers how to estimate an OTC call option price when the underlying commodity future trades farther out than listed options. It suggests using a standard option model such as Black-76, with an underlying futures price and an estimate of…

CommoditiesFuturesOptionsVolatility
Quant Q&A

The document outlines a workflow for modeling volatility in returns for several agricultural and precious commodities and Brent crude across historical subperiods. It first checks squared returns and applies ARCH-LM tests, then considers a standard GARCH…

CommoditiesVolatilityStatistics
Quant Q&A

The discussion distinguishes a producer’s physical sales agreement from a futures position used to hedge the price risk of that sale. A producer may have agreed to deliver oil to a particular refinery at the future spot price; a short futures position can…

FuturesCommoditiesRisk managementExecution