StockFetcher Forums · Filter Exchange · CROSSOVER COUNT FIX<< >>Post Follow-up
TheRumpledOne
6,407 posts
msg #37580
Ignore TheRumpledOne
8/21/2005 4:44:27 PM

Fetcher[
set{E5b,days(close is above weekly ema(5),100)}
set{E5b1, count(E5b above -1 , 1)}
set{E5b2, E5b * E5b1}
set{E5a,days(close is below weekly ema(5),100)}
set{E5a1, count(E5a above -1 , 1)}
set{E5a2, E5a * E5a1}
set{CxWE5, E5a2 - E5b2}

add column ema(5)
add column cxwe5

price is between 12.60 and 12.80
]



Because the SF DAYS returns a "-1" when the event didn't occur, the crossover calculation can be off.

The lines:

set{E5b1, count(E5b above -1 , 1)}
set{E5b2, E5b * E5b1}

set{E5a1, count(E5a above -1 , 1)}
set{E5a2, E5a * E5a1}

fix this problem.

So if you have been using any of the crossover counts, you need to add the fix.

Of course, make sure all the variable names match accordingly.

MAY ALL YOUR FILLS BE COMPLETE.

P.S. SF, once again, this demonstrates the need for a MACRO library and/or subroutine/function calls.



StockFetcher Forums · Filter Exchange · CROSSOVER COUNT FIX<< >>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 2022 - 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


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.