The Australian sharemarket has gained, led by banks and IT stocks, putting it on track to break this week’s losing streak.