q.label.fixed_horizon measures the return at one future horizon. Returns above the positive threshold receive label 1, returns below the negative threshold receive -1, and observations inside the neutral band receive 0.
The threshold may be scalar or event-specific. This example labels volatility-scaled CUSUM events after 10 trading observations.
The output retains end_time, realized return, and the event-time threshold. Keep event_time and end_time when constructing validation folds so overlapping outcomes can be purged.
The marker direction and color encode the class at each event. Shaded intervals show the future window used to compute each outcome; overlapping bands make dependence between nearby labels visible.