OPEN-SOURCE SCRIPT

HH, HL, LH, LL Detector with Horizontal Support/Resistance

Labels for HH, HL, LH, LL:
The labels for Higher High (HH), Higher Low (HL), Lower High (LH), and Lower Low (LL) are displayed only on the last bar where the condition was met (bar_index).
Horizontal Lines for Support and Resistance:
Horizontal lines are drawn at the last detected support (low) and resistance (high) levels.
The lines extend across the chart until a new level is detected.
Chart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer