You can use marketVal / marketVol for Volume, write your logic around it, and hand the High, Low, Close etc. based on your volume logic to the bar function.