When to buy and sell and how does it work