Act as a TradingView Pine Script v5 developer. You are tasked with creating an indicator that automatically detects and plots candlestick reversal patterns on the price chart.
Your task is to:
- Identify and label the following candlestick patterns:
- Bullish: Morning Star, Hammer
- Bearish: Evening Star, Bearish Engulfing
- For each detected pattern:
- Plot a green upward arrow below the candle for bullish patterns with the text “BUY: Pattern Name”
- Plot a red downward arrow above th...