StockFetcher Forums · Filter Exchange · Schaff Trend Cycle revisited<< >>Post Follow-up
graftonian
1,089 posts
msg #158895
Ignore graftonian
3/26/2022 10:58:04 PM

Refresh my tired old memory. Was a suitable STC ever created in SF?

nibor100
1,046 posts
msg #158896
Ignore nibor100
3/27/2022 2:39:31 AM

You seemed to like this one a few years ago....takes about 10 seconds to run and return results on my advanced subscription.

Ed S.

Fetcher[
set{range, MACD (23,50,9) 10 day high - MACD (23,50,9) 10 day low}
set{var2, MACD (23,50,9) - MACD (23,50,9) 10 day low}
set{var3, var2 / range}
set{var6, cema(var3, 3) 10 day high}
set{var5, cema(var3, 3) 10 day low}
set{var7, cema(var3, 3) - 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
close > 9.99 volume > 100000
chart-time is 6 months
stclong 1 day ago < 20 and stclong > 20
/*symlist(fnsr)*/
]



graftonian
1,089 posts
msg #158900
Ignore graftonian
3/28/2022 9:21:07 AM

Ed, Thanks for the re-post. That is the code I was looking for. It is long winded, but does run on my basic subscription.
The guy on charting wealth has been using the STC, so I cobbled together STC, IFT, and PSAR. Along with some MA200 and volume restrictions, It seems to have some merit.
Thanks again
Duane

graftonian
1,089 posts
msg #158906
Ignore graftonian
3/29/2022 6:06:45 PM

Fetcher[
/*TRIPLE TREAT 032922*/
market is not OTCBB
close between 1 and 50
volume > 1000000
volume > Average Volume(30)
/*position and slope of MA(200)*/
/*close greater than MA(200) */
close > MA(200)
/*slope of MA(200) increasing*/
30 day slope of MA(200) 30 days ago > 30 day slope of MA(200) 60 days ago
30 day slope of MA(200) > 30 day slope of MA(200) 30 days ago
/*slope of MA(200) is positive*/
30 day slope of MA(200) > 0

/*recent H10/H50 cross-over*/
/*10 Day Hull Moving Average */
set{fast1,cwma(close, 5)}
set{fast2, 2 * fast1}
set{fast3, cwma(close,10)}
set{valfast, fast2 - fast3}
set{H10, cwma(valfast,4)}
/*50 Day Hull Moving Average */
set{fast1_50,cwma(close, 25)}
set{fast2_50, 2 * fast1_50}
set{fast3_50, cwma(close,50)}
set{valfast_50, fast2_50 - fast3_50}
set{H50, cwma(valfast_50, 7)}
draw H10 on plot price
draw H50 on plot price
set{h10xh50, count(H10 > H50, 1)}
/*indicate when H10 > H50*/
draw h10xh50

/* indicate when close > PSAR */
draw Parabolic SAR(0.02,0.2)
set{psar_trig, count(Parabolic SAR(0.02,0.2) < close, 1)}
draw psar_trig
draw STCtrig
/* SCHAFF TREND CYCLE DEFINITION*/
set{range, MACD (23,50,10) 10 day high - MACD (23,50,10) 10 day low}
set{var2, MACD (23,50,10) - MACD (23,50,10) 10 day low}
set{var3, var2 / range}
set{var6, cema(var3, 3) 10 day high}
set{var5, cema(var3, 3) 10 day low}
set{var7, cema(var3, 3) - var5}
set{var8, var6 - var5}
set{var9, var7 / var8}
set{var10, cema(var9, 3)}
set{stclong, 100 * var10}
/* indicate when STC crosses above 0 */
set{STCtrig, count(STClong > 5, 1)}
draw stclong
draw STClong line at 0
add column STClong


chart-time is 90 days
]



StockFetcher Forums · Filter Exchange · Schaff Trend Cycle revisited<< >>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.