Latest years number of new highs and new lows indicator

Forums ProRealTime English forum ProBuilder support Latest years number of new highs and new lows indicator

Viewing 1 post (of 1 total)
  • #103710

    In the news it is often commented on how many new daily highs or new daily lows a market has made within the last year so I thought I would try to create an indicator to display this. I post it here just in case if it is of any interest to other forum members.

    First of all the code works out how many candles there has been in the last calendar year/12 months. It then counts how many new highs or new lows have been made during this calendar year. Each time a new high or a new low is achieved that value is set as the benchmark for checking for future new highs and lows.

    The results can be displayed as just a straight forward count of new highs and new lows or as a percentage. This percentage is calculated as the number of new highs (or new lows) as a percentage of the total combined number of new highs and new lows.

    Use the indicator on daily charts. It should work on other time frames but you will obviously need at least one calendar years worth of data and it will output on for example a 1 hour chart the number of 1 hour new highs and new lows and not daily highs and lows. Be warned that it is very, very slow to calculate so set it off and go and make a cup of tea! Perhaps you might consider using the ‘calculateonlastbars’ to reduce the time by only testing on the latest data. There is most likely a much prettier and faster way to achieve the same thing but this version is all I’ve got at the moment!

    The results can be analysed in many ways – if new highs represents 100% of new highs and lows then you might consider it to be a strong bull market or alternatively you might consider it to be an overbought market – as ever your interpretation is totally up to you!

     

    1 user thanked author for this post.
Viewing 1 post (of 1 total)

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