Call indicator with highest used in code

Forums ProRealTime English forum ProScreener support Call indicator with highest used in code

Viewing 5 posts - 1 through 5 (of 5 total)
  • #123087

    Hi Nicolas, sorry to bother you, usually i can work this out. this screener returns no hits. yet when this code/logic is used as an indicator it displays stocks that should be returned by the screener. its only when the highest and lowest functionality is used in the code that it can’t return anything. please help! thanks

    #123090

    Try replacing lines 33-36 with these;

    and add this at empty line 30:

     

    #123096

    Hi Robert, very kind of you to give some time to this. Unfortunately this didnt fix it, although I see the logic in your code and I’ve taken on your changes.

    the bug must be further up the code.

    thanks again

    #123106

    The problem is the 254 lookback bar limit for ProScreener. For some mathematical reasons a period up to 85 is accepted, not greater!

    I can’t figure out why, because at line 4 you use 120 periods, then another 120 (indeed that should be 119, because the first one overrides the lastof line 4) at line 13, so its 239 or 240.

    Then you add a nother 1 at lines 17 (line 18 doesn’t add any period).

    Then you add 26 itarations, which means a lookback of 265/266, which id too high bars, but 110 period should be accepted, because 110+110+25+1 = 246 (< 254 limit), but it isn’t. There must be some calculations I can’t spot!

    I used this modified code:

    2 users thanked author for this post.
    #123114

    yes you’re correct, thank you again. so at least i know the data memory constraints and the lesson is i need to keep it more simple.

    cheers

    a

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

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