Identifies Candle Type A candle is bullish if the closing price is higher than the opening price. A candle is bearish if the closing price is lower than the opening price.
Detects a Color Change The script checks if the current candle is bullish while the previous candle was bearish, or vice versa. If a change is detected, an alert is triggered.
Triggers an Alert Users receive an alert notification whenever a candlestick color change occurs. Alerts can be set for popup, email, mobile push, or webhook notifications.
Visual Highlighting (Optional) The script can also apply a background color (blue) on the chart to visually mark color changes.