CHARTARMORY

Install app

  1. Use the install icon on the right of the address bar, or choose the app-install option in the browser menu. Chrome and Edge support this on desktop.
  2. Already installed? Open ChartArmory from your home screen or computer’s app list.
CHARTARMORY

App & notifications

Enable notifications

Only your selected topics. We store your push address, encryption keys, language and choices; turning notifications off deletes this subscription.

Push notifications are not supported in this environment.

← All productsCHARTARMORY · DAILY TREND CYCLE

Sun Cycle

Hold while it is gold, rest while it is grey

Built on the Schaff Trend Cycle (STC), devised in the 1990s by FX trader Doug Schaff, it marks buy and sell points on the chart at each daily close.

$59.00One-time payment · Perpetual personal use
Add to my chart
Included with the one-time payment (yours to keep)
  • Full Pine Script v6 source code
  • Display and install guide in 8 languages
  • Personal use and modification rights (no redistribution or resale)
  • 30 days of bug-fix support after purchase
  • Copy-code button and TXT right after payment
Delivery and refund policy ↗
Holding and resting, read right on the chart · Bitcoin, September 2023 to April 2024

Same chart. One indicator makes the difference.

Drag the handle to compare the chart with and without Sun Cycle.

Before indicatorAfter indicator
Compare the BTC daily chart with and without Sun Cycle · Before indicator
Compare the BTC daily chart with and without Sun Cycle · After indicator

Calculated from historical data. Future returns are not guaranteed.COINBASE:BTCUSD · 1D · 2023.09–2024.04Chart: TradingView

PROBLEM → FIX

Three worries in trading, and how this eases them

  1. ProblemMACD reads a trend well, but its signal comes a step late

    FixMACD is turned into a 0–100 position within 10 days and smoothed, twice, so it reacts sooner

  2. ProblemSignals flicker during the day, so you never know when to get in

    FixSignals are fixed once a day at the daily close and acted on at the next open, so there is no need to watch the chart all day

  3. ProblemYou fear riding a big decline all the way down

    FixWhen the cycle line turns down, it steps back into cash the next day and sidesteps the deep part of the decline

01 / WHAT IT DOES

Hold while it is gold, rest while it is grey

01

Sunlight and dusk colours for the trend

While holding, the candles and the band of two averages turn gold; while waiting in cash they turn grey. In the lower pane the cycle line fills gold as it rises and violet as it falls.

02

Trades and results at a glance

Buys show as a sun (☀), profitable sells as a mint check (✔ +x%) and losing sells as a red cross (✖ −x%); the top right of the lower pane shows today's holding or cash day count.

03

Steady signals, fixed after the close

Signals are fixed only after the daily close, so past marks never change. A how-to panel in 8 languages and two alerts (buy, sell) are included.

02 / EVIDENCE

Bitcoin track record by start year

Coinbase Bitcoin, starting with US$1,000 and trading only on daily-close signals.

Coinbase Bitcoin daily bars (TradingView COINBASE), filled at the next day's open after the daily close, 0.1% cost per buy and per sell, US$1,000 at the start, to 2026-11-16 (no leverage). Calculated from past data; it does not guarantee future returns.
StartJust holdingSun CycleWorst drop (hold → Sun Cycle)
2016$148,780149×$224,510225×−83.8%−46.7%37.1%pavoided
2018$4,8104.8×$12,12012.1×−81.4%−46.7%34.7%pavoided
2022$1,3601.4×$2,1602.2×−67.0%−39.7%27.3%pavoided
2024$1,4701.5×$1,4901.5×−53.1%−39.7%13.4%pavoided
  • Since 2016 it bought Bitcoin 189 times, about 17 times a year: small losses are cut quickly and big rises are ridden long.
  • Ethereum from May 2016 too: just holding 138× (worst drop −94%), Sun Cycle 935× (worst drop −67%).
Trading without the indicator

The difference in a big decline

Stepping back into cash when the cycle turned down cut how far the account fell compared with just holding (no leverage, 0.1% cost per buy and per sell).

Without it−29.6%

With the indicator +9.6%

Bitcoin over the last year (2025.11–2026.11): just holding, −29.6%.

Without it−67.0%

With the indicator −39.7%

Bitcoin from 2022: worst drop when just holding, −67.0%.

Without it−83.8%

With the indicator −46.7%

Bitcoin from 2016: worst drop when just holding, −83.8%.

03 / INSTALL

Installed in three steps right after payment

No complicated setup: the copy-code button or the TXT file puts it on TradingView straight away.

  1. 01Press the copy-code button on the screen right after payment, or get the TXT
  2. 02Paste the full source into TradingView's Pine Editor and add it to a daily chart
  3. 03Pick the panel language and turn on the two alerts, ☀ buy · ▼ sell

Past performance does not guarantee future results.

Built independently by ChartArmory from the Schaff Trend Cycle (STC) calculation by Doug Schaff.

NO REPAINT · NO FUTURE DATA

3 reasons you can trust it

  • Past signals stay put

    A signal on a closed bar never changes; only today’s unfinished bar can move.

  • No future data

    Other symbols and higher timeframes use only data available at that moment, so no future values leak into past signals.

  • Open raw data

    Past examples are calculated after trading costs (0.1% per side), and you can download the raw data as JSON.

Download raw JSON
INPUTS · PINE SCRIPT V6

Settings you can change

The exact names you see in TradingView’s settings (Inputs tab).8 languages supported

  • Fast average (bars)
  • Slow average (bars)
  • Cycle length (bars)
A MORNING WITH SUN CYCLE

A 5-minute daily routine

  1. Open the chart after 00:00 UTC

    Right after the daily close (00:00 UTC), open the chart once a day.

  2. Check the ☀/✔/✖ marks and the line

    See whether yesterday's closed candle got a new ☀ (buy) or ✔/✖ (sell), and check today's turning-close line that appears when a trade is near.

  3. Act on the signal, then close it

    The indicator places no orders: trade yourself at the open only when a signal appears, and otherwise stay as you are.

WHO IT FITS

Who it fits — and who it doesn’t

Recommended for

  • Office workers who can’t watch charts all day
  • People who want to stick to set position sizes and stops
  • Anyone for whom one chart check a day is enough

Not a fit for

  • Scalpers trading by the second or minute
  • Anyone hunting for a 100%-accurate “magic arrow”
  • People who trade by gut feel rather than rules
BUILD VS BUY

What would it cost to build?

Hiring a developer usually costs $2,000–$5,000+ and weeks of building and testing. Here, one payment gets you tested Pine Script v6 source right away, yours to keep.

Outsourcing
$2,000–$5,000+ · weeks of building and testing
ChartArmory
One payment · tested source, instantly
PAIR RECIPE

Indicators that work well together

Sun CycleKelly Meter

Use Sun Cycle to decide when to hold a coin and when to wait in cash, and Kelly Meter to decide how much to put in.

View indicator

Each indicator is sold separately; combined results have not been tested.

SUN CYCLE / FAQ

Frequently asked questions

What is STC?

An indicator devised in the 1990s by FX trader Doug Schaff. It puts the MACD of the 23-day and 50-day exponential moving averages through a stochastic calculation twice, giving a smooth cycle line that swings between 0 and 100, and reads the trend from it.

Doesn't the signal change all the time?

It trades fairly often: since 2016 it bought Bitcoin 189 times (about 17 times a year). In return it cuts small losses quickly and rides big rises long.

Can a signal change later?

No. Signals are decided on closed daily bars only, so once a signal is final it does not change. The indicator places no orders.

Do I have to watch it every day?

It works on the daily close, so one look right after 00:00 UTC is enough, or turn on the two alerts (buy and sell) and look only when one arrives.

Can I use it on stocks?

You can turn it on for any symbol on a daily chart. The past numbers on this page are for daily crypto charts (Bitcoin, Ethereum), and it is not a method Schaff used on crypto.

Can I edit or share the code?

You can edit it for personal use. Sharing, redistribution and resale rights are not included.

SUN CYCLE / HISTORICAL CASE

Bitcoin in early 2024: a 20-day rise

BTC-USD · 1D · 2024.02 → 2024.03+34.5%

Bought as the cycle lifted off the bottom and sold as it turned down at the top: +34.5% after costs in 20 days.

Low between the sale and the next buy
−10.9%
Holding period
20 days (about 3 weeks)

At the daily close of 24 February 2024 the cycle line turned up, so it bought at the next day's open, $51,568.63. It held along the gold candles, past the highest close of $73,135 on 13 March, and at the 15 March close the line turned down, so it sold at the next day's open, $69,514.87 (+34.5%). Three days after the sale, on 19 March, the close fell to $61,906 (−10.9% from the sale price); the next buy came on 29 March at $70,804.

  1. 01 / ☀ Cycle turns up$51,568.63☀ cycle turns up
  2. 02 / ✔ Cycle turns down$69,514.87✔ cycle turns down · +34.5%
  3. 03 / Lowest close before the next buy$61,906.27−10.9%
This trade+34.5%2024.02.25 → 2024.03.16
BTC-USD · 1D · 2024.01.01 → 2024.04.30
74,95863,48353,76445,53438,563HoldingPeak $73,135▲ Buy $51,569▼ Sell $69,515
Hover the chart to read the date and priceRedrawn from the recorded trade’s closing prices. Average lines are recomputed as a visual guide.

Signal at the daily close, filled at the next day's open, 0.1% cost per buy and per sell · a replay of the TradingView indicator's rule (Coinbase BTC-USD daily)

Download the calculation record (JSON) ↓
SUN CYCLE · V1

What one payment gets you

Get the full Pine Script v6 source code (personal use and modification, no redistribution or resale), the panel and install guide in 8 languages and 30 days of bug-fix support, right away, for one payment.

$59.00One-time payment · Perpetual personal use
Add to my chart
CHARTARMORY STUDIO · CUSTOM INDICATORS

Can’t find the right indicator? Request a custom build.

Tell us the conditions and chart displays you have in mind.