For most people it's easier standing than seated, but, do what works.
A trackstand should have almost no motion, and the keyword is almost, not no.
Try on a spot with a slight but noticeable uphill first. Eventually you'll want to use the cant of the road as a hill, but it's easier with a slightly more exaggerated one.