OPEN-SOURCE SCRIPT

Bullish Flag Breakout Alert

126
//version=5
indicator("Bullish Flag Breakout Alert", overlay=true)

// Inputs
flagLookback = input.int(15, "Flag High Lookback")
volMultiplier = input.float(1.5, "Volume Multiplier")

// Calculations
flagHigh = ta.highest(high, flagLookback)
avgVol = ta.sma(volume, 20)

// Breakout condition
breakout = close > flagHigh and volume > avgVol * volMultiplier

// Plot
plot(flagHigh, "Flag High", color=color.orange)
plotshape(breakout, style=shape.triangleup, location=location.belowbar,
color=color.green, size=size.small, text="BO")

// Alert
alertcondition(breakout, title="Bullish Flag Breakout")

คำจำกัดสิทธิ์ความรับผิดชอบ

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