Hedge fund adviser sells investors on winning ‘algorithm,’ goes on to lose everything