StockFetcher Forums · Filter Exchange · THE BULL-BEAR O METER.....<< 1 2 >>Post Follow-up
nikoschopen
2,824 posts
msg #62199
Ignore nikoschopen
5/6/2008 4:07:33 AM

Being a minimalist, I believe the less the number of columns the better. Hence here's the same filter with only two columns. As with my previous filters, you'll find a value of 1 for buy and -1 for sell.

Fetcher[
SET{GO_BULLS,COUNT(roc(5,1) > 0,1)}
SET{GO_BEARS,COUNT(roc(5,1) < 0,1) * -1}
set{both, GO_BULLS + GO_BEARS}
set{neither, 1 - count(both equals 0,1)}
neither above 0

SET{VAR3,COUNT(RSI(2) ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR4,COUNT(RSI(2) ABOVE RSI(2) 2 DAY AGO,1)}
SET{VAR6,COUNT(RSI(2) 2 DAY AGO ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR5,VAR3 * VAR4}
SET{VAR7,VAR5 * VAR6}
SET{BUY_ME,VAR7 * GO_BULLS}

SET{VAR13,COUNT(RSI(2) BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR14,COUNT(RSI(2) BELOW RSI(2) 2 DAY AGO,1)}
SET{VAR16,COUNT(RSI(2) 2 DAY AGO BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR15,VAR13 * VAR14}
SET{VAR17,VAR15 * VAR16}
SET{SHORT_ME,VAR17 * GO_BEARS}

SET{PICKS,SHORT_ME + BUY_ME}
set{no_picks, 1 - count(picks equals 0,1)}
no_picks above 0

ADD COLUMN both{bull(1)/bear(-1)}
ADD COLUMN picks{buy_me(1)/sell_me(-1)}

DRAW GO_BEARS ON PLOT GO_BULLS
DRAW BUY_ME
DRAW SHORT_ME

CLOSE ABOVE 1
VOLUME ABOVE 1000000

DO NOT DRAW PICKS
SORT COLUMN 7 DESCENDING
]



chetron
2,817 posts
msg #62202
Ignore chetron
5/6/2008 6:50:08 AM

OF COURSE YOU KNOW, NIKOS. YOU HAVE EXCEEDED THE LIMITATIONS OF A STANDARD SUBSCRIPTION. LOL.




nikoschopen
2,824 posts
msg #62216
Ignore nikoschopen
5/6/2008 11:31:46 AM

LOL... Been there and done that, haven't we? But I also found a cure as well, no?

Fetcher[
/* THE BULL-BEAR O METER*/
/*Niko's "Lite" Version*/

SET{GO_BULLS,COUNT(roc(5,1) > 0,1)}
SET{GO_BEARS,COUNT(roc(5,1) < 0,1) * -1}
set{both, GO_BULLS + GO_BEARS}
set{both2, GO_BULLS - GO_BEARS}
both2 above 0

SET{VAR3,COUNT(RSI(2) ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR4,COUNT(RSI(2) ABOVE RSI(2) 2 DAY AGO,1)}
SET{VAR6,COUNT(RSI(2) 2 DAY AGO ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR5,VAR3 * VAR4}
SET{VAR7,VAR5 * VAR6}
SET{BUY_ME,VAR7 * GO_BULLS}

SET{VAR13,COUNT(RSI(2) BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR14,COUNT(RSI(2) BELOW RSI(2) 2 DAY AGO,1)}
SET{VAR16,COUNT(RSI(2) 2 DAY AGO BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR15,VAR13 * VAR14}
SET{VAR17,VAR15 * VAR16}
SET{SHORT_ME,VAR17 * GO_BEARS}

SET{PICKS,BUY_ME + SHORT_ME}
SET{PICKS2,BUY_ME - SHORT_ME}
picks2 above 0

ADD COLUMN both{bull(1)/bear(-1)}
ADD COLUMN picks{buy_me(1)/sell_me(-1)}

DRAW GO_BEARS ON PLOT GO_BULLS
DRAW BUY_ME
DRAW SHORT_ME

CLOSE ABOVE 1
VOLUME ABOVE 1000000

DO NOT DRAW PICKS
SORT COLUMN 7 DESCENDING
]



chetron
2,817 posts
msg #62222
Ignore chetron
5/6/2008 12:03:13 PM

VERY NICE, THANX NIKO.




dhhus10
5 posts
msg #63834
Ignore dhhus10
6/16/2008 11:32:51 PM

niko,
great filter, but under debug your line - set(go_bears,count(roc(5,1)<0,1)*-1) show error. don't know if this would make a difference.

nikoschopen
2,824 posts
msg #63842
Ignore nikoschopen
6/17/2008 12:22:37 AM

Hi,

I'm fully aware of that issue, but you can rest assured that this is not a script error because it "debugged" fine under the now antiquated SF interface. However, if it bugs you too much, you can assign the negative integer to a variable and it should be bug free, as in the first three lines below. (BTW this filter is the sole property of Chetron & Co.)

Fetcher[
/* THE BULL-BEAR O METER*/
/*Niko's "Lite" Version*/

set{neg, -1}
SET{GO_BULLS,COUNT(roc(5,1) > 0,1)}
SET{GO_BEARS,COUNT(roc(5,1) < 0,1) * neg}
set{both, GO_BULLS + GO_BEARS}
set{both2, GO_BULLS - GO_BEARS}
both2 above 0

SET{VAR3,COUNT(RSI(2) ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR4,COUNT(RSI(2) ABOVE RSI(2) 2 DAY AGO,1)}
SET{VAR6,COUNT(RSI(2) 2 DAY AGO ABOVE RSI(2) 1 DAY AGO,1)}
SET{VAR5,VAR3 * VAR4}
SET{VAR7,VAR5 * VAR6}
SET{BUY_ME,VAR7 * GO_BULLS}

SET{VAR13,COUNT(RSI(2) BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR14,COUNT(RSI(2) BELOW RSI(2) 2 DAY AGO,1)}
SET{VAR16,COUNT(RSI(2) 2 DAY AGO BELOW RSI(2) 1 DAY AGO,1)}
SET{VAR15,VAR13 * VAR14}
SET{VAR17,VAR15 * VAR16}
SET{SHORT_ME,VAR17 * GO_BEARS}

SET{PICKS,BUY_ME + SHORT_ME}
SET{PICKS2,BUY_ME - SHORT_ME}
picks2 above 0

ADD COLUMN both{bull(1)/bear(-1)}
ADD COLUMN picks{buy_me(1)/sell_me(-1)}

DRAW GO_BEARS ON PLOT GO_BULLS
DRAW BUY_ME
DRAW SHORT_ME

CLOSE ABOVE 1
VOLUME ABOVE 1000000

DO NOT DRAW PICKS
SORT COLUMN 7 DESCENDING
]



StockFetcher Forums · Filter Exchange · THE BULL-BEAR O METER.....<< 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