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…
Yes 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.
Thanks. 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.
TIMEFRAME(daily)
CloseVal = Close
EQUITYFRAME("Shares - US (AMX)","SPY")
CloseInd = Close
EQUITYFRAME(default)
Ratio = (CloseVal / CloseInd) *100
RelativeStrength = (Ratio - Ratio[5]) *100
SCREENER(RelativeStrength AS"RelativeStrength")
Sorry, i don’t understand what would cause this behaviour. Maybe a simple reboot of the platform with a save on exit?
Is it possible to scan (find out) entire stocks in particular market (let say UK stocks) ?
or i need to add one scanning condition ….stocks select if RS > 80
I appreciate your support
Hi, I got an error at this line:
EQUITYFRAME(“Shares – US (AMX)”,“SPY”)
Do you know how to fix that?
Write the strimg exactly the way it is in your platform, I used (in italian):
EQUITYFRAME("Azioni - US (NYSE)","SPY")
Did this work for you?
I am trying to get the prorealcode screener to only return stocks listed in the SP500
Do 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 🙂