They would move in opposite directions if the markets relating to them were normal. Gold is a natural destiny for sefety from troubled paper money.
Every time the dollar is in deeper trouble the powers dump on gold so that people would not flee from the dollar into gold.
Best example is the recent jobs report and immediate suppression of gold price.