StockFetcher Forums · General Discussion · Finding stocks that trend - highly directional within a range<< 1 2 >>Post Follow-up
miska2
17 posts
msg #88539
Ignore miska2
2/22/2010 6:22:36 PM

1/2/2010 5:03:58 PM

I finally figured it out; stocks that trend strongly will have a greater slope on average, whereas stocks the just plod along will have a slope approaching 0. hence:

Fetcher[
set {slope1,abs(5 day slope of close)}
draw slope1
add column slope1
set{slopesum,sum(slope1,90)}
add column slopesum
sort by column 6 descending
volume greater than 500,000
price greater than 10
]




Does 90 in the slopesum part of this filter calculate the slopesum for 90 trading days or 450 (90 5-day slopes of the close)?


tomm1111
198 posts
msg #88549
Ignore tomm1111
2/23/2010 2:01:26 AM

Here is a filter that will identify strong 30 day trends. It is sorted in order of trend strength. If you want to look at different period change every "30" you see to what you want.

Fetcher[
/*30 day trend*/
set{prc_chg,close - close 1 day ago}
set{np, prc_chg / close 1 day ago}
set{my_ind,np * 100}
set{my_sd_30,cstddev(my_ind,30)}
set{my_sum_30,sum(my_ind,30)}
set{my_mean_30,my_sum_30 / 30}
set{target_L30,0}
set{p30,target_L30 - my_mean_30}
set{z_30,p30 / my_sd_30}

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

add column z_30{30-day}

sort by column 5 ascending
]



chetron
2,817 posts
msg #88555
Ignore chetron
2/23/2010 6:52:29 AM

very nice, tomm....

Fetcher[
/* i like to draw */
/* zero cross looks interesting */
/*30 day trend*/
set{prc_chg,close - close 1 day ago}
set{np, prc_chg / close 1 day ago}
set{my_ind,np * 100}
set{my_sd_30,cstddev(my_ind,30)}
set{my_sum_30,sum(my_ind,30)}
set{my_mean_30,my_sum_30 / 30}
set{target_L30,0}
set{p30,target_L30 - my_mean_30}
set{z_30,p30 / my_sd_30}

draw z_30 line at 0

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

add column z_30{30-day}

sort by column 5 ascending
]




kickin' it up a notch....

Fetcher[
/* advanced sub */

/*30 day trend*/
set{prc_chg,close - close 1 day ago}
set{np, prc_chg / close 1 day ago}
set{my_ind,np * 100}
set{my_sd_30,cstddev(my_ind,30)}
set{my_sum_30,sum(my_ind,30)}
set{my_mean_30,my_sum_30 / 30}
set{target_L30,0}
set{p30,target_L30 - my_mean_30}
set{z_30,p30 / my_sd_30}
set{vbuy,count(z_30 crossed below 0,1)}
set{vshort,count(z_30 crossed above 0,1)}
set{vplays,vshort + vbuy}

draw vshort on plot vbuy
draw z_30

show stocks where close is above 1
and volume is above 100000
vplays crossed above .50
do not draw vplays
do not draw vplays line at .50

add column z_30{30-day}

sort by column 5 ascending
]



DLB7
43 posts
msg #88562
Ignore DLB7
modified
2/23/2010 9:08:47 AM

Take a look before the blast off and resulting trend.

Notice how many form a higher low? I've done some testing over the past few weeks with good results, visually searching for higher lows.

Anyone have a scan for higher lows? Tried the SF incomplete double bottom and double bottom scan with mixed results.

chetron
2,817 posts
msg #88563
Ignore chetron
modified
2/23/2010 9:22:22 AM

maybe...

Fetcher[

/* i like to draw */
/* zero cross looks interesting */
/*30 day trend*/
set{prc_chg,close - close 1 day ago}
set{np, prc_chg / close 1 day ago}
set{my_ind,np * 100}
set{my_sd_30,cstddev(my_ind,30)}
set{my_sum_30,sum(my_ind,30)}
set{my_mean_30,my_sum_30 / 30}
set{target_L30,0}
set{p30,target_L30 - my_mean_30}
set{z_30,p30 / my_sd_30}

/* TACHIKAWA */

SET{VHH21,COUNT(HIGH 2 DAY AGO BELOW HIGH 1 DAY AGO,1)}
SET{VHH10,COUNT(HIGH BELOW HIGH 1 DAY AGO,1)}
SET{VHH3,VHH21 * VHH10}

SET{VLL21,COUNT(LOW 2 DAY AGO ABOVE LOW 1 DAY AGO,1)}
SET{VLL10,COUNT(LOW ABOVE LOW 1 DAY AGO,1)}
SET{VLL3,VLL21 * VLL10}

SET{VHH8,COUNT(HIGH 1 DAY AGO ABOVE HIGH 8 DAY HIGH 2 DAY AGO,1)}
SET{VHL8,COUNT(LOW 1 DAY AGO ABOVE LOW 8 DAY LOW 2 DAY AGO,1)}
SET{VLH8,COUNT(HIGH 1 DAY AGO BELOW HIGH 8 DAY HIGH 2 DAY AGO,1)}
SET{VLL8,COUNT(LOW 1 DAY AGO below LOW 8 DAY LOW 2 day ago ,1)}

SET{HILO,VLL3 * VHL8}

draw z_30 line at 0

show stocks where close is above 1
volume is above 100000
hilo above .5
add column z_30{30-day}

sort by column 5 ascending

]



or even.....

Fetcher[


/* i like to draw */
/* zero cross looks interesting */
/*30 day trend*/
set{prc_chg,close - close 1 day ago}
set{np, prc_chg / close 1 day ago}
set{my_ind,np * 100}
set{my_sd_30,cstddev(my_ind,30)}
set{my_sum_30,sum(my_ind,30)}
set{my_mean_30,my_sum_30 / 30}
set{target_L30,0}
set{p30,target_L30 - my_mean_30}
set{z_30,p30 / my_sd_30}

/* TACHIKAWA */

SET{VHH21,COUNT(HIGH 2 DAY AGO BELOW HIGH 1 DAY AGO,1)}
SET{VHH10,COUNT(HIGH BELOW HIGH 1 DAY AGO,1)}
SET{VHH3,VHH21 * VHH10}

SET{VLL21,COUNT(LOW 2 DAY AGO ABOVE LOW 1 DAY AGO,1)}
SET{VLL10,COUNT(LOW ABOVE LOW 1 DAY AGO,1)}
SET{VLL3,VLL21 * VLL10}

SET{VHH8,COUNT(HIGH 1 DAY AGO ABOVE HIGH 8 DAY HIGH 2 DAY AGO,1)}
SET{VHL8,COUNT(LOW 1 DAY AGO ABOVE LOW 8 DAY LOW 2 DAY AGO,1)}
SET{VLH8,COUNT(HIGH 1 DAY AGO BELOW HIGH 8 DAY HIGH 2 DAY AGO,1)}
SET{VLL8,COUNT(LOW 1 DAY AGO below LOW 8 DAY LOW 2 day ago ,1)}

SET{HILO,VLL3 * VHL8}

draw z_30 line at 0
draw hilo

show stocks where close is above 1
volume is above 100000
vll3 above .5
add column z_30{30-day}

sort by column 5 ascending


]



miska2
17 posts
msg #88583
Ignore miska2
2/23/2010 1:14:22 PM

Thanks Tomm and Chet. Nice Work!!!

StockFetcher Forums · General Discussion · Finding stocks that trend - highly directional within a range<< 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 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