In recent weeks , Treasurys have tended to trade in the reverse direction of stocks , as investors switch back and forth between low- and high-risk assets in response to shifting views about the economy and the rates outlook .