I am checking the conditon first
(skeleton.Joints[JointID.HandRight].Position.Y < skeleton.Joints[JointID.Head].Position.Y && skeleton.Joints[JointID.HandRight].Position.Y > (skeleton.Joints[JointID.ElbowRight].Position.Y ) && skeleton.Joints[JointID.HandRight].Position.Y > skeleton.Joints[JointID.WristRight].Position.Y && skeleton.Joints[JointID.HandRight].Position.Y > (skeleton.Joints[JointID.HandLeft].Position.Y)
then i am taking my elbow as a centre pos for the hand wave and storing the right hand values in the list and checking for the given no. of frames
Lets take some ref dist and check the condition
handRight[i].Position.X < (centre + reference)
and
handRight[i].Position.X > (centre + reference)
(the above 2 conditions will be satisfied when hand is waved)
and checking for no of waves , same will be done for left hand
EDIT: Copied back the message from OP. I though it was additional info, not an answer. My error, sorry.