thanks to the new request.security_lower_tf()-function we are able to calculate intrabar volume. So here is my approach. Please be aware, that the selected resolution should always be smaller than the selected chart timeframe.
You can find the exact values for bullish and bearish volume in the data window.