OPEN-SOURCE SCRIPT
First candle of ≥4 same‑colour candles

Classifies each candle as bullish or bearish. A candle is considered bullish when the closing price is above the opening price, and bearish when the closing price is below the opening price
investopedia.com
; traditional charts depict bullish candles in green or white and bearish candles in red or black
investopedia.com
.
Counts consecutive candles of the same colour. Whenever a green candle appears, it increments a “bull run” counter; the counter resets to zero on a red candle. Likewise, it maintains a “bear run” counter that increments on red candles and resets on green candles.
Detects long runs of momentum. If a run of green candles reaches four or more bars, the indicator marks the very first candle of that sequence with a small green triangle below the bar. Similarly, if a run of red candles reaches four or more bars, it marks the first candle of that bearish run with a red triangle above the bar. Only the initial bar of each qualifying run is highlighted, even if the run later extends to five, six, or more candles.
investopedia.com
; traditional charts depict bullish candles in green or white and bearish candles in red or black
investopedia.com
.
Counts consecutive candles of the same colour. Whenever a green candle appears, it increments a “bull run” counter; the counter resets to zero on a red candle. Likewise, it maintains a “bear run” counter that increments on red candles and resets on green candles.
Detects long runs of momentum. If a run of green candles reaches four or more bars, the indicator marks the very first candle of that sequence with a small green triangle below the bar. Similarly, if a run of red candles reaches four or more bars, it marks the first candle of that bearish run with a red triangle above the bar. Only the initial bar of each qualifying run is highlighted, even if the run later extends to five, six, or more candles.
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.