Bitcoin gains 12% to close in on $40,000 as analysts reveal two key levels