StockFetcher Forums · General Discussion · Schaff Trend Cycle<< 1 2 >>Post Follow-up
nibor100
1,044 posts
msg #144844
Ignore nibor100
10/3/2018 8:44:27 AM

@graftonian,

I'm not familiar with the Schaff Trend Cycle and there seems to be little reliable information about it on the web; do you implement it in an SF filter, and if so what conditions need to be met?

Thanks,
Ed S.

graftonian
1,089 posts
msg #144845
Ignore graftonian
10/3/2018 9:06:21 AM

Kevin did some experimenting with the Schaff trend cycle (STC) however I do not think it is possible in SF.
It is available in TOS
https://www.investopedia.com/articles/forex/10/schaff-trend-cycle-indicator.asp


graftonian
1,089 posts
msg #144846
Ignore graftonian
10/3/2018 9:12:46 AM

This is what I started on a few months ago, it is incomplete,

/*First, the 23-period and the 50-period EMA and the MACD values are calculated:*/
set{EMA1, EMA(23)}
set{EMA2, EMA(50)}
set{var1, EMA1 - EMA2}

/***Second, the 10-period Stochastic from the MACD values is calculated:

%K (var1) = %KV (var1, 10);

%D (var1) = %DV (var1, 10);

Schaff = 100 x (var1 - %K (var1)) / (%D (var1) - %K (var1)).***/

compound_gains
222 posts
msg #144848
Ignore compound_gains
modified
10/3/2018 12:24:42 PM

Kevin's work...

https://bit.ly/2xVsC5t

or this

https://www.stockfetcher.com/forums/THE-SCHAFF-TREND-CYCLE-INDICATOR/1002/95838/-1/95838

nibor100
1,044 posts
msg #144849
Ignore nibor100
10/3/2018 2:33:46 PM

I found a link to the PDF that the creator of the Schaff Trend Cycle, Doug Schaff, authored in 2008 when he released his indicator for public use.

https://www.omnitrader.com/currentclients/proforum/get-attachment.asp?attachmentid=2503

It contains background on him and the reasons for the indicator, calculation details and example charts on how to use it, about 20 page read.

Now for some filter experimentation....,
Ed S.

graftonian
1,089 posts
msg #144850
Ignore graftonian
modified
10/3/2018 3:03:08 PM

I do not believe that Kevins work is valid (I never thought I'd say that!)
If one compares Kevins version of STC with that found on TOS, there is a considerable lag.
Today, FNSR triggered on TOS, waiting for SF. The last TOS trigger was Aug 6, while SF trigger occurred on Aug 10.
Back in 2010, said: " ..... However, to make it better, one should be using an adaptive cycle period - unfortunately, SF code does not allow for the use of a variable in these types of calculations. If it did, this could be much more useful. Oh well. "

nibor100
1,044 posts
msg #144859
Ignore nibor100
10/4/2018 3:56:01 PM

@ graftonian,

It appears KofG used a cycle length of 20 instead of the normal default of 10.
if we change the 20's to 10's in his filter FNSR triggers on SF on Aug8th instead of Aug10th.

Further down he is using an Custom ema of 5 for some reason and if we remove that and just use his Var4 as the signal it improves to triggering on FNSR on Aug 7th.

I looked at 2 other chart platforms and downloaded a trial paper trading copy of Think or Swim and none of the 3 show a trigger on FNSR for yesterday.

All 3 have the same values for the Aug 6th trigger on FNSR.

The settings for the Schaff Trend Cycle in my version of TOS are 23,50,10,3,75,25, exponential.
Are those your settings also?

Thanks,
Ed S.

graftonian
1,089 posts
msg #144862
Ignore graftonian
10/5/2018 8:43:31 AM

Ed,
"I looked at 2 other chart platforms and downloaded a trial paper trading copy of Think or Swim and none of the 3 show a trigger on FNSR for yesterday. "

You are correct, I was looking at the 1 hour chart. Oops


nibor100
1,044 posts
msg #144878
Ignore nibor100
10/7/2018 10:24:49 AM

@graftonian,

I believe this is an accurate Schaff Trend Cycle filter:

Fetcher[
set{var1, ema(23) - ema(50)}
set{highest, var1 10 day high}
set{lowest, var1 10 day low}
set{range, highest - lowest}
set{var2, var1 - lowest}
set{var3, var2 / range}
set{var4, cema(var3, 3)}
set{var6, var4 10 day high}
set{var5, var4 10 day low}
set{var7, var4 - var5}
set{var8, var6 - var5}
set{var9, var7 / var8}
set{var10, cema(var9, 3)}
set{stclong, 100 * var10}

add column STClong
draw stclong
draw ema(23)

/*BUY WHEN STC CROSSES ABOVE 20, SHORT WHEN STC CROSSES BELOW 80
draw stclong line at 80
draw stclong line at 20*/

chart-time is 6 months
symlist(fnsr)
]



Ed S.

graftonian
1,089 posts
msg #148595
Ignore graftonian
7/19/2019 6:04:58 PM

Ed, I put this thread on the back burner when I got interested in options trading. Now, with the interest in the Weinstein book, there seems to be a place for this. The STC calculated agrees with those calculated in Tastytrade. I do have a question. Why can't I use statements such as "draw STClong line at 20" or "STClong approaching 20 from below" et al? Are you enjoying your autographed copy of Stans book?

StockFetcher Forums · General Discussion · Schaff Trend Cycle<< 1 2 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.