StockFetcher Forums · General Discussion · A little help coding ?<< >>Post Follow-up
BlackBars
54 posts
msg #143644
Ignore BlackBars
5/23/2018 9:24:28 PM

How would I code this into SF ?


Column 1: # of times "rsi(2) < 1" occurred with the NEXT day's close being ABOVE its open

Column 2: # of times "rsi(2) < 1" occurred with the NEXT day's close being BELOW its open


These occurrences being in a 90 day period. Would appreciate any help!

Thanks,
BlackBars




mahkoh
1,065 posts
msg #143655
Ignore mahkoh
5/24/2018 1:22:24 PM

Fetcher[
sp500
set{x1, count(rsi(2) 1 day ago < 1,1)}
set{x2, count(close > open,1)}
set{x3,x1 * x2}
set{x4,count(x3 > 0.5,90)}

add column x4
draw x3
draw rsi(2)
chartlength 90 days
]



Change close > open to close < open for the reverse

BlackBars
54 posts
msg #143656
Ignore BlackBars
5/24/2018 6:20:47 PM

Lets say I wanted "Volume is 1000% higher than previous day 1 day ago".- Whereas volume 1 day ago is 1000% higher than the volume the day prior. If I try implementing that line it inadvertently does not register for some reason?


StockFetcher Forums · General Discussion · A little help coding ?<< >>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.