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
Quantopian lectures
45 documents
Binance API docs
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

9,797 documents

Quant Q&A

The document works through FIFO and LIFO lot accounting for a sequence of buys and sells, then marks the remaining position to market. It identifies an error in the initial LIFO calculation: the corrected lot cost basis produces the same total P&L as FIFO,…

FuturesRisk management
Quant Q&A

The document clarifies how slide or rolldown relates to basis net of carry (BNOC) in a Treasury futures trade based on the cheapest-to-deliver bond. To calculate net basis, the response says to account for all economic effects before delivery, including…

Fixed incomeFuturesCarryRisk management
Quant Q&A

The document defines static arbitrage by whether positions need to be changed after the initial trade. A static arbitrage is established with a portfolio that requires no subsequent rebalancing; an example is trading different-sized futures contracts in…

ArbitrageFuturesOptions
Quant Q&A

The document asks whether financial return series are ergodic, whether a statistic can test that property, and whether conclusions depend on sampling frequency. It mentions inspecting the autocorrelation function for decay as an intuitive idea, but does not…

StatisticsFutures
Quant Q&A

This discussion identifies markets where Asian options may trade actively and where historical prices might be available. It points to options on federal funds futures: because the futures settle against the average effective federal funds rate over a…

OptionsFuturesCommoditiesFixed income
Quant Q&A

An overnight index swap curve is a term structure built from market instruments referencing an overnight rate. The answer explains that curve construction uses instruments such as futures and swaps across maturities to infer discount factors and forward…

Fixed incomeDerivatives pricingFuturesStatistics
Quant Q&A

The document gives an approximate way to relate SPY price movements to E-mini S&P 500 futures exposure. It states that the cash index level is about ten times the SPY price, while each futures contract gains or loses a fixed dollar amount for each index…

EquitiesFuturesUS marketsPosition sizing
Quant Q&A

The document explains a bullish flattening view: the trader expects interest rates to fall while the yield curve becomes flatter. A bond implementation is to buy a longer-term bond and short a shorter-term bond. If the positions are not DV01 neutral and…

Fixed incomeFuturesOptionsDerivatives pricing
Quant Q&A

The document addresses an apparent carry mismatch between a bond futures price observed on its last trading day and the cheapest-to-deliver bond’s forward price at the last delivery date. It asks whether the bond forward should instead be valued to the…

FuturesFixed incomeCarry
Quant Q&A

The document discusses how to price an equity forward on a dividend-paying stock and why the textbook formula’s single risk-free rate can be ambiguous in practice. One response uses maturity-matched equity repo rates to grow the stock value and discount…

EquitiesDerivatives pricingFutures
Quant Q&A

The document addresses how to identify past changes in futures contract tick sizes, which matter when interpreting historical price data and trading costs. Its practical suggestion is to search exchange press releases, where exchanges announce contract…

FuturesMarket microstructureBacktesting
Quant Q&A

The document discusses where to obtain historical daily settlement prices for individual VSTOXX futures, prompted by a comparison with freely available VIX futures data. The responses describe several possible sources: Eurex’s data shop, an institutional…

FuturesVolatility
Quant Q&A

The document checks the gross basis formula for a bond eligible for delivery into a futures contract. It defines gross basis as the bond’s clean price less the futures price multiplied by that bond’s conversion factor. It then asks whether this expression…

Fixed incomeFuturesCommodities
Quant Q&A

The discussion compares ways for a Europe-based high-frequency trader to obtain real-time S&P 500 E-mini futures prices. Responses distinguish retail data services from more expensive institutional arrangements that offer market data and access to points of…

FuturesHigh-frequency tradingMarket microstructureExecution
Quant Q&A

The document considers how to approximate historical duration for bond futures when exchange records of past deliverable baskets are unavailable. The proposed initial proxy uses the on-the-run bond’s duration and conversion factor, but the response…

Fixed incomeFuturesRisk management
Quant Q&A

The document outlines how Eurodollar futures can inform the floating-rate projections used to value a plain vanilla interest rate swap. Futures-implied rates need a convexity adjustment before they are treated as forward rates, since futures and forward…

Fixed incomeFuturesDerivatives pricing
Quant Q&A

The document explains the link between the difference in futures and forward prices and the correlation between an underlying asset's price and interest rates. It asks whether negative rate correlation for stocks or bonds would make forwards more expensive…

FuturesFixed incomeEquitiesDerivatives pricing
Quant Q&A

The document considers how to express a long Mexican peso versus Japanese yen position using separate currency futures. It compares the dollar-equivalent notionals of two yen contracts and one peso contract, then asks whether the proposed direction is to…

FuturesForexPairs tradingRisk management
Quant Q&A

The scenario pairs a long gold spot position with a short deferred futures contract entered at a higher price. Although the futures premium may appear to offer a locked-in gain, a rise in gold prices creates losses on the short futures position while the…

CommoditiesFuturesRisk management
Quant Q&A

The document explains how leveraged futures positions are closed when a trader’s margin cannot cover the losses, focusing on the difference between broker-backed conventional markets and crypto exchanges with limited-liability accounts. It uses a…

FuturesCryptoPerpetual futuresMarket microstructure
Quant Q&A

The document asks whether liquidity suppliers can determine who initiated trades from Nasdaq ITCH data. The accepted answer says ITCH exposes match numbers and displayed-order reference numbers, but no buyer-side identity. These fields support trade…

Market microstructureHigh-frequency tradingExecutionFutures
Quant Q&A

The document explains why operating a gas-fired power plant creates exposure that resembles being long electricity and short natural gas. The plant’s gross margin depends on the electricity price received minus the fuel and emissions costs, adjusted for…

CommoditiesFuturesRisk managementDerivatives pricing
Quant Q&A

The document asks how a market maker might hedge a short position in down-and-in Bitcoin puts. Its answer contrasts these barrier options with vanilla puts and gives two possible risk-management actions: use Bitcoin-dollar perpetual swaps or dated futures to…

CryptoOptionsFuturesPerpetual futures