By election night, the market had swung decisively toward Lula, demonstrating how dramatically trader expectations can change.