Multi breakout screener

Forums ProRealTime English forum ProScreener support Multi breakout screener

Viewing 15 posts - 1 through 15 (of 19 total)
  • #59950

    Hello,

     

    I was inspired with this topic :

    https://www.prorealcode.com/topic/monthly-high-low-close-indicator/

    and try to improve the screener on 2sd page. The purpose is to have a 2 digits number in the result column : first number is trimestrial tendency ans 2sd number is monthly tendency. 22 is above trim high and Monthly high (N-1), 21 is above trim high and below monthly low, 01 between trim high and low and below monthly low, etc …

    Instead of adding numbers, Iwould like to have them print in the result column because 0+1 = 1 (and not 01) 0+0 = 0

    Moreover, it seems that it’s working only for extreme (22,0 or 1) but not for mixed (21,11,12, …)

     

    Any idéa to help me fix that ?

    Here is the code :

     

     

    #59955

    To write code, please use the <> “insert PRT code” button. Thanks.

     

    #60065

    Screener conditions must be under brackets and not parenthesis.

    #60092

    Screener conditions must be under brackets and not parenthesis.

    Thanks for your answer.

    There is no conditions for that screener, (t as “Q M”) is only the indication  how to display results.

    And my question is how to display result as 2 numbers and not an addition.

    Thanks

    #60098

    Sorry.. did not understand your question the first time.

    10+1 should return 11 obviously. If it doesn’t, there must something wrong in your code or in the quarterly calculation. Did you try to return the variables and to compare it with an indicator?

    #60124

    Thanks, I will check that tonignt

    #60219

    Hello,

    It seems to works all right except that sometimes the calculation is wrong. but I think it’s only a reference problem.

    It returns that prices are between High and Low, even if we are above last trimester or month high. We can see on Audjpy graph joined that price is under October’s high and program considers that we are under monthly high. I would like to consider only last month or last trimester’s high for calculation.

    Is that possible ? I put the code below.

    Thanks a lot for your help.

     

     

    #60220

    here are attachments

    #60272

    There is something wrong at line 4, month can only be inferior to month[1] one time per year, in January. You should code it like this:

     

    #60345

    I modified that because there is no result returned with <>

    #60348

    Indeed it’s working ok for trimestrial but do not refer to last month’s high for monthly. Probably for the reason you said, but I don’t understand why no result are returned.

    #60449

    I modified that because there is no result returned with <>

    Hello,

     

    Any idea why ?

    #60568

    I think I fixed it, here is the code:

    The problem came from a wrong period for the look of Highest high and the Lowest low, no error was fired by ProScreener for it, but I think it was caused by a period set to 0 at the first run of the code.

    #60636

    GREAT ! It works perfectly ! Thanks a lot, I would never find that !

    I’m really graceful for the help you provide to all of us.

    #62658

    Hello,

    I’m back with a similar problem I had with monthly return.

    I want to had Weekly classification in the screener, and sometimes it returns the right number and sometimes not.

    I suppose that it’s because it doesn’t reffer to last week but older week.

    Again the line “if month < month[1] then” is probably wrong but if I use <> the screener doesn’t return anything.

    Any idéa to fix that ?

    I will add Daily after that.

     

    Thanks a lot for your help

     

Viewing 15 posts - 1 through 15 (of 19 total)

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