Conditional Background & Bar Colorsℹ️ Conditional Background & Bar Colors is a lightweight utility indicator that applies conditional background and candle/bar colors based on user-defined logical rules.
This script is not a trading indicator and does not generate buy or sell signals.
It is designed purely as a visual enhancement layer to help highlight market states or indicator conditions.
🔧 Features
Define multiple independent conditions using:
➤ Comparisons (>, <, =, ≥, ≤)
➤ Cross, crossover, crossunder
➤ Value changes and slope direction
➤ NA / non-NA states
Apply colors to:
➤ Chart background
➤ Candles / bars
➤ Optional “all conditions matched” logic for confluence highlighting
➤ Works with any indicator or price source
Can be applied to:
➤ Main price chart
➤ Indicator panes (e.g. RSI, MACD, custom indicators)
➤ No repainting
➤ No alerts
➤ No strategy or execution logic
🎯 Use Cases
➤ Visual confirmation of indicator alignment
➤ Market regime or bias highlighting
➤ Context awareness for discretionary trading
➤ Conditional coloring inside indicator panes
🎨 Color behavior
➤ Background colors overlap and can be combined using transparency
➤ The “all conditions matched” color overrides individual background colors
➤ Bar colors override each other, where the lowest active condition in the list takes priority
⚠️ Disclaimer
This script provides visual assistance only.
All trading decisions remain the sole responsibility of the user.
Conditional
Bull/Bear Buy/Bail CandlesBased on BullBearPower indicator, this is a heavily modified version with colored candles to show when bulls or bears are buying or bailing. Includes Fibonacci Levels based on Highest/Lowest value in variable length, along with optional second timeframe and alternative calculation for candles and linear regression curves for increased versatility. Green = bullish /long, Aqua = still-bullish albeit weakening, blue = weak albeit strengthening and red = weak/short. Perfect as a confirmation indicator for those looking to time markets.

