Screener in the past – problem

Forums ProRealTime English forum ProScreener support Screener in the past – problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • #233606

    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
    JS

    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]

     

    1 user thanked author for this post.
    #233621

    Thank you Ivan! It’s working

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login