ProScreener and business day

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #77664 quote
    NimceProfity
    Participant
    New

    Hi,

    I’m using the ProScreener, which calls my indicator with CALL.

    However, I need the ProScreener to CALL my indication only on business days.

    For example, if I refresh the ProScreener today, it will use the data from TODAY, but my indicator works only on business days, and because of that, my indicator returns 0 on the screener, but on the graph, it appears only on business days (as expected).

     

    1. Is there an option to force ProScreener to call my indicator on the last business day, and not today?
    2. If 1 is not possible, can I return values from my indicator that the ProScreener will ignore and proceed to the previous day? (until it reaches the last business day).

    Thanks

    #77666 quote
    Vonasi
    Moderator
    Master

    Welcome to the forums. I see that this is your first post, Please try to post in the correct forum section. Your question is ProScreener related so I have moved it to that forum. You posted in the Platform Support forum which is for PRT platform issues and is a forum monitored by PRT to help solve any platform issues.

    #77678 quote
    Nicolas
    Keymaster
    Master

    In your ProScreener code, you could add a new variable that only populate if the result of your CALL is 1, that way you always have the last value stored in it.

    #77721 quote
    NimceProfity
    Participant
    New

    Thank you for your response, this is what I tried but it still doesn’t work:

    TIMEFRAME(daily)
    result = call "Indicator Info"
    
    if result = 1 then
    result2 = result
    endif
    
    SCREENER (result2 as "Criteria")
    
    #77726 quote
    Nicolas
    Keymaster
    Master

    Difficult to help more without the whole code, but give a try with:

    SCREENER [result2] (result2 as "Criteria")
    #77736 quote
    NimceProfity
    Participant
    New

    Hi,

    Thank you for your replies,

    It did help me a bit, but I decided to change my indicator to work differently, in order to solve this problem.

    I did encounter an unexpected behavior, which I suspect is a bug.

    Create an indicator with this code:

    hl=dpo[92](high[0])
    i=0
    h2=dpo[92](high[i])
    
    return hl, h2

    For some reason, this code generates 2 totally different graphs: https://monosnap.com/file/D3Rwxxq7h5fdmjqsXGcw4OUMeXyk4O

    I need to be able to specify the index for high with a variable, but to have the exact same effect as if I wrote a literal number.

     

    Thanks!

    #77744 quote
    Nicolas
    Keymaster
    Master

    You are right, something did not go well here, I suspect the DPO calculation as it is made with future datas that are obviously not present in real time (it will not give the same value in real time than if you reload the chart later).

    BTW, I’ll report this strange behavior to PRT team, using a variable for the period should not behaves differently.

    PS: Please next time embed your picture directly into the forum with the attachment tool, thank you.

    #77761 quote
    NimceProfity
    Participant
    New

    Great!

    Thank you, waiting for your update.

    #79855 quote
    Nicolas
    Keymaster
    Master

    I had news about this issue. It’s been fixed and be part of the next update of the platform.

    robertogozzi thanked this post
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

ProScreener and business day


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by Nicolas
7 years, 6 months ago.

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