Skip to content
All library documents

Adding Entry and Exit Signals to a Stock Ranking Strategy

Article BigQuant

Summary

The document describes how to combine custom buy and sell conditions with a stock-ranking strategy. Its example selects stocks when the current open is above the prior close and the five-day closing-price average is above the ten-day average. It then ranks qualifying stocks by price-to-earnings ratio and takes the ten lowest-ranked values, with purchases planned for the next open. A position is marked for sale when the five-day average falls below the ten-day average, with the sale planned for the next open.

The conditions are presented as expression-engine rules, showing how traditional trading logic can guide ranking and daily portfolio rotation. The document is a question and example rather than a complete implementation guide: it does not explain how to configure the platform modules, resolve signal timing in a backtest, or account for transaction costs, slippage, and risk. It provides no performance results, so the proposed rules should be treated as a strategy specification rather than evidence of profitability.

Key ideas

  • Entry requires an opening price above the previous close and a five-day average above the ten-day average.
  • Qualifying stocks are ranked by price-to-earnings ratio, with the lowest values selected.
  • The example proposes buying selected stocks at the next session's open.
  • A drop of the five-day average below the ten-day average triggers a sale at the next open.
  • The document gives signal logic but no backtest results or detailed module instructions.

Tags

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