OPEN-SOURCE SCRIPT

5 Min >2% Move with High Volume

21
//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")

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.