StockFetcher Forums · General Discussion · Ratio chart/ relative to S&P<< >>Post Follow-up
sanjiv_garg@hotmail.com
2 posts
msg #150418
Ignore sanjiv_garg@hotmail.com
1/20/2020 3:27:16 AM

Hi,

How can I calculate the following:

1. Daily, weekly and monthly RSI for stocks relative to the S&P Index (RSI for ratio charts)
2. Moving averages for stocks relative to the S&P Index (MA for ratio charts)

Thanks.



graftonian
1,089 posts
msg #150420
Ignore graftonian
1/20/2020 12:55:01 PM

Here's a start, does this help
Fetcher[
/** RSI vs SPY RSI **/
optionable
Average Volume(30) > 1000000
draw RSI(15)
add column separator
add column RSI(15)
set{spyrsi, ind(spy,rsi(15))}
draw spyrsi on plot RSI(15)
add column spyrsi
/** get spy ratio **/
set{spyrat1, rsi(15) - spyrsi}
set{spyrat2, spyrat1 / spyrsi}
set{spyratio, spyrat2 * 100}
draw spyratio
/* sort on spy ratio */
add column spyratio and sort on column 8 descending
]



StockFetcher Forums · General Discussion · Ratio chart/ relative to S&P<< >>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.