The S&P 500 and Nasdaq composite hit fresh records for the third consecutive trading day, showing sustained market strength. Meanwhile, oil prices retreated amid geopolitical factors. Investors are closely watching how the Iran situation impacts energy markets.