Nonlinear dynamics of gold and the dollar