StockFetcher Forums · Filter Exchange · need a little coding help<< >>Post Follow-up
hmsb4494
81 posts
msg #143910
Ignore hmsb4494
6/25/2018 12:15:36 PM

symlist(vhc)

set{p, open - close 1 day ago}
set{p1, p / close 1 day ago}
set{p2, p1 * 100}

what I am looking for is a cma of p2 > 0 last 63 days (average of up-gaps last 63 days)
and...................................cma or p2 < 0 last 63 days (average of down-gaps last 63 days)

I have made many attempts with no luck.

any help would be appreciated.

graftonian
1,089 posts
msg #143917
Ignore graftonian
6/25/2018 7:20:23 PM

Is this any help?
Fetcher[
symlist(vhc)

set{p, open - close 1 day ago}
set{p1, p / close 1 day ago}
set{x, p1 * 100}

draw x and add column x
add column separator

set{upcount, count(x > 0, 63)}
draw upcount and add column upcount
set{downcount, count(x < 0, 63)}
draw downcount on plot upcount, and add column downcount
]



ahcsim72
151 posts
msg #143964
Ignore ahcsim72
6/30/2018 10:02:36 PM

Thanks

StockFetcher Forums · Filter Exchange · need a little coding help<< >>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.