StockFetcher Forums · General Discussion · Filter wont show matching stock<< >>Post Follow-up
costner
31 posts
msg #154849
Ignore costner
12/7/2020 12:58:05 PM

Please tell me why this filter will not bring up MCOA stock? The filter works but will not show that matching stock.


MA(35) 25 days ago < MA(45) 25 days ago over the last 5 months
and MA(35) > MA(45)

xarlor
562 posts
msg #154850
Ignore xarlor
12/7/2020 2:31:10 PM

You've fallen victim to the wonky SF syntax.

Here is a filter that accomplishes what you were looking for. For the purposes of this exercise, I converted five months into 100 days (5 trading days per week, 4 weeks per month, 5 * 4 * 5 = 100).

Fetcher[
chart-time 5 months
set{trigger1,count(MA(35) 25 days ago < MA(45) 25 days ago,100)}
set{trigger2,count(MA(35) > MA(45),1)}
set{trigger,trigger1 + trigger2}
trigger equals 101

draw ma(35)
draw ma(45)
do not draw trigger
]



costner
31 posts
msg #154852
Ignore costner
12/7/2020 8:30:14 PM

Very much appreciated!!!

StockFetcher Forums · General Discussion · Filter wont show matching stock<< >>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.