OPEN-SOURCE SCRIPT
Zaktualizowano Bull & Bear Candle By Background Color

The essential chart overlay for high-speed momentum confirmation.
This professional-grade Pine Script v5 indicator provides instant, unfiltered visual feedback on the market's immediate bias by coloring the chart background based on the short-term relationship between Close and Open. It’s designed to streamline decision-making and enhance trade conviction.
Why Traders Use This Tool
In dynamic markets, reading momentum rapidly is critical. This indicator removes visual clutter and cognitive lag.
Zero-Lag Momentum Filter: Instantly identifies if control belongs to buyers (Close > Open) or sellers (Close < Open). A sustained background color acts as a directional bias filter for all your setups.
Trade Confirmation & Conviction: Use the background color as a high-level confluence factor. Only execute Long trades when the background is Bullish and Short trades when it is Bearish. This drastically reduces counter-trend entries.
Risk Management Signal: The appearance of the Neutral/Doji Color flags market equilibrium and consolidation, often preceding a critical structural shift. This is your immediate signal to tighten stops or prepare for a potential reversal setup.
Dual Confirmation: The script offers a highly requested feature: Bar Coloring layered atop the background to provide a second, granular layer of visual context, making momentum shifts impossible to miss.
⚙️ Key Features & Settings Usage
All settings are optimized for clarity, using high transparency to prevent the indicator from obscuring underlying price action or other analytical tools.
🎨 Background Color Settings (Primary)
These controls allow you to define the market state you are reading:
1. Background: Bullish Color: Confirms short-term buying pressure (Close > Open). Set a distinct color for confirmed upward momentum.
2. Background: Bearish Color: Confirms short-term selling pressure (Close < Open). Set a high-contrast color for immediate recognition of downward pressure.
3. Background: Neutral/Doji Color: Signals market indecision (Close ≈ Open). Use as a caution flag, highlighting pivot points and ranging periods.
✨ Added Feature: Bar Coloring
4. FEATURE: Enable Bar Coloring: When enabled, the individual candles are colored with a lighter hue matching the background. This provides dual visual confirmation, maximizing impact on lower timeframes where momentum flips quickly.
🧭 How to Achieve Confluence
Entry Filter: Wait for the background color to flip to your desired direction, then seek your primary entry signal (e.g., breakout, pullback, or MACD cross).
Trade Hold: As long as the background color remains consistent, the short-term momentum is confirmed, justifying the continuation of your trade.
Exit Signal: A flip to the Neutral/Doji Color should be treated as a warning shot, signaling a mandatory review of your position and stops.
Disclaimer: This indicator is a powerful visual and confirmation tool and does not generate buy/sell signals on its own. It is designed to be used in conjunction with your established trading strategy and comprehensive risk management principles
This professional-grade Pine Script v5 indicator provides instant, unfiltered visual feedback on the market's immediate bias by coloring the chart background based on the short-term relationship between Close and Open. It’s designed to streamline decision-making and enhance trade conviction.
Why Traders Use This Tool
In dynamic markets, reading momentum rapidly is critical. This indicator removes visual clutter and cognitive lag.
Zero-Lag Momentum Filter: Instantly identifies if control belongs to buyers (Close > Open) or sellers (Close < Open). A sustained background color acts as a directional bias filter for all your setups.
Trade Confirmation & Conviction: Use the background color as a high-level confluence factor. Only execute Long trades when the background is Bullish and Short trades when it is Bearish. This drastically reduces counter-trend entries.
Risk Management Signal: The appearance of the Neutral/Doji Color flags market equilibrium and consolidation, often preceding a critical structural shift. This is your immediate signal to tighten stops or prepare for a potential reversal setup.
Dual Confirmation: The script offers a highly requested feature: Bar Coloring layered atop the background to provide a second, granular layer of visual context, making momentum shifts impossible to miss.
⚙️ Key Features & Settings Usage
All settings are optimized for clarity, using high transparency to prevent the indicator from obscuring underlying price action or other analytical tools.
🎨 Background Color Settings (Primary)
These controls allow you to define the market state you are reading:
1. Background: Bullish Color: Confirms short-term buying pressure (Close > Open). Set a distinct color for confirmed upward momentum.
2. Background: Bearish Color: Confirms short-term selling pressure (Close < Open). Set a high-contrast color for immediate recognition of downward pressure.
3. Background: Neutral/Doji Color: Signals market indecision (Close ≈ Open). Use as a caution flag, highlighting pivot points and ranging periods.
✨ Added Feature: Bar Coloring
4. FEATURE: Enable Bar Coloring: When enabled, the individual candles are colored with a lighter hue matching the background. This provides dual visual confirmation, maximizing impact on lower timeframes where momentum flips quickly.
🧭 How to Achieve Confluence
Entry Filter: Wait for the background color to flip to your desired direction, then seek your primary entry signal (e.g., breakout, pullback, or MACD cross).
Trade Hold: As long as the background color remains consistent, the short-term momentum is confirmed, justifying the continuation of your trade.
Exit Signal: A flip to the Neutral/Doji Color should be treated as a warning shot, signaling a mandatory review of your position and stops.
Disclaimer: This indicator is a powerful visual and confirmation tool and does not generate buy/sell signals on its own. It is designed to be used in conjunction with your established trading strategy and comprehensive risk management principles
Informacje o Wersji
Name UpdateInformacje o Wersji
Name UpdatedInformacje o Wersji
Color UpdatedSkrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.