Code should work, what is wrong?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71853 quote
    MagnatoliaMagnatolia
    Participant
    New

    Hi guys, unsure why my code is not working?

    //Conditions
    C1 = Close<0.20
    C2 = Close>0.012
    C5 = Volume>50000000
    //Indicators
    I1 = Average[20](close)
    I3 = Average[5](close)
    
    C6 = I3>I1
    
    AllConditions = C1 and C2 and C5 and C6
    SCREENER(AllConditions)

    I can see in the first 50 results a stock at $55 per share with on 11,000 volume which is completely against my conditions above.

    What’s the go?

    #71854 quote
    MagnatoliaMagnatolia
    Participant
    New

    Ignore me. Apparently they return every single stock regardless of whether it meets criteria defined by “and” which I thought was pretty clear in coding world to exclude anything that doesn’t meet x, y AND z. How am I supposed to change my sorting without getting all the ones that don’t meet my criteria?

    #71855 quote
    NicolasNicolas
    Keymaster
    Legend

    Screener conditions must be syntaxed like this: (with brackets, not parenthesis)

    SCREENER[AllConditions]
Viewing 3 posts - 1 through 3 (of 3 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

Code should work, what is wrong?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Magnatolia @magnatolia Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by NicolasNicolas
8 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/31/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...