How to calculate how much he is trading up and down, and also set short and long?