About Schaff Trend Cycle
Schaff Trend Cycle (STC) runs a MACD through the stochastic formula twice and draws the result as a line from 0 to 100. This version follows the original published code line by line, colors the line by direction and marks its turns on the price chart once the bar has closed.
How STC is worked out
- MACD: EMA 23 of the close minus EMA 50 (Fast EMA length, Slow EMA length).
- Step 1: where the MACD sits between its lowest and highest value of the last 10 bars (Cycle length), from 0 to 100, smoothed with a factor of 0.5.
- Step 2: the same again on the step 1 line. The result is STC.
- If the 10-bar range is flat, the line keeps its previous position, as in the original code.
- The value of a closed bar does not change. The first bars (7 times the slow EMA plus 4 times the cycle length) are used to warm up and are not drawn.
On the chart
- STC in its own window, blue while rising and red while falling. The window runs from −5 to 105 so the line stays visible at 0 and 100.
- Dotted levels at 25 and 75.
- Arrows on the price chart, on closed bars only. Arrows on: turn up below 25 or turn down above 75 (default), cross above 25 or below 75, or any change of direction. Each arrow has a short label, such as Turned up or Crossed 25, and a tooltip.
- Lookback: 5000 bars (0 = all).
Higher timeframe
- Up to two higher-timeframe STC lines in the same window: the first in grey, the second darker and thicker. Auto picks the nearest timeframe at least 4 times the chart timeframe, for example H4 on an H1 chart, and the second at least 4 times the first, for example D1.
- Only closed higher-timeframe bars are used, so the lines are drawn as steps and do not change afterwards.
- Arrows only when higher timeframe agrees: keeps the arrows that point the same way as every higher-timeframe STC shown.
Alerts
- Alert on: arrows, STC turns, crosses of the levels in either direction, higher-timeframe STC turns, and STC turning the same way as the higher timeframes. Up, down or both.
- Popup, sound, push notification and email, checked once per closed bar. Alerts that come within the alert interval (60 seconds) are held and sent afterwards. Off until you choose a method.
For EAs
- Buffer 0: STC. Buffer 4: up arrow. Buffer 5: down arrow. The current bar is always empty.
Notes
- In a strong move STC can stay at 0 or 100 for many bars. The arrows show what the line did; they do not say which way price goes next.
- A charting tool, not financial advice.
Common questions
Which platforms and brokers do your indicators work with?
MetaTrader indicators come with both the MT4 and the MT5 version in one download. TradingView scripts run on TradingView. Each product page lists its platforms.
The MetaTrader versions run in any broker's standard MT4 or MT5 terminal, on any symbol and timeframe. There is no broker lock-in.
Do your indicators repaint?
It depends on the tool, and each product page says how its marks behave. Arrows and marks that are checked at the close of the bar stay where they are once printed.
Tools that find swing highs and lows with ZigZag can only confirm a swing after price has moved away from it, so the newest swing can still move until then. Lines and oscillators update on the bar that is still forming, like any indicator, and are final when that bar closes.
What exactly do I get, and in what format?
MetaTrader products: you download a single .zip containing the compiled builds — .ex4 for MT4 and .ex5 for MT5.
TradingView products run on your TradingView account — there is nothing to download.
Paid products include updates for as long as they are offered. Free tools stay free.
How is it delivered?
Free tools download straight from this site with no signup. Free TradingView scripts are added from their TradingView page.
Paid MetaTrader tools: the download is ready right after checkout through our payment provider, Whop.
Is it a one-time purchase or a subscription?
Each product page says what you get and for how long. Access sold for a fixed period ends when the period ends and does not renew unless the page clearly says it is a subscription. Prices are in USD. See our Terms.
Can I get a refund?
Paid products are digital and delivered immediately, so they are not refundable once delivered — except when a product does not work as described and we cannot fix it. Email us within 14 days of purchase and we will refund it.
Rights your local consumer law gives you are not affected. Full details are in our Terms.
Do you offer support?
Yes, by email: questions about how a tool works, installation problems, bugs, payments and refunds. Each product page and this FAQ cover installation and use, so most answers are already there.
We do not offer one-to-one setup sessions or trading advice.
See all FAQs