Stocks are booming despite the Iran war, inflation and the country's dour mood. Here's why.

The S&P 500 hit a new record on Wednesday, even as soaring gas prices fuel inflation and consumer confidence sinks.