Screener in the past – problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #233606 quote
    montelamontela
    Participant
    Junior

    Hello,

    I have a screener and I want to test it using data in the past, but it’s not working. Maybe you can help me, thank you. I tried to use copilot from bing, but something is wrong…

    // Past date (15 Mai 2024)
    data = 20240530

    //Conditions
    if Date = data then
    // Condiție 1:
    c1 = (Close / Close[30]) >= 1.3

    // Condiție 2:
    c2 = volume[10] > 300000

    // Condiție 3:
    a= Average[7](Dhigh(1)-Dlow(1))
    b = a * 100 / close
    c3 = b > 5

    if c1 and c2 and c3 then
    SCREENER [1]
    endif
    endif

    #233616 quote
    JSJS
    Participant
    Master

    Hi,

    Try this first…

    // Past date (30 Mai 2024)
    data = 20240530

    //Conditions
    if Date = data then
    // Condiție 1:
    c1 = (Close / Close[30]) >= 1.3

    // Condiție 2:
    c2 = volume[10] > 300000

    // Condiție 3:
    a= Average[7](Dhigh(1)-Dlow(1))
    b = a * 100 / close
    c3 = b > 5

    EndIf

    SCREENER [c1 and c2 and c3]

    Iván González thanked this post
    #233621 quote
    montelamontela
    Participant
    Junior

    Thank you Ivan! It’s working

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

Screener in the past – problem


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
montela @montela Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/07/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...