The dollar gained for a second day, erasing its decline since minutes of the Federal Reserve’s most recent meeting showed policy makers are concerned the U.S. economy may be at risk from a worldwide slowdown.

U.S. stocks fluctuated, after the Standard & Poor’s 500 Index fell from a record, as investors assessed corporate earnings and stimulus prospects. The dollar rose to a four-month high and European shares closed at a six- year best.