How do I get ProScreener to return a numerical value for specific criteria?

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

    Hi Everyone!

    How do I get ProScreener to return a numerical value for specific criteria?

    For example, let’s say I wanted to create an indicator called Candle Movement and it’s code is:

    One = Low > High[1]

    Nine = High < Low[1]

    When I run the screener, how do I get ProScreener to display a column titled “Candle Movement”; and how do I get that column to display a numerical “1” when the criteria for “one” is met or a “9” when “nine” is met?

    Thank you for your help!

    #218478 quote
    JSJS
    Participant
    Master

    Hi,

    Try this one…

     

    One=Low>High[1]
    Nine=High<Low[1]
    
    If One then
    Number=1
    ElsIf Nine then
    Number=9
    EndIf
    
    Screener[One or Nine](Number as "Candle Movement")
    ijackdoe85 thanked this post
    #218516 quote
    ijackdoe85ijackdoe85
    Participant
    New

    Thank you so much! That’s just the help I needed!

    JS thanked this post
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

How do I get ProScreener to return a numerical value for specific criteria?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
ijackdoe85 @ijackdoe85 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by ijackdoe85ijackdoe85
3 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 08/02/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...