Sure, by using something like this

Code
double PctVol = 0.1;

enterLong(round(marketVol() * PctVol));


Side note: personally I would never base my position size on the current volume. This can lead to enormous trade positions.