StockFetcher Forums · Filter Exchange · Help changing the internal code<< >>Post Follow-up
jackmack
333 posts
msg #122513
Ignore jackmack
1/12/2015 8:57:45 AM

Hello and good morning
This is a great filter from tomm1111 in the KST thread however, I am wanting to know
if someone can help or show me how to change the settings for the days and weeks to:

days
1
5
10
15
and weeks
4
6
8
10

I have tried several ways and it just bombs as its not just a simple change of the days
and weeks so I was hoping someone here could help.
Thank you in advance
Cheers

Fetcher[
/* Short Term - Day */
set {sd101,close / close 9 days ago}
set{sd102,sd101 * 100}
set{sd10,sd102 - 100}
set{sd_10ma,cma(sd10,10)}

set {sd151,close / close 14 days ago}
set{sd152,sd151 * 100}
set{sd15,sd152 - 100}
set{sd_15ma,cma(sd15,10)}

set {sd201,close / close 19 days ago}
set{sd202,sd201 * 100}
set{sd20,sd202 - 100}
set{sd_20ma,cma(sd20,10)}

set {sd301,close / close 29 days ago}
set{sd302,sd301 * 100}
set{sd30,sd302 - 100}
set{sd_30ma,cma(sd30,15)}

set{var,sd_30ma * 4}
set{var1,sd_20ma * 3}
set{var2,sd_15ma * 2}
set{var3,var2 + var1}
set{var4, var + sd_10ma}
set{sd_kst,var3 + var4}

/* Intermediate Term - Week */
set {sw31,close / close 49 days ago}
set{sw32,sw31 * 100}
set{sw3,sw32 - 100}
set{sw3_3ma,cma(sw3,10)}

set {sw41,close / close 64 days ago}
set{sw42,sw41 * 100}
set{sw4,sw42 - 100}
set{sw4_4ma,cma(sw4,13)}

set {sw61,close / close 74 days ago}
set{sw62,sw61 * 100}
set{sw6,sw62 - 100}
set{sw6_6ma,cma(sw6,15)}

set {sw81,close / close 99 days ago}
set{sw82,sw81 * 100}
set{sw8,sw82 - 100}
set{sw8_8ma,cma(sw8,20)}

set{var02,sw8_8ma * 4}
set{var12,sw6_6ma * 3}
set{var22,sw4_4ma * 2}
set{var32,var22 + var12}
set{var42, var02 + sw3_3ma}
set{sw_kst,var32 + var42}

set{sd_ma,cema(sd_kst,5)}
set{sw_ma,cema(sw_kst,5)}

draw sd_kst
draw sd_ma on plot sd_kst
draw sw_kst
draw sw_ma on plot sw_kst

show stocks where close is above 1
and volume is above 100000

add column sd_kst
add column sw_kst
]



StockFetcher Forums · Filter Exchange · Help changing the internal code<< >>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 2016 - 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