Detect how may weeks were closed with higher price than lowest of previous week.

Forums ProRealTime English forum ProScreener support Detect how may weeks were closed with higher price than lowest of previous week.

Viewing 2 posts - 1 through 2 (of 2 total)
  • #118313

    Hello

    I am still learning, but—still diffuse for me…

    I am trying to do a code to detect how many weeks in a period ; for example 30 weeks were closed with a end price higher than the lowest of the previous week,…

    but,….

     

     

    #118316

    Try this (not tested):

    254 is the max lookback bars, but since we refer to the previous LOW then 253 is the greatest number allowed here.

    You can change it to any other number less than 253 and greater than 0.

    As a filter I used 5, but you can try other numbers.

     

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

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