Relative strength
Forums › ProRealTime English forum › ProScreener support › Relative strength
- This topic has 8 replies, 6 voices, and was last updated 4 years ago by
robertogozzi.
-
-
04/16/2016 at 7:25 PM #5500
Is it possible to code in screener which calculates the relative strength based on the performance of indices? Lets say I have a watchlist of S&P sectors such as XRT, XLP etc. and I want to rank them based on their relative performance against SPY (S&P 500) using Pro Screener ie XRT / S&P 500 and so on…
04/16/2016 at 7:53 PM #5503Yes it’s possible, you have a quick example here, in the online documentation :
http://www.prorealcode.com/documentation/equityframe/
Let me know if you can achieve what you want with this code.
04/16/2016 at 9:19 PM #5504Thanks. It worked. Name of the code is “RS”. When I save this I am not sure why is it giving me the following error. Any idea?
The program “RS” does not contain code.
1234567891011TIMEFRAME(daily)CloseVal = CloseEQUITYFRAME("Shares - US (AMX)","SPY")CloseInd = CloseEQUITYFRAME(default)Ratio = (CloseVal / CloseInd) *100RelativeStrength = (Ratio - Ratio[5]) *100SCREENER(RelativeStrength AS"RelativeStrength")04/17/2016 at 4:35 PM #552110/30/2016 at 9:52 AM #1571107/28/2020 at 1:51 PM #140304Hi, I got an error at this line:
EQUITYFRAME(“Shares – US (AMX)”,“SPY”)
Do you know how to fix that?
07/28/2020 at 2:27 PM #140306Write the strimg exactly the way it is in your platform, I used (in italian):
1EQUITYFRAME("Azioni - US (NYSE)","SPY")10/14/2020 at 11:03 AM #147396Did this work for you?
I am trying to get the prorealcode screener to only return stocks listed in the SP500
10/14/2020 at 11:27 AM #147398Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
You have created a new topic about that.
Thank you 🙂
1 user thanked author for this post.
-
AuthorPosts