The Dow rallied 400 points on Friday as the Nasdaq Composite also rose following a losing session.