OPEN-SOURCE SCRIPT

3-Candle HH/HL or LH/LL (Number Labels Over Candles)

117
What This Script Does:
This Pine Script detects 3 consecutive candlesticks that show:

Higher Highs and Higher Lows → a bullish structure

Lower Highs and Lower Lows → a bearish structure

When such a pattern is found, the script:

Marks each of the 3 candles with a number: 1, 2, and 3

Labels appear centered on each candle (at the close price)

You can adjust:

Label size (tiny → huge)

Background color (bullish/bearish)

Text color

Example:
If candles form:

Candle A: higher high & higher low

Candle B: higher than A

Candle C: higher than B

Then you’ll see 1, 2, 3 labels on those candles in green (or your selected color).

Same goes for a bearish pattern in red.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.