Skip to content
All library documents

Implementing Fixed Take-Profit and Stop-Loss Rules in a Stock Strategy

Article BigQuant

Summary

This legacy BigQuant guide shows how to add fixed exit rules to a stock strategy. Its example sells a holding after a fixed price gain or after a percentage loss, with separate lists recording stocks exited by each rule.

It also explains how to coordinate these exits with a rotation strategy. The strategy records rotation sales, avoids selling a stock a second time if a stop rule already closed it, and filters those exited stocks from the next buy list to prevent accidental short positions. The document gives implementation steps but does not include the referenced strategy code or report performance evidence. It explicitly says the instructions apply to an older platform version, so they may not transfer directly to the current interface.

Key ideas

  • Track stocks exited by fixed-profit and percentage-loss rules in separate lists.
  • Record rotation sales so later order logic can distinguish exit reasons.
  • Skip rotation sales for stocks already closed by a stop rule.
  • Filter all previously exited stocks from the new buy list to avoid duplicate orders.
  • The instructions describe a legacy platform version and may require adaptation.

Tags

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