Dollar extends gain but shares retreat as Fed signals stimulus