Syntax
public SchaffTrendCycle(DataSeries ds, int tcLength, int avgPeriod1, int avgPeriod2, string description)
public static SchaffTrendCycle Series(DataSeries ds, int tcLength, int avgPeriod1, int avgPeriod2)
Parameter Description
ds |
The source DataSeries |
tcLength |
The Trend Cycle length/period |
avgPeriod1 |
The fast average period for the MACDEx intermediate indicator. |
avgPeriod2 |
The slow average period for the MACDEx intermediate indicator. |
Description
The Schaff Trend Cycle indicator from the April 2010 issue of
Stocks & Commodities magazine. Designed for the currency markets to identify cycle tops and bottoms, the Schaff Trend Cycle oscillates between 0 and 100, generally giving clear, timely signals.
Interpretation
Go long/cover when the indicator cross above 25, and sell/short on a cross below 75.
Example