As was expected, the Indian stock markets moved in a narrow range during the past truncated week and ahead of the long, three days week-end, but ended with marginal gains. On a weekly basis, Nifty closed higher for the third consecutive week and gained 0.26 per cent to close at 17,369.25.