In three words, practice, practice, practice.
I have run backhoes and excavators many years ago, and only after a couple hundred hours was I able to get a consistent depth and/or gradient in a trench.
But like other posters said, a transit or rotary laser and story pole is a must.