In the recent past, both the S&P 500 and the USD (against other currencies) have appreciated a lot.
From what I understand, if USD goes up against other companies, the major companies of the S&P 500 suffer because many of them earn foreign revenue in foreign currencies.
So, the S&P500 and the USD should have an inverse relationship with each other. So how come both S&P 500 and the USD have risen so sharply this year?