I have problem by setting the SPY as Equityframe

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #254338 quote
    thomas2004chthomas2004ch
    Participant
    Senior

    My screener looks as follow:

    TIMEFRAME(daily)
    
    c1 = close > 10
    c2 = close * volume > 5000000000
    
    CloseVal = Close
    
    //EQUITYFRAME("NASDAQ","QQQ")
    EQUITYFRAME("NYSE AMERICAN","SPY")
    CloseInd = Close
    
    Sma   = average[130,0](close)
    
    RatioVal = (CloseVal / Sma)
    
    RationQQQ = (CloseInd / Sma)
    
    EQUITYFRAME(default)
    //Ratio = (CloseVal / CloseInd) *100
    //RelativeStrength = (Ratio - Ratio[1]) *100
    
    //SCREENER[c1 and c2](RelativeStrength AS"RelativeStrength", Ratio as "Ratio")
    
    RelativeStrength = RatioVal / RationQQQ
    
    SCREENER[c1 and c2](RelativeStrength as "RelativeStrength", RatioVal as "Single RSL", RationQQQ as "QQQ RSL")

    But as I run it, I got error:”.. the instrument has to be listed on the same exchange as …”. But I do chose the “US NYSE Stocks” from the “Selection To Scan”. What could be the reasson?

    #254339 quote
    thomas2004chthomas2004ch
    Participant
    Senior

    If I use the QQQ as follow:

    EQUITYFRAME(“NASDAQ”,”QQQ”)

    There is no problem, when I chose the “US NASDAQ Stocks” from the “Selection To Scan”.

    #254352 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hi. I don’t have problems with your code to screen London Market.

    TIMEFRAME(daily)
    
    c1 = close > 10
    c2 = close * volume > 5000000000
    
    CloseVal = Close
    EQUITYFRAME("NYSE AMERICAN","SPY")
    CloseInd = Close
    Sma   = average[130,0](close)
    RatioVal = (CloseVal / Sma)
    RationQQQ = (CloseInd / Sma)
    
    EQUITYFRAME(default)
    
    RelativeStrength = RatioVal / RationQQQ
    
    SCREENER[c1 and c2](RelativeStrength as "RelativeStrength", RatioVal as "Single RSL", RationQQQ as "QQQ RSL")
    
    2025-12-08_13-39.png 2025-12-08_13-39.png
    #254354 quote
    thomas2004chthomas2004ch
    Participant
    Senior

    If I chose the “UK Stocks”, I got the following error. Maybe you are a Premium Member? I am just a free member.

    Besides, do you have problem by “US NYSE Stocks”?

    error.png error.png
    #254359 quote
    Iván GonzálezIván González
    Moderator
    Legend

    ahh, ok. So that’s the problem. I’m checking the screener with premium account

Viewing 5 posts - 1 through 5 (of 5 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

I have problem by setting the SPY as Equityframe


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Iván GonzálezIván González
9 months, 1 week ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 12/07/2025
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...