A signal may express an expected return, a relative preference between assets, or an instruction to seek a long, short or flat position. It is not automatically a probability, a position size or a completed trade. The output's meaning must be part of the rule.
From a measurement to a decision
These terms describe different jobs, even when a small strategy puts them in one function:
| Stage | What it produces | Example |
|---|---|---|
| Feature construction | An input describing the market or issuer | A price's deviation from its trailing average |
| Transformation | A changed representation of an input | Scaling deviations or ranking them across eligible assets |
| Scoring | A number used to compare opportunities or apply a decision rule | A continuous trend score |
| Signal generation | The forecast or decision state passed onward | Seek a long position when the score exceeds a threshold |
| Position sizing | A target exposure subject to capital and risk constraints | A chosen share quantity or portfolio weight |
| Order generation | Instructions to change current holdings toward that target | A buy order with a specified quantity and order type |
A transformed feature can itself be the score; a separate predictive model is optional. Conversely, a model's numerical prediction may still need a decision rule before it becomes an actionable signal. Terminology varies between research teams, so naming the output and its units matters more than insisting on one software architecture.
A threshold rule with an explicit clock
Consider one fictional stock, with prices in USD per share. There are no corporate actions during the example, so all prices use one consistent basis. Its five preceding session closes are 98, 99, 100, 101 and 102. The lagged moving average is their simple arithmetic mean:
The current session's final close, , is 110. It is excluded from that reference average. Define the dimensionless score
Specify persistence, missing data and evaluation
Under the desired-state convention above, another means the long preference persists. If the position already equals its approved target, no additional purchase is needed. “Buy again whenever the condition is true” is a different rule with different exposure. Likewise, a flat signal may require selling an existing position, whereas missing data may require withholding a decision. Those outcomes should not silently share the same code.
Specify the instrument universe, feature windows, update frequency, entry and exit conditions, signal expiry and missing-data policy. A newly listed stock without the full five-session history is ineligible for this example's calculation. A zero or invalid reference price must also be rejected rather than divided into a score.
Any fitted transformations or model parameters must use information eligible at the decision time. A historically dated feature can still leak future information if its scaling or model coefficients were fitted on the entire sample. Chan's discussion of look-ahead bias makes this point using regression-based trading signals.
Sources
- Ernest P. Chan, Quantitative Trading: How to Build Your Own Algorithmic Trading Business (John Wiley & Sons, 2009), Chapter 3, “Look-Ahead Bias,” pp. 51–52. Explains unavailable future information, lagged feature calculations and leakage from fitting coefficients on the full dataset.
- QuantConnect, Algorithm Framework: Overview, “Important Terminology” and “System Architecture.” Documents the separation of signals, portfolio targets, risk and execution.
- QuantConnect, Time Modeling: Timeslices, “Time Frontier.” Explains data delivery after the relevant bar end and the role of information timing in avoiding look-ahead bias.