Schaff Trend Cycle — ForexBestRobots edition 1.05
Modified 2026-12-05 from EarnForex 1.04.
Original author credits: Doug Schaff; EarnForex; TradeStation EasyLanguage adaptation.
Repository: https://github.com/EarnForex/Schaff-Trend-Cycle
Pinned commit: 69fe36987f71a4f08f6a99d894fc11a2795cfd3b
License: Apache License 2.0, unchanged; see LICENSE.

Changes (not an unmodified upstream build):
- Common Close EMA recurrence, seeded to the first available Close on both platforms.
- Two stochastic stages, fixed smoothing0.5; preserve upstream first-pass delay.
- Zero/nearzero-range carry-forward guards: MACD range1e-12*price, second1e-10 units.
- Hide first MALong+2*Cycle candles; empty display values in warm-up.
- Deterministic full/incremental recalculation with explicit chronological indexing.
- Validate 1<=MAShort<MALong<=10000, Cycle2..1000, prefix1..32 ASCII letters/digits/_/-.
- Use only closed source candles for both arrows and notifications.
- Draw arrows at the next available opening, not on an unconfirmed source candle.
- Startup/history-reset silence, latest-event-only notifications once per new opening.
- Atomic temporary namespace ownership, delimiter-safe object cleanup, capped-history handling.
- Remove per-call MT5 indicator-handle creation and MT4 per-candle Sleep calls.
- Retain all original author notices; separate original source is unchanged.

Not verified by a native MetaEditor compiler or an installed MetaTrader terminal.
The source-level C++ modeled-API checks do not establish native runtime support.
No ready EX4/EX5 executable is supplied. Compile in the matching desktop MetaEditor.
Patch is a unified diff of decoded UTF-8/LF text views; original upstream bytes
remain unchanged UTF-16. Decode before applying the textual diff manually.
The program has no trading calls and sends no notifications until explicitly enabled.
Notify text contains symbol, timeframe and event times; no account identifiers.
