StockFetcher Forums · Filter Exchange · Trend Filter<< >>Post Follow-up
TheRumpledOne
6,362 posts
msg #37631
Ignore TheRumpledOne
8/25/2005 9:15:20 AM

Fetcher[
/* CALCULATE 10 day trend and days in trend */

set{T10, count(10 day slope of the close above 0,1)}

set{T10DAYS,days(T10 equal T10 1 day ago,100)}

add column T10days

add column t10
add column t10 1 day ago
add column t10 2 day ago
add column t10 3 day ago
add column t10 4 day ago
add column t10 5 day ago
add column t10 6 day ago
add column t10 7 day ago
add column t10 8 day ago
add column t10 9 day ago

close above 20
volume above 1000000

draw 10 day slope of the close
draw t10

sort column 5 descending

]



This filter display shows you the 10 day trend (T10) and how many days (T10DAYS up to 100 DAYS) it has been in that trend.

MAY ALL YOUR FILLS BE COMPLETE.


TheRumpledOne
6,362 posts
msg #37633
Ignore TheRumpledOne
8/25/2005 12:06:22 PM

Fetcher[
/* CALCULATE 10 day trend and days in trend */

set{T10, sign(10 day slope of the close)}
set{T10Sum, T10 plus T10 1 day ago}
set{T10Abs, abs(T10Sum)}
set{trcalc, days(T10abs is below 2,100)}
set{trdays, trcalc + 1}

add column trdays
add column t10

close above 20
volume above 1000000

draw 10 day slope of the close


sort column 5 descending
]



There seems to be an "error" that happens sometimes.

Here's a fix... Thanks SF

MAY ALL YOUR FILLS BE COMPLETE.


TheRumpledOne
6,362 posts
msg #37634
Ignore TheRumpledOne
8/25/2005 12:17:40 PM

Fetcher[
/* Find Stocks where 10 DAY TREND changed */

set{T10, sign(10 day slope of the close)}
set{T10Sum, T10 plus T10 1 day ago}
set{T10Abs, abs(T10Sum)}
set{trcalc, days(T10abs is below 2,100)}
set{trdays, trcalc + 1}

add column trdays
add column t10

T10Sum equal 0

draw 10 day slope of the close

/* your filter code goes below this line */

sort column 5 descending

close above 20
volume above 1000000

]



This filter will display stocks where the 10 day trend has changed.

The way it works is if the sign changes then one day T10 will be 1 and the other it will be -1. Add them together and if zero, the trend changed!

If T10 is 1, then new trend is up.

If T10 is -1, then new trend is down.

Of course, TRDAYS should always be 1...lol

Change price/volume to fit your criteria.

MAY ALL YOUR FILLS BE COMPLETE.




TheRumpledOne
6,362 posts
msg #37635
Ignore TheRumpledOne
8/25/2005 12:29:29 PM

Fetcher[
/* MULTI TREND DISPLAY */

set{T10, sign(10 day slope of the close)}
set{T10Sum, T10 plus T10 1 day ago}
set{T10Abs, abs(T10Sum)}
set{trcalc1, days(T10abs is below 2,100)}
set{tr10days, trcalc1 + 1}

set{T60, sign(60 day slope of the close)}
set{T60Sum, T60 plus T60 1 day ago}
set{T60Abs, abs(T60Sum)}
set{trcalc4, days(T60abs is below 2, 100)}
set{tr60days, trcalc4 + 1}

set{T200, sign(200 day slope of the close)}
set{T200Sum, T200 plus T200 1 day ago}
set{T200Abs, abs(T200Sum)}
set{trcalc2, days(T200abs is below 2, 100)}
set{tr200days, trcalc2 + 1}

add column tr10days
add column t10
add column t10SUM

add column tr60days
add column t60
add column t60SUM

add column tr200days
add column t200
add column t200SUM
close above 20
volume above 1000000

draw 10 day slope of the close
draw 60 day slope of the close
draw 200 day slope of the close

sort column 5 descending
]



This will display MULTIPLE TRENDS and whether or not they have changed (TxxSUM = 0 when trend changed).

MAY ALL YOUR FILLS BE COMPLETE.




TheRumpledOne
6,362 posts
msg #37654
Ignore TheRumpledOne
8/26/2005 11:30:04 AM

Fetcher[
/* Retrace Filter with Trend and Volume Display */

/* enter your Upper Limit criteria */
set{UpperLim, high 52 week high}

/* enter your Lower Limit criteria */
set{LowerLim, low 52 week low}

/* enter your retrace percent criteria default is 67% */
set{xMult, 1 - .67}

set{LimDiff, UpperLim minus LowerLim}
set{xpct, LimDiff * xMult}
set{retrace, LowerLim + xpct}

set{Trend10, sign(10 day slope of the close)}
set{Trend10Sum, Trend10 plus Trend10 1 day ago}
set{Trend10Abs, abs(Trend10Sum)}
set{trcalc1, days(Trend10abs is below 2,100)}
set{tr10days, trcalc1 + 1}

set{Trend60, sign(60 day slope of the close)}
set{Trend60Sum, Trend60 plus Trend60 1 day ago}
set{Trend60Abs, abs(Trend60Sum)}
set{trcalc4, days(Trend60abs is below 2, 100)}
set{tr60days, trcalc4 + 1}

set{Trend200, sign(200 day slope of the close)}
set{Trend200Sum, Trend200 plus Trend200 1 day ago}
set{Trend200Abs, abs(Trend200Sum)}
set{trcalc2, days(Trend200abs is below 2, 100)}
set{tr200days, trcalc2 + 1}

set{v, volume 1 day ago}
set{volinc, volume - v}
set{volpc, volinc / v}
set{volpct, volpc * 100}

set{VolZ, days(volume < 1,100)}
set{VolUp, days(volume is below volume 1 day ago,100)}
set{VolDn, days(volume is above volume 1 day ago,100)}
set{VolCnt, VolUp - VolDn}

set{vck1, volume 1 day ago }
set{vck, volume / vck1 }
set{vdbl, days(vck < 2, 100)}


add column tr10days
add column Trend10
add column Trend10SUM

add column tr60days
add column Trend60
add column Trend60SUM

add column tr200days
add column Trend200
add column Trend200SUM


and add column VolCnt
and add column Vdbl
and add column volpct

/* display all columns for example */
add column UpperLim
add column LowerLim
add column retrace
add column LimDiff
add column xMult

add column industry

draw 10 day slope of the close
draw 60 day slope of the close
draw 200 day slope of the close


/* select stocks that retraced */
low crossed below retrace

/* enter you price/volume criteria */
price above 20
volume above 100000
]



I added TREND and VOLUME displays to make the filter more complete.

MAY ALL YOUR FILLS BE COMPLETE.


StockFetcher Forums · Filter Exchange · Trend Filter<< >>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