OPEN-SOURCE SCRIPT

Bullish & Bearish Once Bar Painter

114
The Bullish & Bearish First Bar Marker is a simple yet powerful indicator designed to highlight the first bullish and bearish bars in a sequence, helping traders identify key momentum shifts in the market. It marks:Bullish Bars: The first bar where the high and low are both higher than the previous bar (high > high[1] and low > low[1]), painted green with a "Bullish" label.
Bearish Bars: The first bar where the high and low are both lower than the previous bar (high < high[1] and low < low[1]), painted red with a "Bearish" label.

To avoid clutter, consecutive bullish or bearish bars are not marked until a non-bullish or non-bearish bar resets the sequence. This makes it ideal for spotting the start of strong upward or downward price movements.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.