Profit in bear and bull market