# Calculate engulfing condition def engulfingBullish = close > open[1] and open < close[1] 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);