Higher High and Lower Low Bar Count

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.
發布通知: update
發布通知: minor update
發布通知: minor update
發布通知: minor update
發布通知: update the code


本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。