Trend indicators

Schaff Trend Cycle (STC) Indicator: Formula, Settings and the 25/75 Rules on Real Data

The Schaff Trend Cycle runs a MACD through a stochastic, twice, and plots the result between 0 and 100. Here is the exact calculation from the published code, what the 23, 50 and 10 settings do, and how the classic 25/75 rules fared on Bitcoin and the S&P 500 ETF.

· Founder of PatternsWizard
Checked 8 min read
STC(10, 23, 50) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. How the STC is calculated
  2. Settings: 23, 50 and 10
  3. The 25/75 trading rules
  4. The STC on daily Bitcoin and the S&P 500 ETF
  5. Does it work?
  6. Frequently asked questions

The Schaff Trend Cycle (STC) is a trend oscillator that moves between 0 and 100. It starts from a MACD line, the gap between a fast and a slow exponential moving average, and puts it through a stochastic formula twice, so the line turns quickly and spends a lot of time pinned at its extremes. Doug Schaff, president and founder of FX Strategy, created it in the 1990s for currency trading, and he “divulged the details” of the indicator in 2008, according to Brian Twomey's article on the method.

Schaff Trend Cycle on daily Bitcoin

STC(10, 23, 50) on Bitcoin, daily, February 21, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • STC(10, 23, 50) (solid line)
STC(10, 23, 50) on Bitcoin, daily, February 21, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

You can add the indicator on TradingView, where the scripts library lists several versions of it.

How the STC is calculated

The formula below follows the EasyLanguage code printed with Twomey's article. A stochastic tells where a value sits within its range of the last 10 bars, from 0 at the low of that range to 100 at the high. Applying it to the MACD, smoothing, then applying it again to the result is what gives the STC its square, stepped shape.

Settings: 23, 50 and 10

InputDefaultWhat it does
Fast length23Fast exponential moving average of the close, used to build the MACD line
Slow length50Slow exponential moving average of the close, used to build the MACD line
Cycle length10Number of bars over which each stochastic pass looks for the high and the low
Factor0.5Smoothing applied after each stochastic pass; in the published code it is fixed, not an input

Twomey reports that Schaff recommends trying smaller averages for longer timeframes and longer averages for shorter ones, and notes that a shorter cycle length gives more turns, a longer one fewer. There is no published test of a best setting. If you change one, compare the number of signals and the time spent at 0 and 100, which are the two things the settings move.

The 25/75 trading rules

  • Buy when the STC crosses above 25 heading up.
  • Sell or short when it crosses below 75 pointing down.
  • Exit a long when the line comes back down through 75, a short when it comes back up through 25.

The 25/75 rules of the Schaff Trend Cycle

The 25/75 rules of the Schaff Trend Cycle: a line moving between 0 and 100 with levels at 25 and 75. A long entry when it rises through 25; the long is closed, and a short opened, when it falls through 75; the short is closed when it rises back through 25. Flat stretches at 0 or 100 give no new signal.
Schematic, not market data.The rules as Twomey gives them; the confirming candle Schaff waits for is not drawn.

Twomey adds that Schaff recommends waiting for a confirming candle, entering on the second candle up for longs and the second candle down for shorts, and that the indicator should not be used on its own.

The STC on daily Bitcoin and the S&P 500 ETF

We ran the 25/75 rules with the default settings over the last 600 daily bars of two markets, from March 8, 2025 for Bitcoin and from June 7, 2024 for the S&P 500 ETF, to October 28, 2026: each cross above 25 goes long and each cross below 75 goes short, at the next day's open, always in the market once the first signal has come (stop and reverse). The test starts flat after a warm-up of 180 bars (3 × 50 + 3 × 10), so that the starting values of the averages no longer weigh on the line, and costs are not included. The warm-up matters: started from the first defined value instead, the Bitcoin run begins on May 18, 2025 and gives 32 trades, 11 winners and +13.68% including the open position, with a worst trade of −12.88%.

Bitcoin, dailyS&P 500 ETF, daily
First entrySeptember 9, 2025March 25, 2025
Closed trades2529
Winning trades108
Compounded result, closed trades+37.43%−1.58%
Position open on October 28, 2026Short since October 2, 2026, +4.17%Short since October 2, 2026, −0.22%
Result including the open position+43.16%−1.80%
Buy and hold over the same period−27.41%+36.47%
Best trade, worst trade+23.08%, −9.05%+13.81%, −4.00%

The two results go in opposite directions. On Bitcoin, which fell over the period, the short trades carried the result. On the ETF, which rose steadily, the rules kept going short and lost a little while buy and hold gained 36.47%. Fewer than half the trades won on either market. Twomey writes that the best reliability any indicator can achieve is a percentage “in the low 90s” and that the STC comes close to it; he gives no test behind that claim, and these two series show nothing close to it.

On Bitcoin, the line read 0.0 or 100.0 (to one decimal) on 167 of the 420 bars after warm-up, and on the ETF on 93 of 420. On October 28, 2026, it read 0 on Bitcoin and 0.7 on the ETF.

Schaff Trend Cycle on the daily S&P 500 ETF

STC(10, 23, 50) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • STC(10, 23, 50) (solid line)
STC(10, 23, 50) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

The chart of the ETF shows why the rules lost there. Over these 250 sessions the line crossed above 25 or below 75 19 times, while the ETF rose from 672.57 to 772.31 on dividend-adjusted closes. Each dip in a rising market pushed the MACD to the bottom of its 10-day range, so the line fell through 75 and the rules went short. Seven of those shorts were closed within the window, 12 to 48 days after entry, and six of them were closed at a higher price than the entry.

Does it work?

The table above is two markets over one to two years, with a single setting: it shows how the rules behave, it does not measure an edge. Our bench measures chart patterns detected by rule against random entries, not indicators (see our methodology). A fair test of the STC would run on many markets, with costs, and compare it with the plain MACD crossover it is built from.

One way to use the STC is to filter it with a trend tool such as a moving average or the Trend Intensity Index and take only the signals in the trend's direction (our view, untested). Its stochastic step works like the stochastic oscillator, applied to the MACD instead of price. More tools are listed with the trend indicators.

To try it yourself, one community version is the Schaff Trend Cycle script on TradingView. Click here to open it directly on TradingView and add it to a chart for free.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What is the STC indicator?

The Schaff Trend Cycle, a 0 to 100 oscillator by Doug Schaff that applies a double stochastic to a 23 and 50-bar MACD. It is read with the 25 and 75 levels.

What are the best settings for the Schaff Trend Cycle?

The published defaults are 23 and 50 for the averages and 10 for the cycle, with a factor of 0.5. No published test shows a better set; shorter values give more signals and more time at 0 and 100.

What is the STC trading strategy?

Buy when the line crosses above 25 heading up, sell or short when it crosses below 75 heading down, and exit when the opposite level is crossed. On our two daily series, fewer than half of those trades won.

What is the difference between STC and MACD?

The STC starts from a MACD line but rescales it with a stochastic, twice, so it is bounded between 0 and 100 and spends long stretches pinned at 0 or 100. The MACD keeps the price units and has no fixed levels.

Sources

  1. Brian Twomey, The Schaff Trend Cycle (copy of the article with the EasyLanguage code)
  2. TradingView, Schaff Trend Cycle community script
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All trend indicators articles