# 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);
คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ