Oil prices gained on Friday, on track to end the week up more than 2 percent as the market strengthened, bucking off bearish forces that had pulled it down earlier in the session.