New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Scanning the 50SMA and 50SMA RS line

I need help with how to Scan for symbols in my chartlist where price is above the 50SMA and RS Line vs $SPX is above a 50SMA line. Any help is appreciated. Thx!

Best Answer

  • markdmarkd mod
    Answer ✓
    Unfortunately, you cannot scan for the RS line.

    You can work around it though by including $SPX as a symbol in your chart list, then run a scan on the list with with your conditions (e.g. close > sma(50,close) and then a rank by statement like

    rank by PctChange(50, close)

    Symbols doing better than the $SPX (up more or down less over the last 50 days) will rank above it in the results list. Not exactly the same thing, but maybe useful. When you save the list, save the order.

    If your chart style includes $SYMBOL:$SPX you can check the results.


  • Great to know. Thanks markd!
  • would it be possible to use a condition like the following?

    close/close($SPX) > sma( 50, close/close($SPX) )
  • Good idea, but the scan engine cannot interpret "close($SPX)".

    It can only interpret indicators (and overlays) that are specifically coded for scan engine to read, like MACD, Bollinger Bands, etc.

    Basically, if you can't find it in the drop downs under the scan window, the scan engine doesn't know what to do with it.
  • lmkwinlmkwin ✭✭
    edited May 20
    Here's a "quick" way to review your chartlists in Relative Strength order. When you view your chartlist it defaults to Summary view. At the top of the list there is a VIEW LIST AS drop down. Select Performance.

    Performance will show your list with a number of predefined columns for different periods of performance.

    You can add a symbol into the Compare To box at the top of the view and click Go.

    This will add that symbol the chartlist symbols with a colon between the symbols. It updates the Performance based on the relationship as well. You can then see the result and sort if desired. You can also then highlight the list to copy and then paste it into excel. Then copy and paste the symbols into a chartlist and you will have a RS list of your chartlist if desired. So you could copy the RS symbols into your existing list and then you will have both the symbol and the RS symbol in the list for example. You CAN review that RS list in Summary and CandleGlance and it should be able to sort there also.

    You CAN NOT scan against the RS symbols in the list as the RS symbols are NOT in the database. It is just a quick way to see RS vs whatever you would like to see.

    To remove the Compare To symbol from the Performance view, delete the symbol and hit Enter on your keyboard. Blanking it and clicking "Go" will not remove it.

    In the Scan engine there is a PctRelative function in the Technical Indicators dropdown.

    Defaults in like this

    and [PctRelative(20,$spx) > 0]

    This is asking for symbols that have a 20 day return vs the $spx that is greater than 0. Play around with this. Unfortunately you can't use a moving average on this function but you can do a comparison against a prior period.

    So you can try

    and [PctRelative(20,$spx) > 0] and [20 days ago PctRelative(20,$spx) < 0]

Sign In or Register to comment.