Skip to content
All library documents

Fixed Percentage Exit Logic as a Starting Point for Dynamic Stops

Article BigQuant

Summary

This short Q&A shows a fixed-threshold exit rule for stocks and asks how to make the exit dynamic. For each held position, the example retrieves the cost price and latest market price, calculates the percentage change from cost, and closes the position when the change exceeds either a positive or negative threshold. If the cost price is zero, it uses a zero return to avoid division by zero.

The material provides a basic implementation pattern, but it does not explain or demonstrate a dynamic stop: the thresholds are fixed, and the example exits at either gain or loss limits. It gives no backtest, performance evidence, or guidance on choosing thresholds. Readers should treat it as a simple illustration of checking open positions and issuing close orders, rather than as a validated exit strategy.

Key ideas

  • The example checks every currently held stock position.
  • It measures return relative to the position’s cost price.
  • It closes a position when the return crosses either fixed threshold.
  • The document asks about dynamic exits but supplies only a fixed-threshold example.
  • No performance evidence or method for selecting thresholds is provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.