VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime

Schaff Trend Cycle (STC): trend momentum run through a cycle filter, with pairings and strategy ideas

The Schaff Trend Cycle, developed by Doug Schaff, starts with a trend-momentum measure and then passes it through a stochastic-style stretch to produce a bounded line that swings quickly between its two ends. The goal is to keep the trend awareness of a moving-average based tool while gaining the crisp turning points of an oscillator. This page covers how it works, how it behaves, and how a strategy generator can test it on your own contracts.

FamilyMomentum
Output shapeFast bounded cycle lineMoves between two flat ends with brisk turns
In AlphaPrimeBuilt-in generator familyTrend timing, entry and exit rules

What it measures

The indicator is a hybrid, and its recipe explains its look. First it computes the same kind of gap between a fast and a slow average that the MACD uses, which captures trend momentum. Then, instead of leaving that gap as it is, it treats the gap as if it were a price series and asks the stochastic question: where does the latest value sit within its own recent range? The answer is smoothed and the question is asked a second time on the smoothed result.

Applying that location-in-range step twice is what gives the line its character. Raw trend momentum drifts and can wander far from zero for long periods. Once it has been squeezed into a fixed band, however, it behaves like a cycle that rises toward the top when momentum is near its recent best and drops toward the bottom when momentum is near its recent worst. The line reports where momentum stands relative to its own recent history rather than how large it is in absolute terms.

The consequence is a tool that spends much of its time near the two ends and moves between them quickly. Compared with a plain Stochastic oscillator, which watches price location, the Schaff Trend Cycle watches the location of trend momentum, so its turns are tied to changes in the trend rather than to every small swing in price. It is designed to anticipate a trend change earlier than the underlying average crossover alone.

Concept sketch (not real market data)

How it behaves in real markets

In a clean trend the line climbs to its top and then stays there, flat, while the trend continues, and it dips off that plateau only when momentum begins to cool. These flat stretches are a feature: they say the trend momentum is at or near its recent best and nothing has challenged it yet. A first drop off the plateau is the event most traders pay attention to.

In a choppy, directionless market the line whips from end to end, sometimes completing a full cycle in only a handful of bars. Those frequent flips are the cost of its speed, and they are why it is rarely used alone. Without a view on whether the market is trending, a fast cycle line can offer many moves that do not carry through.

Because the final stretch step is scaled to recent history, the line adjusts to changes in market tempo. A contract that has gone quiet still produces full-size swings in the line, since the swings are measured against the quiet recent range. That adaptiveness is helpful for comparison across markets, but it also means a full swing does not by itself say the underlying move was large.

Common ways to use it (concepts)

Trend timing

Turn at the plateau

Wait for the line to leave its low end and climb, treating the lift as the start of fresh upward momentum, and the reverse for downward moves. The idea is to act on the change of momentum rather than waiting for a slow average cross.

Exit rule

Leaving when momentum cools

Hold a trade while the line stays on a plateau and leave when it first slips away from it. This gives a systematic way to take a position out as soon as trend momentum stops being at its best.

Filter

Which end is the line near

Use the line only to say whether momentum is currently near its upper or lower end, and let another rule choose the entry. The filter keeps trades aligned with the side momentum is already on.

Pairing it with other indicator families

Because it is quick, the Schaff Trend Cycle benefits from a partner that checks whether a trend is truly present. Pairing it with ADX lets a rule use the cycle's early turns only when trend strength is rising, and ignore them when the market is simply churning.

It also fits with the family it comes from. Setting the cycle's call alongside a plain MACD reading shows when the faster line is anticipating a change that the slower measure has not yet confirmed, and the Awesome Oscillator gives a histogram view of the same type of momentum for a quick agreement check.

For direction and exits, a moving average works well as the slow anchor, with the cycle line used to time entries within the direction the average indicates. This arrangement gives each tool a single clear job and keeps the fast line from fighting the slow one.

In AlphaPrime

In AlphaPrime, the Schaff Trend Cycle belongs to the built-in momentum family the strategy generator uses. Because it is already a combination of ideas, it is a good source of timing rules: the generator can use its turns as triggers, its plateaus as filters, or its drop from a plateau as an exit.

The generator crosses these rules with trend, volatility, volume and session families to make a large field of candidates, which the GPU backtests one at a time. A line that flips this quickly can look flawless on a lucky stretch, so out-of-sample validation does the important work of showing which timing rules remain steady on unseen data.

Combinations that pass can be exported as strategy code for your trading platform, so a cycle-based timing idea moves smoothly into your existing simulation and live workflow.

FAQ

What makes the Schaff Trend Cycle different from the MACD?

The MACD reports the gap between two averages directly. The Schaff Trend Cycle takes that gap and measures where it sits within its own recent range, giving a bounded line with quicker turns.

Why does the line spend so much time at its extremes?

Running momentum through the location-in-range step twice pushes the line toward its ends whenever momentum is near its recent best or worst. The flat stretches mean the trend momentum has stayed at that level.

Can a Schaff Trend Cycle strategy be exported to my trading platform?

Yes. After a combination from the strategy generator passes out-of-sample validation, it can be exported as strategy code for your trading platform.