StockFetcher Forums · Filter Exchange · THE SCHAFF TREND CYCLE INDICATOR<< 1 2 >>Post Follow-up
olathegolf
119 posts
msg #96092
Ignore olathegolf
9/8/2010 10:50:24 PM

I believe there is a limit of 100 days.

dwiggains
444 posts
msg #96094
Ignore dwiggains
9/9/2010 9:12:15 AM

Tried the following and it still did not work.
If their is a 100 day limit then my idea will not be any good. I was wanting to go back 2 years and see which stocks have the best chance of trending 30 to 60 days at a time.

set{above80, count(stclong above 80 for 30 days, 100)}
set {below20, count(stclong below 20 for 30 days,100)}
add column above80
add column below20

set{var1, ema(23) - ema(50)}
set{highest, var1 20 day high}
set{lowest, var1 20 day low}
set{range, highest - lowest}
set{var2, var1 - lowest}
set{var3, var2 / range}
set{var4, var3 * 100}
set{stclong, cema(var4, 5)}

add column STClong

draw stclong line at 80
draw stclong line at 20
draw ema(23)


Thanks
See ya
David

olathegolf
119 posts
msg #96101
Ignore olathegolf
modified
9/9/2010 12:49:15 PM

Fetcher[
set{var1, ema(23) - ema(50)}
set{highest, var1 20 day high}
set{lowest, var1 20 day low}
set{range, highest - lowest}
set{var2, var1 - lowest}
set{var3, var2 / range}
set{var4, var3 * 100}
set{stclong, cema(var4, 5)}
set{above80, count(stclong above 80 for 30 days, 100)}
set{below20, count(stclong below 20 for 30 days, 100)}
add column above80
add column below20

add column stclong

draw stclong line at 80
draw stclong line at 20
draw ema(23)
]



olathegolf
119 posts
msg #96104
Ignore olathegolf
9/9/2010 1:37:10 PM

How 'bout something like this to address the 100 day limitation............

Fetcher[
set{var1, ema(23) - ema(50)}
set{highest, var1 20 day high}
set{lowest, var1 20 day low}
set{range, highest - lowest}
set{var2, var1 - lowest}
set{var3, var2 / range}
set{var4, var3 * 100}
set{stclong, cema(var4, 5)}
set{above80_last100, count(stclong above 80 for 30 days, 100)}
set{below20_last100, count(stclong below 20 for 30 days, 100)}
set{above80_100to200, count(stclong above 80 for 30 days, 100) 100 days ago}
set{below20_100to200, count(stclong below 20 for 30 days, 100) 100 days ago}
set{above80,above80_last100 + above80_100to200}
set{below20,below20_last100 + below20_100to200}
add column above80_last100
add column below20_last100
add column above80_100to200
add column below20_100to200
add column above80
add column below20

add column stclong

draw stclong line at 80
draw stclong line at 20
draw ema(23)
]



dwiggains
444 posts
msg #96106
Ignore dwiggains
9/9/2010 3:07:42 PM

I got

Your StockFetcher filter exceeds filter performance restrictions.

Thanks for trying.

see ya
David

olathegolf
119 posts
msg #96110
Ignore olathegolf
9/9/2010 9:33:06 PM

Interesting. I don't get that error. It takes a while but the filter returns 10352 stocks. 20/80 conditions are summed to return the 200 day period you're looking for.

Try to add price and volume conditions and see if that works.

dwiggains
444 posts
msg #96138
Ignore dwiggains
9/10/2010 11:13:43 AM

I do not have the Advanced subscription level.

Guess I am to cheap.

Thanks again
See ya
David

dk58198
19 posts
msg #96180
Ignore dk58198
9/11/2010 12:56:00 PM

this is what I did with changed and added please play with it first before you take my advice i use it for short term trades and when i think the market as a whole is added up.


/*SCHAFF TREND CYCLE INDICATOR*/

set{var1, ema(8) - ema(20)}
set{highest, var1 20 day high}
set{lowest, var1 20 day low}
set{range, highest - lowest}
set{var2, var1 - lowest}
set{var3, var2 / range}
set{var4, var3 * 100}
set{stclong, cema(var4, 5)}

add column STClong

draw stclong line at 80
draw stclong line at 20
draw ema(20)
draw ema(8)
/*BUY WHEN STC CROSSES ABOVE 20*/
/*SHORT WHEN STC CROSSES BELOW 80*/

sort on column 5 descending
show stock price above 2
show 30 day volume above 500000
show MACD Fast Line(8,34) crossed above MACD Slow Line(8,34)
show Stochastic %K(8,5,3) crossed above Stochastic %D(8,5,3)
DeMarker(14) crossed above 0.30


StockFetcher Forums · Filter Exchange · THE SCHAFF TREND CYCLE INDICATOR<< 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.