Two seemingly identical screener – but different results

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #230658 quote
    illumintaiillumintai
    Participant
    New

    I have these two seemingly identical codes but when I screen against the same list I get different results. When I click the charts I see the same pattern I expect but the number of results are different.

    Can I please get some help identifying the issues.

    c1 = low[0] = lowest[5](low)
    c2 = low[1] > low[4]
    c3 = low[2] > low[4]
    c4 = low[3] > low[4]
    
    SCREENER[c1 and c2 and c3 and c4]
    
    
    c1 = low[0] = lowest[5](low)
    result = 1
    
    FOR i=1 TO 3 DO
        if (low[i] < low[4]) THEN
            result = 0
            BREAK
        ENDIF
    NEXT
    
    c2 = result = 1
    
    SCREENER[c1 and c2]
    #230669 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Add “=” in this line of the second screener, so that it reads:

    if (low[i] <= low[4]) THEN
    illumintai thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Two seemingly identical screener – but different results


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
illumintai @illumintai Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
2 years, 6 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 03/28/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...