OPEN-SOURCE SCRIPT
5 Min >2% Move with High Volume

//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")
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的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。