Optimism over a potential trade agreement with the US and sustained FII inflows helped markets end the last week on a positive note