StockFetcher Forums · General Discussion · Schaff Trend Cycle<< 1 2 >>Post Follow-up
nibor100
1,031 posts
msg #148598
Ignore nibor100
7/19/2019 9:11:40 PM

@graftonian,

1. From the short bit of testing of that filter it appears that the excerpt "cema(var9, 3)" in var10 is creating some kind of plotting issue if SF. If I make var10 = to the constant value, that the filter calculates for var10 today, the lines at 20 and 80 plot fine. ( I know from some previous filters, once variables get around double digits SF sometimes runs into complexity stoppages.

I have not yet tried consolidating some of the variables to make it simpler to see if that solves the issue....

2. Currently in the 3rd chapter of the Weinstein book and taking my time reading it, seems well written and thorough with lots of charts; though I haven't read much beyond buying when price crosses above up-sloping 30 week weighted moving avg, after a Stage 1 basing period, and sell when it crosses back down thru flat 30 week weighted moving avg( Stage 3)

I assume he'll explain how he uses the relative strength line in more detail later on in the book with probably lots of other trading ideas.

3. I'm curious to see how Stage 2 situations on various stocks correlate to ADX values greater than 30 when plus DI is greater than minus DI, etc.

Thanks,
Ed S.



graftonian
1,089 posts
msg #148602
Ignore graftonian
modified
7/20/2019 12:08:24 PM

Ed, Thanx for the help, I'll rewrite some of the code to see if I can break up the bottleneck.

Sunday, July 21 1200: No luck, will turn to SF support

nibor100
1,031 posts
msg #148623
Ignore nibor100
7/21/2019 7:24:13 PM

@graftonian,

See if this works for you:

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

chart-time is 6 months
symlist(fnsr)
]



graftonian
1,089 posts
msg #148652
Ignore graftonian
7/22/2019 4:43:14 PM

Ed, You da man. New version of STC works great. That's another beer I owe You!
Graf

KSK8
561 posts
msg #148663
Ignore KSK8
7/23/2019 10:24:47 AM

Well done Nibor, you've renewed my interest in cycles...

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.