How Execution Timing Affects Staged Equity Portfolio Holdings
Summary
This forum question compares portfolio holding ratios under two execution schedules: buying with one TWAP setting and selling with another, versus buying at the open and selling at the close. It provides a trading function for a ranked stock strategy that stages investment over a configured holding period, allocates cash across ranked candidates, caps exposure per instrument, and begins selling lower-ranked existing holdings after the staging period. The question asks what causes the observed difference, but the referenced charts are absent and no diagnosis or outcome is supplied.
The code reveals several points relevant to investigating the allocation: buy and sell budgets depend on current cash and portfolio value, existing positions reduce the amount available for new orders, and sells are issued to zero out selected holdings. Execution prices and fill behavior may affect resulting weights, but the document gives no data to establish how much they explain. Without the charts, parameter values, order logs, and platform semantics, the cause cannot be determined from the post alone.
Key ideas
- The post compares portfolio weights under two different buy and sell execution schedules.\nThe strategy stages buying across a configured holding period and later sells lower-ranked holdings.\nNew orders are constrained by cash availability and a per-instrument exposure cap.\nThe post includes code but no charts or diagnosis, so the cause of the differing weights remains unresolved.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.