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
WonderTrader
14 documents
Alphalens
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,922 documents

Quant Q&A

This discussion explains why daily delta rebalancing can leave substantial losses when an underlying makes a large discontinuous move. In a continuous price model, frequent rebalancing can offset local price exposure, but a jump creates a move that the hedge…

OptionsDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document clarifies how to calculate portfolio turnover from monthly asset weights. It considers the absolute changes in each holding’s weight between consecutive months and explains why their sum should be divided by two for a one-way turnover measure.…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document raises a conceptual question about utility-based portfolio optimization. The author is unsure how to choose among common utility functions, including exponential and isoelastic utility, and questions how an expression involving exponential…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to adapt a quadratic formulation of the maximum-Sharpe tangency portfolio to a factor model. Its proposed approach is to first convert factor-level inputs into security-level inputs, then apply the existing portfolio optimization…

Factor investingPortfolio constructionRisk management
Quant Q&A

The document presents a decision rule for adding a prospective asset to an existing portfolio: compare the Sharpe ratio of the proposed combined portfolio with that of the current portfolio, and prefer the addition when the new ratio is at least as high. It…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document shows how to extend an R optimization setup from one parameter to several parameters while continuing to use the optimx package and the L-BFGS-B method. The key change is to represent the starting values as a vector and write the objective…

Portfolio constructionBacktestingStatistics
Quant Q&A

The document reconciles two parameter conventions for lognormal returns and continuous-time price models. In one convention, the mean and variance parameters describe the normally distributed log return; the expected gross return is then the exponential of…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document raises several ways to strengthen systematic strategies: estimate portfolio risk using correlations instead of relying only on equal weighting or inverse-volatility weighting, model transaction costs, and add constraints to mean-variance…

Portfolio constructionRisk managementExecutionMarket microstructure
Quant Q&A

The document describes portfolio selection when an investor must choose exactly a limited number of assets from a much larger universe. It frames the objective as maximizing expected return with long or short weights, a gross-exposure constraint, and linear…

Portfolio constructionPosition sizingRisk managementEquities
Quant Q&A

The post describes fitting several distributions to daily log returns of a minimum-variance portfolio containing four cryptocurrencies, then estimating value at risk and expected shortfall. A fitted Student’s t distribution has 1.73 degrees of freedom. The…

CryptoRisk managementStatisticsPortfolio construction
Quant Q&A

The document describes the challenge of calculating portfolio returns from transaction records such as buys, sells, shorts, and covers. Its example tracks purchases and a later sale, showing that holdings change over time and raising the question of how to…

Portfolio constructionEquitiesStatistics
Quant Q&A

The document asks why an active strategy’s portfolio value can appear to exceed a passive strategy’s while its calculated returns and cumulative returns look weaker. It provides monthly portfolio value series and shows discrete returns computed as the…

BacktestingPortfolio constructionRisk managementStatistics
Quant Q&A

A portfolio sort groups assets by a characteristic, such as expected return, and compares the subsequent performance of the groups. Researchers commonly set periodic breakpoints from the cross-sectional distribution of the chosen variable, then form…

EquitiesFactor investingPortfolio constructionBacktesting
TradingView scripts

This document describes a short-term ETF strategy intended to seek buy-and-hold-like returns with less downside risk. It ranks opportunities using RSMK, a smoothed percentage change in the logarithm of an ETF’s price relative to a benchmark, and combines…

Technical indicatorsMomentumRisk managementPortfolio construction
TradingView scripts

This script demonstrates a way to display a strategy’s weekly equity returns in a chart table. It tracks changes in strategy equity, compounds the bar-level returns within each week, and stores completed weekly values over a user-selected date range. The…

StatisticsBacktestingTechnical indicatorsPortfolio construction
TradingView scripts

This strategy uses a rolling price channel to define potential breakout levels. It calculates the channel ceiling from the highest high and the floor from the lowest low over a configurable lookback, set to 21 bars by default. It then submits stop entries at…

EquitiesBreakoutTechnical indicatorsPortfolio construction
TradingView scripts

This indicator displays paired columns of annual percentage changes for two selected symbols over a chosen year range. It obtains data on a yearly interval, calculates each year’s change from one close to the next, and aligns the two return series by year.…

EquitiesStatisticsPortfolio construction
TradingView scripts

This daily-chart indicator organizes dividend information for a configurable set of stocks. Users can select a currency and whether dates refer to ex-dividend or payment dates, choose a full calendar, monthly view, or summary, and optionally estimate future…

EquitiesStatisticsPortfolio construction
TradingView scripts

This indicator ranks a configurable group of assets using directional signals from RSI, CCI, SuperTrend, DMI, and Parabolic SAR. Each selected indicator contributes a binary bullish or non-bullish reading; a combined mode sums the readings and assigns a…

Multi-assetMomentumTechnical indicatorsPortfolio construction
TradingView scripts

This indicator tracks a user-defined portfolio of up to fifteen stocks and compares its performance with a selected benchmark. Users choose which symbols to include, assign portfolio weights, set an initial capital amount and reporting dates, and optionally…

EquitiesPortfolio constructionBacktestingUS markets
TradingView scripts

This indicator models a recurring fixed-amount investment plan over chart history. At each chart bar, it allocates the contribution at a selectable price reference, such as the open, close, or an average of prices. Users can choose fractional or whole-unit…

EquitiesPortfolio constructionBacktestingRisk management
TradingView scripts

This daily-chart indicator combines several historical measures to estimate risk and suggest position sizes. Its inputs include capital, assumed win rate and profit ratio, a maximum acceptable drawdown, risk-scaling choice, benchmark, and a seasonal…

EquitiesRisk managementPosition sizingVolatility
TradingView scripts

This indicator constructs a synthetic index from a user-selected basket of up to 34 symbols. It retrieves constituent prices and share counts, estimates each holding’s market capitalization, and derives weights from the holdings’ relative capitalization.…

EquitiesPortfolio constructionTechnical indicatorsMulti-asset