Sell whenever there is profit An easy problem. each time got a new price, sell all if there is profit. Then buy and wait for another price jump.