OPEN-SOURCE SCRIPT

5 Min >2% Move with High Volume

24
//version=5
indicator("5 Min >2% Move with High Volume", overlay=true)

// Inputs
volumeMultiplier = input.float(1.5, "Volume Multiplier")
percentChangeTrigger = input.float(2.0, "Min % Move", step=0.1)

// Get today's open price
dayOpen = request.security(syminfo.tickerid, "D", open[1])

// Calculate % change from open
percentChange = 100 * (close - dayOpen) / dayOpen

// Volume vs average volume
avgVol = ta.sma(volume, 5)
volCondition = volume > avgVol * volumeMultiplier

// 5-minute time window: first candle after 9:15 AM (Indian markets)
inSession = (hour == 9 and minute == 20) // candle from 9:15 to 9:20

// Final condition: price move > 2% and high volume in first 5 min
screenerCondition = inSession and volCondition and math.abs(percentChange) > percentChangeTrigger

plotshape(screenerCondition, location=location.abovebar, style=shape.labelup, color=color.green, size=size.small, text=">2% + Vol")
alertcondition(screenerCondition, title="Screener Trigger", message="Stock moved >2% in first 5 mins with high volume")

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。