how to merge tick data by price range to sum buy or sell volumes ?

 
livetraderbr:
thanks for the help !
What have you tried ?
 
Alain Verleyen:
What have you tried ?

i don't know the right approach for this case.