TradingView
yeungshawn
Jun 28, 2020 12:46 PM

Higher High and Lower Low Bar Count 

E-mini S&P 500 FuturesCME

Description

The importance of counting HH&LL is to find the possible extreme of the current leg and the potential reversal.

This script helps you count the number of bars which are constantly higher or lower than the previous ones.
I set the script to count from the first one, but only display the number from the third, in order to eliminate too much noise.

Note: I have loosened the criteria of HH and LL.
Let's take "higher high" as an example, I will count the number If the current bar's low is higher than the previous one's and its high is higher or equal to the previous one's , and vice versa.

If you prefer the strict definition of HH or LL, you can modify the code as you wish.

Release Notes

update

Release Notes

minor update

Release Notes

minor update

Release Notes

minor update

Release Notes

update the code
Comments
KevinMehta
I need help with an addition to this code. Can you hrlp me ?
BluDreamSwipe
Amazing bro!!Save me lot of work
jupiejupe
can you please update to version 5?
retraced
fantastic work. thank you!
aciriaco
Nice work! How to adapt the script to the strict definition of HH or LL?
yeungshawn
@aciriaco, you can modify the codes of TD and TS as you like.
woowayinvestments
thanks
topdowntrader
great script. can you update to version 4? need to use security for MTF ?
More