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

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.
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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.