Screener in the past – problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #233606 quote
    montela
    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
    JS
    Participant
    Senior

    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
    montela
    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.

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 montela
1 year, 9 months ago.

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