Schaff Trend Cycle
This professional-grade solution for MetaTrader 5 helps traders achieve greater efficiency in their daily workflow. This technical indicator acts as a specialized analysis tool designed to visualize market data. It helps traders identify emerging trends, momentum shifts, and key support or resistance levels by plotting statistical calculations directly onto price charts.
How to Setup and Use Schaff Trend Cycle
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
Description & Settings
Doug Schaff
Schaff Trend Cycle indicator is a cyclical oscillator created by calculating the over line using cycles. As a result, the developers managed to achieve more stable and reliable results of the indicator script operation. A chart is almost unaffected by the short-term trends that inevitably emerge on the market. But the indicator generates an appropriate alert in case of some sharp changes of the market situation.
Aside from trends periodicity consideration, combination of two different methods of trends direction changes calculation was used to improve reliability of the Schaff Trend Cycle indicator and lessen the quantity of its false activations. These methods are smoothed stochastic oscillator and MACD.
For illustration purposes the indicator's operational field is graduated in standard units ranged from 0 up to 100. Two trigger levels are used — 25 and 75.
The following parameters are used as input ones for the Schaff Trend Cycle indicator setting:
MAShort that is equal to 23 by default. This parameter indicates the value of the fast moving average period during MACD line calculation. It must be considered during its correction that its value must not be lower than MALong parameter value;
MALong parameter has the default value equal to 50. It sets the value of the slow moving average period for MACD line chart calculation. It must always exceed the value of the MAShort parameter to provide normal operation of the indicator;
Cycle (by default = 10). This parameter sets the length of a cycle in a chart periods. The resulting cycle is twice as long because two stochastics are calculated consequentially.
The simplest method of Forex trading using the Schaff Trend Cycle indicator is to sell the currency when the indicator line goes down past the level 80 and to buy it when the indicator line goes up past the level 20. To minimize the quantity of false signals, Doug Schaff suggested to trace the following models of a chart behaviour. For a buy signal, the bar following the trigger bar should close above the high of the trigger bar. For a sell signal, the bar following the trigger bar should close below the low of the trigger bar. Trigger bar is the bar formed above the signal lines with levels 20 or 80.
The presented variant of this popular indicator allows to select the smoothing algorithm out of ten possible variants:
- simple moving average;
- exponential moving average;
- smoothed moving average;
- linear weighted moving average;
- JMA adaptive average;
- ultralinear smoothing;
- parabolic smoothing;
- Tillson's multiple exponential smoothing;
- smoothing with the use of Tushar Chande's algorithm;
- smoothing with the use of Perry Kaufman's algorithm.
It should be noted that Phase parameter has completely different meaning for different smoothing algorithms.
For JMA it is an external Phase variable changing from -100 to +100.
For T3 it is a smoothing ratio multiplied by 100 for better visualization;
For VIDYA it is a CMO period, for AMA it is a slow EMA period;
For AMA fast EMA period is a fixed value and is equal to 2 by default. The ratio of raising to the power is also equal to 2 for AMA.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the
terminal_data_folder
\MQL5\Include). The use of the classes was thoroughly described in the article .