# Define inputs
input lookback = 1;
input minVolumeMultiplier = 1.5;

# Calculate engulfing condition
def engulfingBullish = close > open and open < close and close > open;
def volumeMultiplier = volume / Average(volume, lookback);

# Plotting the bubble if engulfing condition is met with high volume
plot engulfingWithHighVolume = engulfingBullish and volumeMultiplier >= minVolumeMultiplier;

# Mark the candle with a bubble
AddChartBubble(engulfingWithHighVolume, high, "Bullish Engulfing", color.green, yes);
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.