You can see volume on the one second chart, though I can't speak to its accuracy. On the one minute chart, your script is executed per bar until the closing bar, and you cannot access lower timeframes.
On the current bar, it is possible to track the data, but as far as I know, not possible to commit or save the data. For example
//@version=4
study(title="My Indicator", overlay=false)
var int sec = 0
if barstate.isrealtime
if barstate.isnew
sec := 0
if volume <= 100
sec := (timenow - time) / 1000
plotchar(sec,'sec','')
You can see seconds increasing in the data window, but at the point of reaching volume this is reset to 0.
This is because prior to every execution of the realtime bar variables are rolled back. So as far as I know currently, your only option is to work with the 1 second timeframe and calculate volume per minute.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…