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.

Help me in debugging this script (picking up wrong stocks)

I run RSI2 scan from the stockcharts blog (script is below). I dont understand, why it is picking the funds(TLT,IEF,BABS.L), when I said [type=stock] at the beginning.

[type = stock] AND [Daily SMA(20,Daily Volume) > 400000] and [High > 2]and [Close > 1] and [today's SMA(20,volume) > 40000] and [today's SMA(60,close) > 20] and [today's close > today's SMA(200,close)] and [5 x today's rsi(2)]

Thanks

Best Answer

  • markdmarkd mod
    edited February 2015 Accepted Answer
    I'm guessing because they trade like stocks (unlike say, mutual funds).

    This edited version will eliminate the etfs and find only US stocks (if that's what you want):

    [type = stock]
    and [country is US]
    and [group is not ETF]
    AND [Daily SMA(20,Daily Volume) > 400000]
    and [High > 2]and [Close > 1]
    and [today's SMA(20,volume) > 40000]
    and [today's SMA(60,close) > 20]
    and [today's close > today's SMA(200,close)]

    (note: the bolded line probably has to be typed into your scan, not cut and pasted)

Answers

Sign In or Register to comment.