Relative strength

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5500 quote
    appletapplet
    Participant
    New

    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…

    #5503 quote
    NicolasNicolas
    Keymaster
    Legend

    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.

    #5504 quote
    appletapplet
    Participant
    New

    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")
    
    #5521 quote
    NicolasNicolas
    Keymaster
    Legend

    Sorry, i don’t understand what would cause this behaviour. Maybe a simple reboot of the platform with a save on exit?

    #15711 quote
    luckyhaaluckyhaa
    Participant
    Junior

    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

    #140304 quote
    arya.mousavi20arya.mousavi20
    Participant
    New

    Hi, I got an error at this line:

    EQUITYFRAME(“Shares – US (AMX)”,“SPY”)

    Do you know how to fix that?

    #140306 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Write the strimg exactly the way it is in your platform, I used (in italian):

    EQUITYFRAME("Azioni - US (NYSE)","SPY")
    #147396 quote
    m95mcdonnellm95mcdonnell
    Participant
    New

    Did this work for you?

     

    I am trying to get the prorealcode screener to only return stocks listed in the SP500

    #147398 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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 🙂

    m95mcdonnell thanked this post
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Relative strength


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
applet @applet Participant
Summary

This topic contains 8 replies,
has 6 voices, and was last updated by robertogozzirobertogozzi
5 years, 12 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/16/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...