The document poses an allocation problem for a risky investment with two possible returns: a gain or a loss, each occurring with a specified probability. It asks what portfolio fraction maximizes median wealth, using example gain and loss magnitudes, and…
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.
Search the library
4,613 documents
The discussion considers how to calculate a trader's win rate when the trader may finish each day flat, but may enter and exit positions through several executions. It distinguishes a period-based measure, such as profitable days, from a trade-based measure.…
The discussion recommends books for readers who know the mathematical foundations of options but want more guidance on applying them in trading. It highlights Euan Sinclair’s Volatility Trading for its coverage of strategies, liquidity, and position sizing,…
The document examines how to measure the return on a complex options adjustment when cash proceeds, estimated expiration value, and current liquidation value differ. Its answers emphasize that expiration value is uncertain and that the position’s current…
The document addresses how to summarize commodity futures volumes by commodity and tenor, with purchases positive and sales negative. The suggested workflow first converts each trade’s volume into a signed quantity using its buy or sell direction. It then…
The document examines how to assess a causal portfolio controller that allocates capital among event-driven trades with different holding periods. Its root-only model optimizes expected log wealth over sampled scenarios, then follows a fixed base policy for…
The document addresses portfolio construction when holdings must stay close to a benchmark while the number of trades is constrained. It separates risk estimation from optimization: a factor risk model estimates tracking error from factor exposures, factor…
The discussion addresses gradual entry into and exit from trend positions. One response points to research on heterogeneous investor expectations, positive feedback trading, and historical bubble behavior, including a case study of a broker riding the South…
The note considers how to represent the short leg of a pair trade when direct shorting is unavailable, using an inverse ETF as a proxy. Its suggested adjustment is to account for the inverse ETF’s beta when setting the hedge against the long position. This…
The document considers why a trading signal may become less frequent as order size grows. The trader’s approach evaluates the order-book price that would fill the available balance, so increasing volume can move the relevant price point and change whether…
The document distinguishes profit factor from absolute return when comparing trading systems. Profit factor is defined as total winning amounts divided by total losing amounts, so it expresses gains relative to losses. It does not account for position size…
The document shows how to model a dollar cost averaging schedule in the Python bt backtesting framework. The proposed strategy runs monthly, selects the available asset, adds a fixed capital contribution, assigns equal weights, and rebalances. The…
The document raises a portfolio-return calculation question: how to compare long-short stock strategies that hold positions for more than one month. The investor has monthly stock returns and wants to evaluate a shared holding period for the long and short…
The document clarifies an expectation calculation used when studying the Kelly criterion. For a bet whose outcome has two possible values, the log wealth change takes one value after a win and another after a loss. Its squared expectation is found by…
The document analyzes a finite-horizon game in which a player repeatedly rolls a fair twenty-sided die or collects the current face value. It first evaluates a fixed threshold policy: roll until a result meets the threshold, then collect that face for the…
The document asks how many shares of one stock to short against a long position in another when their return volatilities and correlation are known. It computes a minimum-variance hedge ratio from the correlation and the ratio of return volatilities, then…
The document examines whether the continuous-outcome Kelly approximation, expressed as mean return divided by return variance, can guide capital allocation across trading strategies. One response distinguishes this approximation from the familiar Kelly…
The document explains how to formulate a mean-variance portfolio problem for a quadratic programming solver. To maximize expected return minus a risk penalty based on covariance, the objective must be converted to the solver’s minimization form: use a…
The document uses a fair six-sided dice game to distinguish expected payoff from the amount an individual might rationally pay. Its expected monetary payoff is 3.5 units, but a risk-averse person may assign a lower certainty equivalent because the utility of…
The document examines a simulated betting game in which each wager is a fraction of current capital and each toss has equal odds of a gain or loss. The original observation is that larger fractional bets and longer sequences reduce the share of paths ending…
The discussion considers a strategy that updates short-horizon return forecasts more often than the forecast horizon. When a new signal conflicts with an open position, immediately offsetting the position may leave later parts of the original forecast window…
The document poses a trade management problem: how to choose the order for closing a portfolio of open long and short positions when some positions hedge one another and others leave net exposure. The positions have been open for different periods and are…
The document describes a trend-following market maker trading XBTUSD in a highly volatile market. Its current sizing method allocates leverage using a Kelly-style weighting based on recent profit and loss, reducing allocation after poor performance. The…
The document explains the setup for hedging a spot exposure with a futures position. It models the change in spot price as a linear function of the futures price change, plus an intercept and an error term. For a position long one unit of the spot asset and…