Not necessarily. On the whole, if the rise of the US dollar index is caused by raising interest rates, then commodities should fall and the Dow Jones Industrial Average will also fall, but the reason for raising interest rates must be that the US dollar will rise and the Dow Jones Industrial Average may also rise when the economic situation improves. After all, the stock market reflects the economic situation. The rising profits and good benefits of enterprises and the increasing demand for commodities also contribute to the rise. The dollar and Dow Jones Industrial Average are not absolutely opposite to commodities.
Everything is operated according to the disk, and technical analysis reflects everything. What can you do besides following the trend? It is possible that the two directions are opposite or the same.