Bar Index – Proscreener

Forums ProRealTime English forum ProScreener support Bar Index – Proscreener

Viewing 7 posts - 1 through 7 (of 7 total)
  • #50785

    Can anyone help me on this matter ? I have a problem of finding a way to rerun a bar index of highest or lowest criteria. For example I want to find out what is bar index of this statement?

    highest [250](rsi[14](close)).

    Is it possible to get the bar index of such statement. Just to make it clear, I want to know what is bar index that maximum or minimum RSI  happened in the last 250 bars?
    Thanks in advance for your help.
    Hamid

    #50792

    This could be possible by making a loop through the last 250 periods to find the lowest low and highest high of the RSI:

    Not tested, please give us feedback if these codes are working correctly.

    #50811

    Thank you for your reply. But I have tested this method before, But I don’t know why proscreener doesn’t accept any loop more than 100, it will give an error as infinite loop exit in the code. I want to write a code to find trend of rsi in rising or falling channel. For example something like the image attached. Below is the code I have done so far, sometime it will work fine sometime not. did you come with this idea before or do you have this kind of code?

     

     

    #50822

    Test if barNb is superior to 0 prior of using it as the target of new loop at line 26 (not tested, first thing that come in mind now).

    #55622

    Hello Hamid and Nicolas, i came to this post casually only now.

    To find the barindex of the highest[250] of RSI you can use this code:

    When it gives you 0, it means the highest or lowest value of RSI is in the current bar.

    I hope this can help you!

    Max

    1 user thanked author for this post.
    #111956

    Hello maximus78, your code is correct and working perfectly, thank you!

    I miss only one thing: how can I exclude from the calculation a certain number of latest bars? For example if I want to find the Bar Index of highest RSI of last 250 excluding last month (20 bars)?

    Thank you in advance

    Matteo

    #111958

    ProScreen only supports the last 254 bars.

    Maximus78’s code should not work. It’s odd if it does!

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

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