pa247 88 posts msg #147540  Ignore pa247 
4/25/2019 3:17:03 PM
Im trying to learn all this new stuff with my old brain and would like to know if I've annotated correctly so I can understand whats being done? thanks
/*Version 2: use rsi(2) and scalp 25 cents Requires a minimum of 3 days @ rsi2 < 20 */
/*https://www.stockfetcher.com/forums/FilterExchange/BestofFour/114024/99999*/
optionable
volume > 123123
close > 10
/*z is the open price minus .25cents*/
set{z, open  .25}
/*x is counting the # of days where the high price is greater than Z (the open price) 2 days ago and looking back 100 days*/
set{x, count(high > z 2 day ago,100)}
/* adding a column where X(the count of the days) is greater than 75*/
add column x > 75
sort column 5 descending
/*zz is counting where Z (the open price) is greater than or equal to the low price looking back 100 days*/
set{zz,count(z >= low,100)}
/*adding a column where ZZ (the count of the low days) is greater than 75*/
add column zz > 75
add column annual dividend yield
/* counting where RSI(2) is less than 20, 3 days ago, but greater than 2*/
count(rsi(2) < 20,3) > 2

graftonian 764 posts msg #147547  Ignore graftonian 
4/25/2019 3:55:43 PM
Perhaps the last line should be:
add column rsi(2) 3 days ago between 2 and 3
draw rsi(2) line at 2
draw rsi(2) line at 3

pa247 88 posts msg #147550  Ignore pa247 
4/25/2019 5:02:40 PM
@Graftonian... thanks but what im really trying to find out is if Ive interpreted the filter correctly.
so on the last line where I say "/* counting where RSI(2) is less than 20, 3 days ago, but greater than 2*/ "
is that what the formula below it is saying?
thanks

compound_gains 180 posts msg #147555  Ignore compound_gains modified 
4/25/2019 9:46:39 PM
Don't know where you're counting on the last line from your description. I interpret it as...
RSI(2) 3 days ago below 20 but above 2
Fetcher[/*Version 2: use rsi(2) and scalp 25 cents Requires a minimum of 3 days @ rsi2 < 20 */
/*https://www.stockfetcher.com/forums/FilterExchange/BestofFour/114024/99999*/
optionable
volume > 123123
close > 10
/*z is the open price minus .25cents*/
set{z, open  .25}
/*x is counting the # of days where the high price is greater than Z (the open price) 2 days ago and looking back 100 days*/
set{x, count(high > z 2 days ago, 100)}
/* adding a column where X(the count of the days) is greater than 75*/
add column x > 75
sort column 5 descending
/*zz is counting where Z (the open price) is greater than or equal to the low price looking back 100 days*/
set{zz,count(z >= low,100)}
/*adding a column where ZZ (the count of the low days) is greater than 75*/
add column zz > 75
add column annual dividend yield
/* counting where RSI(2) is less than 20, 3 days ago, but greater than 2*/
rsi(2) 3 days ago below 20
rsi(2) 3 days ago above 2]

compound_gains 180 posts msg #147556  Ignore compound_gains 
4/25/2019 9:51:22 PM
Odd that the Fetcher function doesn't seem to be working, but the filter itself pulls up stocks when you load it. Don't know what the issue is.

pa247 88 posts msg #147571  Ignore pa247 
4/26/2019 2:58:29 PM
thank you both.

xarlor 32 posts msg #147786  Ignore xarlor modified 
5/13/2019 3:53:30 PM
pa247,
count(rsi(2) < 20,3) > 2
This line says:
RSI(2) has been below 20 all three of the last three days.
