The document implements a Turtle-style breakout strategy using Donchian channel levels for entries and exits, with ATR-based stop placement and position sizing. It tracks the trade’s high and low, moves stops as prices advance, and adds to positions at…
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 document surveys constraints that practitioners may impose when optimizing a portfolio. It notes that the formulation matters: a fully invested portfolio typically has weights summing to one, while an active portfolio expressed as deviations from a…
The discussion compares evaluating a strategy through trade or portfolio returns with simulating a starting capital amount and measuring ending equity or annualized return. It argues that the appropriate view depends on the strategy and how closely the…
The document asks whether a proposed optimal holding for a CARA investor with normally distributed risky-asset payoffs is correct. Its setup compares expected payoff net of the risk-free investment cost with payoff variance, and suggests scaling expected…
The document derives a way to constrain a fund’s next weekly return so that its rolling five-year, annualized ex-post volatility is less likely to exceed a chosen threshold. It treats the historical weekly returns as fixed, assumes the next return is…
The document explains why equal percentage losses and gains do not cancel when returns compound. After a loss, the same percentage gain applies to a smaller capital base, so the account remains below its starting value. It gives a formula for the number of…
The document considers a heterogeneous portfolio in which inverse-volatility risk parity can assign very large weights to instruments whose estimated volatility has fallen relative to the rest. It describes a proposed cap that compares risk-parity weights…
The discussion describes several ways traders apply the Kelly criterion, while questioning how well its assumptions fit real trading. One approach links Kelly sizing to volatility targeting: expected return divided by a chosen Sharpe ratio sets a volatility…
This document asks how to size trades in back-adjusted continuous futures data when historical prices can be near zero or negative. It contrasts two attempted approaches: scaling position size inversely with price subject to a unit cap, and allocating a…
This discussion explains how to interpret a time-varying leverage multiplier in a winner-minus-loser momentum strategy. The multiplier scales both sides of the portfolio: for a given amount of capital, the long positions in winners and short positions in…
The document raises a pairs-trading question about estimating hedge ratios with rolling ordinary least squares on two stocks’ log returns. The author observes that when the stocks have very different share prices, the estimated ratio can still be near zero…
The document asks how to automate margin calculations for a portfolio of Eurex-listed products, noting that the available calculation tool is a Windows application with a graphical interface. The accepted response describes a simpler approach for estimating…
The document introduces the idea that a futures hedge may require a ratio other than one contract for each unit of spot exposure, even when the hedge and underlying have matching maturity and asset. It asks how the tailing factor affects the hedge when…
The document discusses how to represent long and short futures positions when estimating portfolio Value at Risk. One answer recommends converting contracts to notional exposure using the contract count, point value, and underlying futures level; it also…
The example explains why restoring target weights in a leveraged long-short portfolio can require buying an appreciated asset and increasing a short position in an underperformer. After a strong gain in the long asset, the portfolio’s total value has also…
The document explains why borrowing at the risk-free rate to scale a risky portfolio increases its expected excess return and volatility by the same factor. The Sharpe ratio uses excess return, so the leveraged portfolio’s numerator is the leveraged…
The document examines whether scaling a risky portfolio by the ratio of a target volatility to estimated volatility guarantees that realized portfolio volatility converges to the target. The answer first shows that, if next-period conditional volatility were…
The document asks how to allocate a fixed budget across several investment opportunities whose occurrence is independent, whose returns depend on allocated amounts, and whose parameters may be uncertain. It distinguishes this setup from single-bet Kelly…
The document poses a fixed-income trade-sizing problem: construct a flattening position using two-year and ten-year zero-coupon bonds, with a target profit for a specified change in the yield spread. It asks for each leg’s present-value exposure and whether…
The question concerns a stochastic wealth equation that appears to produce inconsistent expressions when a portfolio strategy is substituted into it. The answer identifies a distinction between the number of asset shares held and the fraction of wealth…
The document explains how ATR-based position sizing estimates a share count from account capital, a chosen risk fraction, and a stop distance expressed as a multiple of average true range. The resulting count represents shares sized to a target loss if the…
The document clarifies terminology for a trading account’s position at the end of a session. It treats overnight inventory, end-of-day holdings, and the end-of-day net position as referring to the inventory remaining at market close and carried into the…
The discussion compares two ways to allocate capital between trade situations with different estimated profit factors. Scaling lots in proportion to each factor is presented as a way to maximize average profit factor across a fixed number of trials. With the…
The document discusses an interview prompt asking what to do with a large capital allocation over either a multi-year horizon or a few days. One response frames the problem as maximizing expected return over the available horizon, with the idea that a longer…