Schaff Trend Cycle MTF
- Indicators
-
Evgenii Sutulov
Premium components
1. https://www.mql5.com/en/market/product/201632 - Rotation Manager Console - Version: 1.3
A MACD that turns while the move is still worth taking. Schaff Trend Cycle MTF runs a MACD through two stochastic passes, which compresses it into a nought to one hundred cycle with sharp, early turns instead of the slow drift a MACD gives you, and it fires on the turn out of a zone rather than on a crossing. Any higher timeframe on any chart, closed senior bars only. It is free: no trial, no locked features, no upgrade page.
A MACD built from a fast and a slow exponential average is pushed through two stochastic passes over the cycle window, each with a light smoothing of one half. Two passes over an already differenced series is what compresses the result into a bounded cycle and what makes its turns sharp and early.
The signal is the turn out of a zone: up through the twenty five line for a buy and down through the seventy five line for a sell. The ten and ninety levels only grade a signal two instead of one. Nothing is filtered away, and every turn is published.
What is on the chart
In its own sub window: the cycle as a single line with its zone levels. Divergence lines are drawn on that line and, if you want them, between the matching pivots on the price chart as well. This product has one plotted line and no histogram, so the Styles tab offers the line and its width and nothing else.
The panel
A canvas panel on the price chart, draggable, collapsible, closeable. It shows the timeframe in force and the setting values actually being used. It says what the last closed bar was: a BUY signal, a SELL signal, or neither. And it says whether the numbers on screen came from the properties dialog or from the panel, and how many of them were changed by hand.
Below that sit the settings the panel can move, with their current values. The gear opens a three-tab sheet.
Values covers the timeframe, the cycle length of ten, which is the stochastic window and is used twice, the fast length of twenty three and the slow length of fifty behind the MACD, the four levels at ninety, seventy five, twenty five and ten, and the three divergence rows. Styles covers the palette, the line and its width. Every Values row has steppers, a range and a sentence of help.
The Alerts tab covers the master switch, the per event switches, the channels, the cooldown in minutes and a test alert.
Three colour schemes: dark, light, and a colour-blind safe one that uses blue and orange rather than red and green. Everything about the panel, including every value changed on the sheet, is stored per chart and survives a timeframe change and a terminal restart. The interface is English.
Alerts
Off out of the box. Six events: a BUY signal, a SELL signal, a bullish divergence, a bearish divergence, the cycle crossing above the fifty line, and the cycle crossing below it. Each has a switch of its own.
Channels: a popup window, a sound, a push to the mobile terminal and e-mail. There are per-event and per-channel switches, and a cooldown that defaults to two hours.
Alerts fire on the last closed bar. Two further alerts, off by default, speak on the forming bar within a chosen number of seconds of its close, and they are labelled early because a flip that exists mid-bar can un-happen. Telegram is not part of this product.
Multi-timeframe
The Timeframe setting computes on a higher timeframe and draws the result here. Only closed senior bars are read: a chart bar shows the newest senior bar that had already closed by that chart bar's own close, so the flip lands on the bar that closes together with the senior bar, and nothing is drawn that could not have been known in real time.
The foreign series is built in the background. The first read of it can come back empty, the indicator retries, and the panel says whether it is waiting for a download or looking at a genuine shortage of history. It never fails initialisation over missing bars.
Reading it from an EA
Nine buffers, all readable through iCustom and CopyBuffer. Buffer 0 is the Schaff Trend Cycle itself, a line running between zero and one hundred and buffer 1 is a service series kept for the shared buffer map. Buffer 2 is a second service series kept for the same reason, and buffer 3 is the colour index that paints it. Buffer 4, Signal, is +1 on a BUY bar, -1 on a SELL bar and 0 otherwise. Buffer 5 is the grade of that signal. Buffer 6 carries the divergence marks, +1 bullish and -1 bearish. Buffer 7 is the zero line and buffer 8 is Override.
This product has no separate Buy and Sell price buffers, because there is no price to put an arrow at in a sub window. The signal is buffer 4 and it is the contract: filled on every pass whatever the Styles tab says, and present in the Data Window. Hiding a plot is done by taking its colour away and never by emptying a buffer, so every index above stays readable with the display switches off.
An instance created by iCustom is read only and always uses the parameters you passed. The Override buffer lets a strategy detect that a chart instance is running on numbers changed by hand from the panel.
Provenance
This is a port of the Schaff Trend Cycle, Doug Schaff's method. The mathematics is public and openly published Pine implementations exist, which makes a port by formula admissible. One deviation is declared: on the first bars the windows are progressive and the smoothing starts from the first value rather than from nothing, and after the warm up the two series agree.
The product is called Schaff Trend Cycle MTF because that is the name of the method, not because authorship of the method is claimed here. The original work belongs to its author.
Honest limits
The oscillator is live on the forming bar. A cross that exists mid-bar can be absent at the close, and the panel line and the grade go with it. Closed bars do not change.
Two stochastic passes make the line spend much of its time pinned at nought or one hundred. That is what the construction does, and a pinned reading is not a stronger signal, it is a saturated one.
Early turns are early in both directions. The cycle turns before a move ends and it also turns before a move begins, and no setting separates the two cases.
The cycle, fast and slow lengths together move every turn the product will ever show. Two configurations give two different sets of signals and neither is the correct one.
No profit figure, win rate or backtest result is claimed here.
